Documentation
¶
Index ¶
Constants ¶
View Source
const (
// const for ldap configuration
ConsoleLDAPEnabled = "CONSOLE_LDAP_ENABLED"
)
Variables ¶
This section is empty.
Functions ¶
func GetActionsStringFromPolicy ¶
GetActionsStringFromPolicy extract the admin/s3 actions from a given policy and return them in []string format
ie:
{
"Version": "2012-10-17",
"Statement": [{
"Action": [
"admin:ServerInfo",
"admin:CreatePolicy",
"admin:GetUser"
],
...
},
{
"Action": [
"s3:ListenBucketNotification",
"s3:PutBucketNotification"
],
...
}
]
}
Will produce an array like: ["admin:ServerInfo", "admin:CreatePolicy", "admin:GetUser", "s3:ListenBucketNotification", "s3:PutBucketNotification"]\
func GetAuthorizedEndpoints ¶
GetAuthorizedEndpoints return a list of allowed endpoint based on a provided *iampolicy.Policy ie: pages the user should have access based on his current privileges
func GetLDAPEnabled ¶ added in v0.6.2
func GetLDAPEnabled() bool
func GetOperatorMode ¶
func GetOperatorMode() bool
GetOperatorMode gets Console Operator mode status set on env variable or default one
Types ¶
type ConfigurationActionSet ¶
type ConfigurationActionSet struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.