Skip to content

Commit

Permalink
Fix config
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Parraga <[email protected]>
  • Loading branch information
Sovietaced committed Feb 27, 2025
1 parent b7f2cbe commit a0ba53f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 32 deletions.
4 changes: 2 additions & 2 deletions flyteadmin/auth/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ type Rbac struct {
BypassMethodPatterns []string `json:"bypassMethodPatterns" pflag:",List of regex patterns to match against method names to bypass RBAC."`
TokenScopeRoleResolver TokenScopeRoleResolver `json:"tokenScopeRoleResolver" pflag:",Config to use for resolving roles from token scopes."`
TokenClaimRoleResolver TokenClaimRoleResolver `json:"tokenClaimRoleResolver" pflag:",Config to use for resolving roles from token claims."`
Policies []AuthorizationPolicy `json:"policies" pflag:",Authorization policies to use for RBAC."`
Policies []AuthorizationPolicy `json:"policies" pflag:"-,Authorization policies to use for RBAC."`
}

// An AuthorizationPolicy represents authorization allow rules.
Expand Down Expand Up @@ -284,7 +284,7 @@ type Rule struct {
// A TokenClaimRoleResolver is a struct that represents how token claims can map to RBAC roles.
type TokenClaimRoleResolver struct {
Enabled bool `json:"enabled" pflag:",Enables token claim based role resolution."`
TokenClaims []TokenClaim `json:"tokenClaims" pflag:",List of claims to use for role resolution."`
TokenClaims []TokenClaim `json:"tokenClaims" pflag:"-,List of claims to use for role resolution."`
}

type TokenScopeRoleResolver struct {
Expand Down
2 changes: 0 additions & 2 deletions flyteadmin/auth/config/config_flags.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 0 additions & 28 deletions flyteadmin/auth/config/config_flags_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a0ba53f

Please sign in to comment.