Skip to content

argoproj-labs/argocd-ephemeral-access-sleep-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Argo CD EphemeralAccess Sleep Plugin

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.

How it works

When users request to have their access elevated it will:

  1. Initially reply the request as Pending
  2. 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

Using it

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 -

About

A simple Ephemeral Access plugin for tests and serve as example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published