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

Backport of cli: fix tls ca create command with -domain into release/1.7.x #19911

Merged

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

This PR is auto-generated from #19892 to be assessed for backporting due to the inclusion of the label backport/1.7.x.

The below text is copied from the body of the original PR.


The current implementation of the nomad tls ca create command ovierrides the value of the -domain flag with "nomad" if no additional customization is provided.

This results in a certificate for the wrong domain or an error if the -name-constraint flag is also used.

The logic for IsCustom() also seemed reversed. If all custom fields are empty then the certificate is not customized, so IsCustom() should return false.

Closes #19836


Overview of commits

@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/cli-fix-ca-create/intensely-accepted-coyote branch from a5cb709 to 5c8abf2 Compare February 7, 2024 21:41
@lgfa29 lgfa29 merged commit 0b46858 into release/1.7.x Feb 7, 2024
19 of 20 checks passed
@lgfa29 lgfa29 deleted the backport/cli-fix-ca-create/intensely-accepted-coyote branch February 7, 2024 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants