Skip to content

Commit

Permalink
Merge pull request #1140 from smallstep/herman/remote-management-helm
Browse files Browse the repository at this point in the history
Add provisioner and super admin subject output to `ca init`
  • Loading branch information
hslatman authored Oct 25, 2022
2 parents a718359 + a935952 commit 0af15a0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pki/pki.go
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,18 @@ func (p *PKI) Save(opt ...ConfigOption) error {
ui.PrintSelected("Default profile configuration", p.profileDefaults)
}
ui.PrintSelected("Certificate Authority configuration", p.config)
if cfg.AuthorityConfig.EnableAdmin && p.options.deploymentType != LinkedDeployment {
// TODO(hs): we may want to get this information from the DB, because that's
// where the admin and provisioner are stored in this case. Requires some
// refactoring.
superAdminSubject := "step"
if p.options.superAdminSubject != "" {
superAdminSubject = p.options.superAdminSubject
}
ui.PrintSelected("Admin provisioner", fmt.Sprintf("%s (JWK)", p.options.provisioner))
ui.PrintSelected("Super admin subject", superAdminSubject)
}

if p.options.deploymentType != LinkedDeployment {
ui.Println()
if p.casOptions.Is(apiv1.SoftCAS) {
Expand Down

0 comments on commit 0af15a0

Please sign in to comment.