-
Notifications
You must be signed in to change notification settings - Fork 95
Conversation
# Conflicts: # common/auth_util.go # common/auth_util_test.go # services/frontendhost/frontend.go
Changes Unknown when pulling ad7b941 on security12 into ** on master**. |
Changes Unknown when pulling 13ab151 on security12 into ** on master**. |
Changes Unknown when pulling 22a77ac on security12 into ** on master**. |
common/auth_util.go
Outdated
@@ -67,6 +68,25 @@ func GetResourceURNCreateConsumerGroup(scommon SCommon, cgPath *string) string { | |||
return fmt.Sprintf(resourceURNTemplateCreateConsumerGroup, getTenancyLowerCase(scommon), strings.ToLower(cgPathString)) | |||
} | |||
|
|||
// GetResourceURNOperateConsumerGroup returns the resource URN to operate consumer group (read, delete), e.g. urn:cherami:dst:zone1_prod:/cg_prefix/cg1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update comment: urn:cherami:cg:zone1_prod
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
services/frontendhost/frontend.go
Outdated
@@ -647,6 +647,12 @@ func (h *Frontend) CreateDestination(ctx thrift.Context, createRequest *c.Create | |||
return nil, err | |||
} | |||
|
|||
dstResource := common.GetResourceURNOperateDestination(h.SCommon, createRequest.Path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a comment regarding this section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
services/frontendhost/frontend.go
Outdated
common.TagSubject: authSubject, | ||
common.TagResource: authResource, | ||
common.TagOperation: operation, | ||
}).Info("Failed to add permission") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change this to error log?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
No description provided.