You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using vault as external pillar, if a particular minion does not have access to all secrets being integrated, the pillar rendering will fail upon the first secret it encounters that it does not have access to, and thus fail to render pillars even for which the minion does have access to.
Also make sure secrets exist in vault at the above referenced locations, i.e. secret/mysql and secret/postgres, as well as policies that grant access to each secret path, respectively, which will be applied to minions templated by minion id. E.g.
suggesting that the external vault pillar rendering occurs until first failure.
Expected behavior
I would expect the pillar rendering to continue over forbidden paths to still obtain configured secret paths for which the minion does have access to. As-is, external vault pillar doesn't seem practical except for use cases where all minions have policy access to all configured external pillar secret paths.
Versions Report
# salt --versions-report
Salt Version:
Salt: 3004
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 2.7.3
docker-py: Not Installed
gitdb: 2.0.6
gitpython: 3.0.7
Jinja2: 2.10.1
libgit2: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack: 0.6.2
msgpack-pure: Not Installed
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: Not Installed
pycryptodome: 3.6.1
pygit2: Not Installed
Python: 3.8.10 (default, Nov 26 2021, 20:14:08)
python-gnupg: 0.4.5
PyYAML: 5.3.1
PyZMQ: 18.1.1
smmap: 2.0.5
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.3.2
System Versions:
dist: ubuntu 20.04 focal
locale: utf-8
machine: x86_64
release: 5.4.0-97-generic
system: Linux
version: Ubuntu 20.04 focal
The text was updated successfully, but these errors were encountered:
Description
When using vault as external pillar, if a particular minion does not have access to all secrets being integrated, the pillar rendering will fail upon the first secret it encounters that it does not have access to, and thus fail to render pillars even for which the minion does have access to.
Setup
salt-master
andsalt minion
on different serversand on minions
Also make sure secrets exist in vault at the above referenced locations, i.e.
secret/mysql
andsecret/postgres
, as well as policies that grant access to each secret path, respectively, which will be applied to minions templated by minion id. E.g.Steps to Reproduce the behavior
Verify that each minion can see their respective secrets, but not others
But with external pillar it's all or nothing
Notice that if the order is switched in the ext_pillar configuration, i.e.
then we get different results
suggesting that the external vault pillar rendering occurs until first failure.
Expected behavior
I would expect the pillar rendering to continue over forbidden paths to still obtain configured secret paths for which the minion does have access to. As-is, external vault pillar doesn't seem practical except for use cases where all minions have policy access to all configured external pillar secret paths.
Versions Report
The text was updated successfully, but these errors were encountered: