citrusframework / yaks

YAKS is a platform to enable Cloud Native BDD testing on Kubernetes
Apache License 2.0
83 stars 27 forks source link

Reading properties from secrets in other namespaces #391

Open nhb-89 opened 2 years ago

nhb-89 commented 2 years ago

Hi!

Currently we create for each yaks test a secret, like shown in the documentation, were we store some of our credentials. Creating and maintaining the code and files however is quite cumbersome. It would be nice if one could label an already existing secret and read from it that is for example synced by an ExternalSecret. This sounds quite doable, but in our case the Secret will not be in the same namespace as the yaks test pod. Currently yaks is not able to read from a secret that is located in another namespace.

christophd commented 2 years ago

So I assume that this is an RBAC issue so the yaks-viewer service account is not able to view secrets in other namespaces. Is that the error that you are getting here?