mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-14 15:58:52 +01:00
iceberg: give the catalog's table handler the local accounts and issuer set
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3810ba2133
commit
df2de6d1a4
2 files changed
+24
No files matched your search
@@ -1528,6 +1528,22 @@ func (s3a *S3ApiServer) DefaultAllow() bool {
|
||||
return s3a.iam.iamIntegration.DefaultAllow()
|
||||
}
|
||||
|
||||
// IsConfiguredAccountID reports whether id is the account of a configured identity.
|
||||
func (s3a *S3ApiServer) IsConfiguredAccountID(id string) bool {
|
||||
return s3a.iam != nil && s3a.iam.isConfiguredAccountID(id)
|
||||
}
|
||||
|
||||
// TrustedOIDCIssuers returns the configured OIDC issuer set.
|
||||
func (s3a *S3ApiServer) TrustedOIDCIssuers(ctx context.Context) []string {
|
||||
if s3a.iam == nil {
|
||||
return nil
|
||||
}
|
||||
if s3iam, ok := s3a.iam.iamIntegration.(*S3IAMIntegration); ok {
|
||||
return s3iam.trustedOIDCIssuers(ctx)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// ValidateS3Credential validates an S3 access key / secret key pair.
|
||||
// Returns the identity name and identity object on success.
|
||||
func (s3a *S3ApiServer) ValidateS3Credential(accessKey, secretKey string) (string, interface{}, error) {
|
||||
|
||||
Reference in new issue
Block a user