Added configurable securityContext
and follow restricted
PSS
#210
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello! We want to be able to control the
securityContext
of the 1Password Connect pods to follow our own set of guidelines. Such as we want our pods to use a specific UID.I've also changed it to follow the
restricted
Pod Security Standard by default, so people can use the 1Password Connect operator when they have thepod-security.kubernetes.io/enforce: restricted
namespace label.Changes:
securityContext
settings to connect chartsecurityContext
settings to secrets-injector chartsecurityContext
to followrestricted
Pod Security Standard by defaultpre-upgrade
to secrets-injector to also update on upgradesemptyDir
for/tmp
to secrets-injector as I'm settingsecurityContext.readOnlyRootFilesystem: true
and the glog library requires it to write logs into (changing-alsologtostderr
to-logtostderr
didn't help)I've tested this by installing into a test cluster and running the acceptance tests.
Closes #192