|
On Step server, /home/step/config/ca.json, the "authority" section -- There is a step command -- "step ca provisioner update admin --ca-config= " Its not clear whether this command in intended INSIDE the Step container, or on the client. My ca.json file contains the "maxTLSCertDuration" I want. However the Step database contains other parameters.... "step ca provisioner list" displays completely different "JWK / admin" info. Is the Step server I'm running on a Homelab, limited, or can I achieve this update on the Step server? |
Replies: 1 comment 3 replies
|
Your // ReloadAdminResources reloads admins and provisioners from the DB.
func (a *Authority) ReloadAdminResources(ctx context.Context) error {
...
if a.config.AuthorityConfig.EnableAdmin {
provs, err := a.adminDB.GetProvisioners(ctx)
...
} else {
provList = a.config.AuthorityConfig.Provisioners
adminList = a.config.AuthorityConfig.Admins
}So the That also answers the container-versus-client question. Run it from wherever you can reach the CA and authenticate as an admin. Inside the container is fine, but only because the CA is reachable from there — it isn't a local file operation, so nothing about it requires being on the server. For a homelab with one provisioner, the other option is simpler and worth considering: set Either route works; what doesn't is mixing them, which is the state you're in now. |
Not that env var, no — it won't do anything for you now. All the
DOCKER_STEPCA_INIT_*variables only run on a first-time setup: the entrypoint checks whether aca.jsonalready exists and skips initialisation entirely if it does, printing "there is no ca.json config file; please run step ca init" only in the empty case. Since your CA is already initialised, flippingDOCKER_STEPCA_INIT_REMOTE_MANAGEMENTto false just sets a variable nothing reads. It's the switch that decidedenableAdmin: trueback when you first created the CA, not a switch you can keep using.So it's the file, and you're already looking at the right place — it's the same
"authority"block you pasted, where"enableAdmin": …