mirror of
https://github.com/postmannen/ctrl.git
synced 2024-12-15 17:51:15 +00:00
added flag enableAclCheck
This commit is contained in:
parent
a9e06294de
commit
535d5efb08
2 changed files with 11 additions and 1 deletions
|
@ -83,6 +83,8 @@ type Configuration struct {
|
||||||
EnableTUI bool
|
EnableTUI bool
|
||||||
// EnableSignatureCheck
|
// EnableSignatureCheck
|
||||||
EnableSignatureCheck bool
|
EnableSignatureCheck bool
|
||||||
|
// EnableAclCheck
|
||||||
|
EnableAclCheck bool
|
||||||
// IsCentralAuth
|
// IsCentralAuth
|
||||||
IsCentralAuth bool
|
IsCentralAuth bool
|
||||||
// EnableDebug will also enable printing all the messages received in the errorKernel
|
// EnableDebug will also enable printing all the messages received in the errorKernel
|
||||||
|
@ -172,6 +174,7 @@ type ConfigurationFromFile struct {
|
||||||
EnableSocket *bool
|
EnableSocket *bool
|
||||||
EnableTUI *bool
|
EnableTUI *bool
|
||||||
EnableSignatureCheck *bool
|
EnableSignatureCheck *bool
|
||||||
|
EnableAclCheck *bool
|
||||||
IsCentralAuth *bool
|
IsCentralAuth *bool
|
||||||
EnableDebug *bool
|
EnableDebug *bool
|
||||||
|
|
||||||
|
@ -239,6 +242,7 @@ func newConfigurationDefaults() Configuration {
|
||||||
EnableSocket: true,
|
EnableSocket: true,
|
||||||
EnableTUI: false,
|
EnableTUI: false,
|
||||||
EnableSignatureCheck: false,
|
EnableSignatureCheck: false,
|
||||||
|
EnableAclCheck: false,
|
||||||
IsCentralAuth: false,
|
IsCentralAuth: false,
|
||||||
EnableDebug: false,
|
EnableDebug: false,
|
||||||
|
|
||||||
|
@ -433,6 +437,11 @@ func checkConfigValues(cf ConfigurationFromFile) Configuration {
|
||||||
} else {
|
} else {
|
||||||
conf.EnableSignatureCheck = *cf.EnableSignatureCheck
|
conf.EnableSignatureCheck = *cf.EnableSignatureCheck
|
||||||
}
|
}
|
||||||
|
if cf.EnableAclCheck == nil {
|
||||||
|
conf.EnableAclCheck = cd.EnableAclCheck
|
||||||
|
} else {
|
||||||
|
conf.EnableAclCheck = *cf.EnableAclCheck
|
||||||
|
}
|
||||||
if cf.IsCentralAuth == nil {
|
if cf.IsCentralAuth == nil {
|
||||||
conf.IsCentralAuth = cd.IsCentralAuth
|
conf.IsCentralAuth = cd.IsCentralAuth
|
||||||
} else {
|
} else {
|
||||||
|
@ -617,6 +626,7 @@ func (c *Configuration) CheckFlags() error {
|
||||||
flag.BoolVar(&c.EnableSocket, "enableSocket", fc.EnableSocket, "true/false, for enabling the creation of a steward.sock file")
|
flag.BoolVar(&c.EnableSocket, "enableSocket", fc.EnableSocket, "true/false, for enabling the creation of a steward.sock file")
|
||||||
flag.BoolVar(&c.EnableTUI, "enableTUI", fc.EnableTUI, "true/false for enabling the Terminal User Interface")
|
flag.BoolVar(&c.EnableTUI, "enableTUI", fc.EnableTUI, "true/false for enabling the Terminal User Interface")
|
||||||
flag.BoolVar(&c.EnableSignatureCheck, "enableSignatureCheck", fc.EnableSignatureCheck, "true/false *TESTING* enable signature checking.")
|
flag.BoolVar(&c.EnableSignatureCheck, "enableSignatureCheck", fc.EnableSignatureCheck, "true/false *TESTING* enable signature checking.")
|
||||||
|
flag.BoolVar(&c.EnableAclCheck, "enableAclCheck", fc.EnableAclCheck, "true/false *TESTING* enable Acl checking.")
|
||||||
flag.BoolVar(&c.IsCentralAuth, "isCentralAuth", fc.IsCentralAuth, "true/false, *TESTING* is this the central auth server")
|
flag.BoolVar(&c.IsCentralAuth, "isCentralAuth", fc.IsCentralAuth, "true/false, *TESTING* is this the central auth server")
|
||||||
flag.BoolVar(&c.EnableDebug, "enableDebug", fc.EnableDebug, "true/false, will enable debug logging so all messages sent to the errorKernel will also be printed to STDERR")
|
flag.BoolVar(&c.EnableDebug, "enableDebug", fc.EnableDebug, "true/false, will enable debug logging so all messages sent to the errorKernel will also be printed to STDERR")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue