Documentation ¶
Index ¶
Constants ¶
View Source
const StaticType = "static"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessConfig ¶
type AccessConfig struct { // Type of the access strategy (available values: "static") Type string `yaml:"type" envconfig:"KUMA_ACCESS_TYPE"` // Configuration of static access strategy Static StaticAccessConfig `yaml:"static"` }
AccessConfig defines a configuration for acccess control
func DefaultAccessConfig ¶
func DefaultAccessConfig() AccessConfig
func (AccessConfig) Sanitize ¶
func (r AccessConfig) Sanitize()
func (AccessConfig) Validate ¶
func (r AccessConfig) Validate() error
type AdminResourcesStaticAccessConfig ¶
type AdminResourcesStaticAccessConfig struct { // List of users that are allowed to access admin resources Users []string `yaml:"users" envconfig:"KUMA_ACCESS_STATIC_ADMIN_RESOURCES_USERS"` // List of groups that are allowed to access admin resources Groups []string `yaml:"groups" envconfig:"KUMA_ACCESS_STATIC_ADMIN_RESOURCES_GROUPS"` }
type GenerateDPTokenStaticAccessConfig ¶
type GenerateDPTokenStaticAccessConfig struct { // List of users that are allowed to generate dataplane token Users []string `yaml:"users" envconfig:"KUMA_ACCESS_STATIC_GENERATE_DP_TOKEN_USERS"` // List of groups that are allowed to generate dataplane token Groups []string `yaml:"groups" envconfig:"KUMA_ACCESS_STATIC_GENERATE_DP_TOKEN_GROUPS"` }
type GenerateUserTokenStaticAccessConfig ¶
type GenerateUserTokenStaticAccessConfig struct { // List of users that are allowed to generate user token Users []string `yaml:"users" envconfig:"KUMA_ACCESS_STATIC_GENERATE_USER_TOKEN_USERS"` // List of groups that are allowed to generate user token Groups []string `yaml:"groups" envconfig:"KUMA_ACCESS_STATIC_GENERATE_USER_TOKEN_GROUPS"` }
type GenerateZoneTokenStaticAccessConfig ¶
type GenerateZoneTokenStaticAccessConfig struct { // List of users that are allowed to generate zone token Users []string `yaml:"users" envconfig:"KUMA_ACCESS_STATIC_GENERATE_ZONE_TOKEN_USERS"` // List of groups that are allowed to generate zone token Groups []string `yaml:"groups" envconfig:"KUMA_ACCESS_STATIC_GENERATE_ZONE_TOKEN_GROUPS"` }
type StaticAccessConfig ¶
type StaticAccessConfig struct { // AdminResources defines an access to admin resources (Secret/GlobalSecret) AdminResources AdminResourcesStaticAccessConfig `yaml:"adminResources"` // GenerateDPToken defines an access to generating dataplane token GenerateDPToken GenerateDPTokenStaticAccessConfig `yaml:"generateDpToken"` // GenerateUserToken defines an access to generating user token GenerateUserToken GenerateUserTokenStaticAccessConfig `yaml:"generateUserToken"` // GenerateZoneToken defines an access to generating zone token GenerateZoneToken GenerateZoneTokenStaticAccessConfig `yaml:"generateZoneToken"` // ViewConfigDump defines an access to getting envoy config dump ViewConfigDump ViewConfigDumpStaticAccessConfig `yaml:"viewConfigDump"` }
StaticAccessConfig a static access strategy configuration
type ViewConfigDumpStaticAccessConfig ¶
type ViewConfigDumpStaticAccessConfig struct { // List of users that are allowed to get envoy config dump Users []string `yaml:"users" envconfig:"KUMA_ACCESS_STATIC_GET_CONFIG_DUMP_USERS"` // List of groups that are allowed to get envoy config dump Groups []string `yaml:"groups" envconfig:"KUMA_ACCESS_STATIC_GET_CONFIG_DUMP_GROUPS"` }
Click to show internal directories.
Click to hide internal directories.