Enable admin automatically if a token is provided.

pull/633/head
Mariano Cano 3 years ago
parent 5344f42f21
commit 26122a2cbf

@ -440,7 +440,7 @@ func (a *Authority) init() error {
// TODO: mimick the x509CAService GetCertificateAuthority here too?
}
if a.config.AuthorityConfig.EnableAdmin {
if a.config.AuthorityConfig.EnableAdmin || a.linkedCAToken != "" {
// Initialize step-ca Admin Database if it's not already initialized using
// WithAdminDB.
if a.adminDB == nil {

Loading…
Cancel
Save