Browse Source

docs: explain why group methods skip propagateChange

Group changes propagate to S3 servers via filer subscription
(watching /etc/iam/groups/) rather than gRPC RPCs, since there
are no group-specific RPCs in the S3 cache protocol.
pull/8560/head
Chris Lu 21 hours ago
parent
commit
85aa6e345b
  1. 4
      weed/credential/propagating_store.go

4
weed/credential/propagating_store.go

@ -386,6 +386,10 @@ func (s *PropagatingCredentialStore) DeleteServiceAccount(ctx context.Context, i
return nil
}
// Group methods do not call propagateChange because there are no group-specific
// gRPC RPCs in the S3 cache protocol. Group changes are propagated to S3 servers
// via the filer subscription mechanism (watching /etc/iam/groups/ directory).
func (s *PropagatingCredentialStore) CreateGroup(ctx context.Context, group *iam_pb.Group) error {
glog.V(4).Infof("IAM: PropagatingCredentialStore.CreateGroup %s", group.Name)
return s.CredentialStore.CreateGroup(ctx, group)

Loading…
Cancel
Save