-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds creation of sentinel files for checking provider status
- Loading branch information
diverdane
committed
Mar 18, 2022
1 parent
e25afb8
commit 3ec40b7
Showing
17 changed files
with
720 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
|
||
# This is a convenient script that can be used in a Kubernetes 'postStart' | ||
# lifecycle hook for the Secrets Provider container in an application | ||
# Deployment manifest. When used in this manner, Kubernetes will hold off on | ||
# starting other containers until after Secrets Provider has provided | ||
# Conjur secrets via secret files or Kubernetes Secrets. | ||
|
||
until [ -f /conjur/status/CONJUR_SECRETS_PROVIDED ]; do | ||
sleep 1 | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
|
||
# This is a convenient script that can be used in a Kubernetes 'livenessProbe' | ||
# definition for an application container to trigger Kubernetes to restart | ||
# the container. It returns an exit status of '1', and therefore forces a | ||
# failure of the 'livenessProbe' whenever the Secrets Provider has indicated | ||
# that managed secret files or Kubernetes Secrets have been updated | ||
# with new secret values retrieved from Conjur. | ||
|
||
cd "$(dirname "$0")" | ||
if [ -f ./CONJUR_SECRETS_UPDATED ]; then | ||
rm ./CONJUR_SECRETS_UPDATED | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.