A simple Ephemeral Access plugin for tests and serve as an implementation reference. It demostrates how to implement the AccessRequester interface and make it available in a docker image so it installs itself using the init-container pattern.
When users request to have their access elevated it will:
- Initially reply the request as Pending
- After 15 seconds it will reply:
- If the current minute is an even number it retuns Approved
- If the current minute is on odd number it returns Denied
The steps below will deploy the EphemeralAccess in a Kubernetes cluster with the Sleep Plugin configured.
Run the command:
docker build -t argocd-sleep-plugin:latest .
Apply the manifests in the cluster:
kustomize build ./manifests | kubectl apply -f -