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

Setting a PKI in vars allows the PKI to change unexpectedly #1006

Closed
TinCanTech opened this issue Aug 28, 2023 · 0 comments · Fixed by #1029
Closed

Setting a PKI in vars allows the PKI to change unexpectedly #1006

TinCanTech opened this issue Aug 28, 2023 · 0 comments · Fixed by #1029
Assignees
Labels
Milestone

Comments

@TinCanTech
Copy link
Collaborator

TinCanTech commented Aug 28, 2023

If the vars file is in ./pki (default) and set_var EASYRSA_PKI ./wrong-pki is set, then pki/vars is sourced and the commands run on ./wrong-pki.

If the vars is in the PKI, what-ever the PKI is named, then setting EASYRSA_PKI should not be allowed.

EasyRSA already knows if the vars file is in the PKI and so can pre-set EASYRSA_PKI prior to sourcing vars.

Part-of: #1009 #1014

@TinCanTech TinCanTech self-assigned this Aug 30, 2023
@TinCanTech TinCanTech added the BUG label Sep 24, 2023
@TinCanTech TinCanTech added this to the v3.1.7 milestone Sep 24, 2023
@TinCanTech TinCanTech linked a pull request Sep 24, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant