Update options
This commit is contained in:
parent
9b5d1e4224
commit
f403c696de
|
|
@ -30,8 +30,12 @@ type Authorization struct {
|
||||||
|
|
||||||
// AuthorizationRule determines the configuration for a particular authorization
|
// AuthorizationRule determines the configuration for a particular authorization
|
||||||
// rule.
|
// rule.
|
||||||
|
|
||||||
type AuthorizationRule struct {
|
type AuthorizationRule struct {
|
||||||
|
// ID is a unique identifier for the authorization rule. Each authorization
|
||||||
|
// rule is expected to have a unique ID.
|
||||||
|
// The ID will be used to identify matched rules for audit purposes.
|
||||||
|
ID string
|
||||||
|
|
||||||
// Policy is the authorization policy to apply should the rule match the given
|
// Policy is the authorization policy to apply should the rule match the given
|
||||||
// request.
|
// request.
|
||||||
// All conditions specified within the rule must match the request for the
|
// All conditions specified within the rule must match the request for the
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,8 @@ type Options struct {
|
||||||
Server Server `cfg:",internal"`
|
Server Server `cfg:",internal"`
|
||||||
MetricsServer Server `cfg:",internal"`
|
MetricsServer Server `cfg:",internal"`
|
||||||
|
|
||||||
Providers Providers `cfg:",internal"`
|
Authorization Authorization `cfg:",internal"`
|
||||||
|
Providers Providers `cfg:",internal"`
|
||||||
|
|
||||||
SkipAuthRegex []string `flag:"skip-auth-regex" cfg:"skip_auth_regex"`
|
SkipAuthRegex []string `flag:"skip-auth-regex" cfg:"skip_auth_regex"`
|
||||||
SkipAuthRoutes []string `flag:"skip-auth-route" cfg:"skip_auth_routes"`
|
SkipAuthRoutes []string `flag:"skip-auth-route" cfg:"skip_auth_routes"`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue