Documentation
¶
Index ¶
- Variables
- type RBAC
- func (x *RBAC) ClearMatcher()
- func (x *RBAC) ClearRules()
- func (x *RBAC) ClearShadowMatcher()
- func (x *RBAC) ClearShadowRules()
- func (x *RBAC) GetMatcher() *v31.Matcher
- func (x *RBAC) GetRules() *v3.RBAC
- func (x *RBAC) GetRulesStatPrefix() string
- func (x *RBAC) GetShadowMatcher() *v31.Matcher
- func (x *RBAC) GetShadowRules() *v3.RBAC
- func (x *RBAC) GetShadowRulesStatPrefix() string
- func (x *RBAC) GetTrackPerRuleStats() bool
- func (x *RBAC) HasMatcher() bool
- func (x *RBAC) HasRules() bool
- func (x *RBAC) HasShadowMatcher() bool
- func (x *RBAC) HasShadowRules() bool
- func (*RBAC) ProtoMessage()
- func (x *RBAC) ProtoReflect() protoreflect.Message
- func (x *RBAC) Reset()
- func (x *RBAC) SetMatcher(v *v31.Matcher)
- func (x *RBAC) SetRules(v *v3.RBAC)
- func (x *RBAC) SetRulesStatPrefix(v string)
- func (x *RBAC) SetShadowMatcher(v *v31.Matcher)
- func (x *RBAC) SetShadowRules(v *v3.RBAC)
- func (x *RBAC) SetShadowRulesStatPrefix(v string)
- func (x *RBAC) SetTrackPerRuleStats(v bool)
- func (x *RBAC) String() string
- type RBACPerRoute
- func (x *RBACPerRoute) ClearRbac()
- func (x *RBACPerRoute) GetRbac() *RBAC
- func (x *RBACPerRoute) HasRbac() bool
- func (*RBACPerRoute) ProtoMessage()
- func (x *RBACPerRoute) ProtoReflect() protoreflect.Message
- func (x *RBACPerRoute) Reset()
- func (x *RBACPerRoute) SetRbac(v *RBAC)
- func (x *RBACPerRoute) String() string
- type RBACPerRoute_builder
- type RBAC_builder
Constants ¶
This section is empty.
Variables ¶
View Source
var File_envoy_extensions_filters_http_rbac_v3_rbac_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type RBAC ¶
type RBAC struct {
// The primary RBAC policy which will be applied globally, to all the incoming requests.
//
// * If absent, no RBAC enforcement occurs.
// * If set but empty, all requests are denied.
//
// .. note::
//
// When both “rules“ and “matcher“ are configured, “rules“ will be ignored.
Rules *v3.RBAC `protobuf:"bytes,1,opt,name=rules,proto3" json:"rules,omitempty"`
// If specified, rules will emit stats with the given prefix.
// This is useful for distinguishing metrics when multiple RBAC filters are configured.
RulesStatPrefix string `protobuf:"bytes,6,opt,name=rules_stat_prefix,json=rulesStatPrefix,proto3" json:"rules_stat_prefix,omitempty"`
// Match tree for evaluating RBAC actions on incoming requests. Requests not matching any matcher will be denied.
//
// * If absent, no RBAC enforcement occurs.
// * If set but empty, all requests are denied.
Matcher *v31.Matcher `protobuf:"bytes,4,opt,name=matcher,proto3" json:"matcher,omitempty"`
// Shadow policy for testing RBAC rules without enforcing them. These rules generate stats and logs but do not deny
// requests. If absent, no shadow RBAC policy will be applied.
//
// .. note::
//
// When both “shadow_rules“ and “shadow_matcher“ are configured, “shadow_rules“ will be ignored.
ShadowRules *v3.RBAC `protobuf:"bytes,2,opt,name=shadow_rules,json=shadowRules,proto3" json:"shadow_rules,omitempty"`
// If absent, no shadow matcher will be applied.
// Match tree for testing RBAC rules through stats and logs without enforcing them.
// If absent, no shadow matching occurs.
ShadowMatcher *v31.Matcher `protobuf:"bytes,5,opt,name=shadow_matcher,json=shadowMatcher,proto3" json:"shadow_matcher,omitempty"`
// If specified, shadow rules will emit stats with the given prefix.
// This is useful for distinguishing metrics when multiple RBAC filters use shadow rules.
ShadowRulesStatPrefix string `` /* 128-byte string literal not displayed */
// If “track_per_rule_stats“ is “true“, counters will be published for each rule and shadow rule.
TrackPerRuleStats bool `protobuf:"varint,7,opt,name=track_per_rule_stats,json=trackPerRuleStats,proto3" json:"track_per_rule_stats,omitempty"`
// contains filtered or unexported fields
}
RBAC filter config. [#next-free-field: 8]
func (*RBAC) ProtoReflect ¶
func (x *RBAC) ProtoReflect() protoreflect.Message
type RBACPerRoute ¶
type RBACPerRoute struct {
// Per-route specific RBAC configuration that overrides the global RBAC configuration.
// If absent, RBAC policy will be disabled for this route.
Rbac *RBAC `protobuf:"bytes,2,opt,name=rbac,proto3" json:"rbac,omitempty"`
// contains filtered or unexported fields
}
func (*RBACPerRoute) ClearRbac ¶
func (x *RBACPerRoute) ClearRbac()
func (*RBACPerRoute) GetRbac ¶
func (x *RBACPerRoute) GetRbac() *RBAC
func (*RBACPerRoute) HasRbac ¶
func (x *RBACPerRoute) HasRbac() bool
func (*RBACPerRoute) ProtoMessage ¶
func (*RBACPerRoute) ProtoMessage()
func (*RBACPerRoute) ProtoReflect ¶
func (x *RBACPerRoute) ProtoReflect() protoreflect.Message
func (*RBACPerRoute) Reset ¶
func (x *RBACPerRoute) Reset()
func (*RBACPerRoute) SetRbac ¶
func (x *RBACPerRoute) SetRbac(v *RBAC)
func (*RBACPerRoute) String ¶
func (x *RBACPerRoute) String() string
type RBACPerRoute_builder ¶
type RBACPerRoute_builder struct {
// Per-route specific RBAC configuration that overrides the global RBAC configuration.
// If absent, RBAC policy will be disabled for this route.
Rbac *RBAC
// contains filtered or unexported fields
}
func (RBACPerRoute_builder) Build ¶
func (b0 RBACPerRoute_builder) Build() *RBACPerRoute
type RBAC_builder ¶
type RBAC_builder struct {
// The primary RBAC policy which will be applied globally, to all the incoming requests.
//
// * If absent, no RBAC enforcement occurs.
// * If set but empty, all requests are denied.
//
// .. note::
//
// When both “rules“ and “matcher“ are configured, “rules“ will be ignored.
Rules *v3.RBAC
// If specified, rules will emit stats with the given prefix.
// This is useful for distinguishing metrics when multiple RBAC filters are configured.
RulesStatPrefix string
// Match tree for evaluating RBAC actions on incoming requests. Requests not matching any matcher will be denied.
//
// * If absent, no RBAC enforcement occurs.
// * If set but empty, all requests are denied.
Matcher *v31.Matcher
// Shadow policy for testing RBAC rules without enforcing them. These rules generate stats and logs but do not deny
// requests. If absent, no shadow RBAC policy will be applied.
//
// .. note::
//
// When both “shadow_rules“ and “shadow_matcher“ are configured, “shadow_rules“ will be ignored.
ShadowRules *v3.RBAC
// If absent, no shadow matcher will be applied.
// Match tree for testing RBAC rules through stats and logs without enforcing them.
// If absent, no shadow matching occurs.
ShadowMatcher *v31.Matcher
// If specified, shadow rules will emit stats with the given prefix.
// This is useful for distinguishing metrics when multiple RBAC filters use shadow rules.
ShadowRulesStatPrefix string
// If “track_per_rule_stats“ is “true“, counters will be published for each rule and shadow rule.
TrackPerRuleStats bool
// contains filtered or unexported fields
}
func (RBAC_builder) Build ¶
func (b0 RBAC_builder) Build() *RBAC
Source Files
¶
- rbac.pb.go
Click to show internal directories.
Click to hide internal directories.