-
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
[BUG][RC1 Sodium] Vault module cannot fetch more than one secret #57561
Comments
I have this working fine if I set But I'm really confused with the documentation in the release notes. That effect wasn't obvious to me. |
@dkacar-oradian Thank you for reporting this issue. With the new updates to the Vault module in 3001 this seems to be expected behavior. @saltstack/team-core Does that seems correct that is is expected behavior? Thanks. |
OK, it is an expected behavior, but the documentation is rather confusing and should be improved.
|
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
Still bug in 3006.1 |
I think you gotta wait until #62684 gets mainlined |
Thanks for the idea, but no idea why after upgrading to onedir, a lot of bugs appears which is not happening before 😢 |
Description
The
vault
module in Sodium RC can get only one secret in a run. Attempting to get the second secret results in an error.Setup
Master configuration:
The same effect happens with or without
uses
directive. The same configuration (withoutuses
) works perfectly fine on 3000.3 (and it's the same token).pillar/top.sls
:pillar/testvault.sls
:Those secrets use Vault V1 protocol because that is the only option with the current release (3000.3).
Steps to Reproduce the behavior
This is all happening on master. First demonstration that the secrets from Vault can be obtained one by one:
But if I try to get pillars for the above server (which require two secrets from Vault), I get an error.
On the Vault server logs contain the same thing as reported here:
{"errors":["permission denied"]}
If I comment out one pillar which accesses Vault (doesn't matter which one) then the command completes without problems and I get the correct output. But it's no go with more than one.
I suspect there's something wrong with token caching. This is from master log at the debug level:
I'm attaching full debug log from the master (file:
master_vault_error.log.gz
).I'm also attaching master debug log for the case when the second vault-accessing pillar was commented out (file:
master_vault_single.log.gz
) and there was no error reported.Expected behavior
Pillars should be rendered without errors.
I would expect things to just work without the
uses
directive because that's what will be inherited after the upgrade from the current stable version. But the release notes aren't clear about that case. It isn't explicitly mentioned at all.Versions Report
salt --versions-report
Salt minion is also at the RC version.
Additional context
I am using https://github.com/saltstack/salt/blob/v3001rc1/doc/topics/releases/3001.rst as a reference documentation for the new
vault
module features.master_vault_error.log.gz
master_vault_single.log.gz
The text was updated successfully, but these errors were encountered: