-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
The 'verify' key in Vault module configuration has to be specified in the minion config, too #58174
Comments
In case anyone looking at this issue is wondering you can set on both the minion and master:
To get disable the verify if you're not needing the cert check for whatever reason. |
At the very least this should have been properly documented as a breaking change. We'll add some documentation for it. |
Hit this problem and changed original code to fix it before found this GitHub issue page:
where It might be that using |
This commit represents a fundamental rewrite in how Salt interacts with Vault. The master should still be compatible with minions running the old code. There should be no breaking changes to public interfaces and the old configuration format should still apply. Core: - Issue AppRoles to minions - Manage entities with templatable metadata for minions - Use inbuilt Salt cache - Separate config cache from token cache - Cache: introduce connection-scope vs global scope Utility module: - Support being imported (__utils__ deprecation) - Raise exceptions on queries to simplify response handling - Add classes to wrap complexity, especially regarding KV v2 - Lay some groundwork for renewing tokens Execution module: - Add patch_secret - Add version support to delete_secret - Allow returning listed keys only in list_secret - Add policy_[fetch/write/delete] and policies_list - Add query for arbitrary API queries State module: - Make use of execution module - Change output format Docs: - Update for new configuration format - Correct examples - Add configuration examples - Add required policies Fixes: saltstack/salt#62552 saltstack/salt#59827 saltstack/salt#62380 saltstack/salt#58174 Probably fixes: saltstack/salt#60779 saltstack/salt#57561 Might fix: saltstack/salt#59846
Description
The vault module configuration documentation does not mention the necessity of
vault:verify
key in the minion config. Consequently, the__opts__
dictionary on minion is missing thevault:verify
key, which is required in the code inutils/vault.py
.Setup
Steps to Reproduce the behavior
verify
any file which is not system default like/etc/ssl/certs/ca-certificates.crt
or/etc/ssl/certs/ca-bundle.crt
/etc/ssl/certs/ca-certificates.crt
or/etc/ssl/certs/ca-bundle.crt
depending on the OS.salt-call vault.read_secret 'secret/your-secret'
and get a Certificate Validation ErrorExplanation
If minion config doesn't include the
vault:verify
key, AND master config doesn't includevault:auth:allow_minion_override: True
, we end up at the "Don't worry" line inside themake_request
function insalt/utils/vault.py
This new behavior is not documented.
Expected behavior
With this code in
utils/vault.py
the documentation has to include the explicit instruction to place thevault:verify
key into the minion config and set theallow_minion_override
to True on salt-master.Minion config:
Master config:
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: