Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLS CA create command with name-constraint #19836

Closed
guillaumejchauveau opened this issue Jan 28, 2024 · 1 comment · Fixed by #19892
Closed

TLS CA create command with name-constraint #19836

guillaumejchauveau opened this issue Jan 28, 2024 · 1 comment · Fixed by #19892
Assignees
Labels
stage/accepted Confirmed, and intend to work on. No timeline committment though. theme/cli type/bug

Comments

@guillaumejchauveau
Copy link

Nomad version

Bug occurs on versions 1.6.0, 1.7.[1,2,3].

Operating system and Environment details

Fedora 39, Rocky Linux 9.

Issue

Using the CLI command nomad tls ca create -name-constraint="true" -domain="foo.com" yields Please provide the -domain flag if you want to enable custom domain constraints.
Nomad version 1.5.0 behaves as expected.

Reproduction steps

Use Nomad version 1.6.0 or 1.7.[1,2,3]. Run the command nomad tls ca create -name-constraint="true" -domain="foo.com".

Expected Result

==> CA certificate saved to: foo.com-agent-ca.pem
==> CA certificate key saved to: foo.com-agent-ca-key.pem

Actual Result

Please provide the -domain flag if you want to enable custom domain constraints.
@lgfa29
Copy link
Contributor

lgfa29 commented Feb 6, 2024

Thanks for the report @guillaumejchauveau.

I think the bug was introduced in #17309, where the -domain flag is being overwritten unless you specify other customization flags. I've opened #19892 to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage/accepted Confirmed, and intend to work on. No timeline committment though. theme/cli type/bug
Projects
Development

Successfully merging a pull request may close this issue.

2 participants