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

Fix naming of permitted_dns_domains in webui #16739

Merged
merged 2 commits into from
Aug 16, 2022

Conversation

cipherboy
Copy link
Contributor

@cipherboy cipherboy commented Aug 16, 2022

PKI has consistently used permitted_dns_domains since it was originally
introduced as a parameter. However, it appears the Web UI was updated to
add this field (n.b.: prior to the move to OSS), but used an incorrect internal identifier
(permittedDnsNames rather than permittedDnsDomains).

This triggers a warning from the backend about an unknown parameter, and
the domain restriction isn't added:

Endpoint ignored these unrecognized parameters: [permitted_dns_names]

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>


I think with the changes to the UI files, this'll apply cleanly on 1.11, but not sure the backport to 1.10.x will work. :-) I'll let you do that @hellobontempo if that's desired.

Before:

image

image

image

After:

image

image

image

PKI has consistently used permitted_dns_domains since it was originally
introduced as a parameter. However, it appears the Web UI was updated to
add this field, but used an incorrect internal identifier
(permittedDnsNames rather than permittedDnsDomains).

This triggers a warning from the backend about an unknown parameter, and
the domain restriction isn't added:

> Endpoint ignored these unrecognized parameters: [permitted_dns_names]

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
@cipherboy cipherboy added ui bug Used to indicate a potential bug secret/pki backport/1.11.x labels Aug 16, 2022
@cipherboy cipherboy marked this pull request as ready for review August 16, 2022 16:01
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
@cipherboy cipherboy added this to the 1.12.0-rc1 milestone Aug 16, 2022
Copy link
Collaborator

@hashishaw hashishaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @cipherboy!! 🚀

Copy link
Contributor

@hellobontempo hellobontempo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix! 🚀 - I'll take a look at the auto-generated backport for 1.10, too!

@cipherboy
Copy link
Contributor Author

Adding 1.10.x tag to see if this backports cleanly...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to indicate a potential bug secret/pki ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants