-
|
I followed https://smallstep.com/docs/certificate-manager/kubernetes-tls/kubernetes-step-issuer/ My homelab was renewing certificates fine and i had tls via a wildcard domain at I recently followed https://smallstep.com/blog/access-your-homelab-anywhere/ I started getting these errors in step-issuer and on my ca after following it: step-issuer but this seems to have completely broken step-issuer. it can no longer renew certificates and no matter what I try i cannot add my san to the allow list. I get: my admins: It's unclear to me what the Standalone mode is also confusing. AFAICT, there is no i also tried with my admin that has the step-issuer as a provisioner: Then i thought maybe i misunderstood and need to add it to authority policies: Authority Policies |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
|
Can you try --admin-provisioner to point to the admin JWK? |
Beta Was this translation helpful? Give feedback.
-
|
admin-provisioenr me@tinyca ~> sudo -u step --preserve-env step ca policy provisioner x509 allow dns "*.jupiter.lan" --provisioner "step-issuer" --admin-provisioner "step"
No admin credentials found. You must login to execute admin commands.
✔ Please enter admin name/subject (e.g., name@example.com): step
error creating admin client: invalid value 'step' for flag '--admin-provisioner'
me@tinyca ~ [1]> sudo -u step --preserve-env step ca policy provisioner x509 allow dns "*.jupiter.lan" --provisioner "step-issuer" --admin-provisioner "mainsuperadmin@mail.com"
No admin credentials found. You must login to execute admin commands.
✔ Please enter admin name/subject (e.g., name@example.com): step█
error creating admin client: invalid value 'mainsuperadmin@mail.com' for flag '--admin-provisioner'
me@tinyca ~ [1]> sudo -u step --preserve-env step ca policy provisioner x509 allow dns "*.jupiter.lan" --provisioner "step-issuer" --admin-provisioner mainsuperadmin@mail.com
No admin credentials found. You must login to execute admin commands.
✔ Please enter admin name/subject (e.g., name@example.com): step
error creating admin client: invalid value 'mainsuperadmin@mail.com' for flag '--admin-provisioner'
me@tinyca ~ [1]> sudo -u step --preserve-env step ca policy provisioner x509 allow dns "*.jupiter.lan" --provisioner "step-issuer" --admin-provisioner step-issuer-admin
No admin credentials found. You must login to execute admin commands.
✔ Please enter admin name/subject (e.g., name@example.com): step
error creating admin client: invalid value 'step-issuer-admin' for flag '--admin-provisioner'
me@tinyca ~ [1]> sudo -u step --preserve-env step ca policy provisioner x509 allow dns "*.jupiter.lan" --provisioner "step-issuer" --admin-provisioner step
No admin credentials found. You must login to execute admin commands.
✔ Please enter admin name/subject (e.g., name@example.com): step
error creating admin client: invalid value 'step' for flag '--admin-provisioner'Variations: me@tinyca ~> sudo -u step --preserve-env step ca policy provisioner x509 allow dns "*.jupiter.lan" --provisioner "step-issuer" --admin-subject step
No admin credentials found. You must login to execute admin commands.
✔ Provisioner: step-issuer (JWK) [kid: --]
Please enter the password to decrypt the provisioner key:
Please enter the password to decrypt the provisioner key:
error retrieving policy: error retrieving policy: adminHandler.authorizeToken; unable to load admin with subject(s) [step step] and provisioner 'step-issuer'
me@tinyca ~ [1]> sudo -u step --preserve-env step ca policy provisioner x509 allow dns "*.jupiter.lan" --provisioner "step-issuer" --admin-subject step-issuer-admin
No admin credentials found. You must login to execute admin commands.
✔ Provisioner: step-issuer (JWK) [kid: --]
Please enter the password to decrypt the provisioner key:
error retrieving policy: error retrieving policy: operation not supported in standalone mode
me@tinyca ~ [1]> sudo -u step --preserve-env step ca policy provisioner x509 allow dns "*.jupiter.lan" --provisioner "step-issuer" --admin-issuer step
No admin credentials found. You must login to execute admin commands.
✔ Please enter admin name/subject (e.g., name@example.com): step
error creating admin client: invalid value 'step' for flag '--admin-provisioner'
me@tinyca ~ [1]> sudo -u step --preserve-env step ca policy provisioner x509 allow dns "*.jupiter.lan" --provisioner "step-issuer" --admin-issuer step-issuer-admin
No admin credentials found. You must login to execute admin commands.
✔ Please enter admin name/subject (e.g., name@example.com): step-issuer-admin
error creating admin client: invalid value 'step-issuer-admin' for flag '--admin-provisioner'
me@tinyca ~ [1]> |
Beta Was this translation helpful? Give feedback.
-
|
And with |
Beta Was this translation helpful? Give feedback.
-
|
For any future visitors, I figured it out: The open-source Step Certificate authority can only be configured at an
So, that may be why none of the Ultimately, this is what fixed it, and all at the authority level: 1.) Add wildcard domain to authority The really confusing part for me is that i wanted this allow list scoped to just the IMO Step should have better error messages than or the previous authority admin/permission errors, since its difficult to find what the right "troubleshooting" path really is. I was convinced there was some secret/undocumented "offline" mode I could use the issue provisioner rules, when in reality provisioner rules were simply disabled completely (or maybe there is a mode, but only in the "proprietary" hosted version) Glad to have fixed this though! Now i got mTLS on my k3s cluster working. thanks for the suggestions @hslatman |
Beta Was this translation helpful? Give feedback.
For any future visitors, I figured it out:
The open-source Step Certificate authority can only be configured at an
authoritylevel (according to these docs)So, that may be why none of the
provisionercommands worked, the self-hosted one can only do rules forauthoritycommandsUltimately, this is what fixed it, and all at the authority level:
1.) Add wildcard domain to authority
2.) Allow wildcard domains. Even if domain is on allowlist with wildc…