Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "authz"
View Source
const UNAUTHENTICATED_ROLE = "UNAUTHENTICATED"
Variables ¶
View Source
var (
OPEN_COMMAND = map[string]struct{}{
"isMaster": {},
"ismaster": {},
"buildInfo": {},
"buildinfo": {},
"connectionStatus": {},
"saslStart": {},
"getnonce": {},
"logout": {},
"ping": {},
"dbStats": {},
"dbstats": {},
}
)
Functions ¶
This section is empty.
Types ¶
type AuthzPlugin ¶
type AuthzPlugin struct {
// contains filtered or unexported fields
}
This is a plugin that handles sending the request to the acutual downstream mongo
func (*AuthzPlugin) Configure ¶
func (p *AuthzPlugin) Configure(d bson.D) error
Configure configures this plugin with the given configuration object. Returns an error if the configuration is invalid for the plugin.
func (*AuthzPlugin) LoadConfig ¶
func (p *AuthzPlugin) LoadConfig() (err error)
func (*AuthzPlugin) Name ¶
func (p *AuthzPlugin) Name() string
type AuthzPluginConfig ¶
type AuthzPluginConfig struct { // Paths is the path on disk to load authz policies/roles/config from Paths []string `bson:"paths"` LogUnauthenticated bool `bson:"logUnauthenticated"` // Log all unauthenticated requests // DenyByDefault controls whether the default policy is to deny (true) or not (false) DenyByDefault bool `bson:"denyByDefault"` DenyByDefaultNamespaces map[string]bool `bson:"denyByDefaultNamespaces"` }
Click to show internal directories.
Click to hide internal directories.