Give people a cookie (with a unique ID), which is then mapped to credentials (optionally by firing them via a canon).
Useful for giving out temporary credentials to students during a workshop.
This script will generate config.yaml
and users.htpasswd
. You can edit generateUsers.sh
before generating to customize the username/password format.
user@host: ./generateUsers.sh
After config.yaml
has been generated, you will want to edit it, to set the "server" in to match your OpenShift console address.
With the users.htpasswd, upload it to OpenShift to create the users. This is straightforward and takes just a few minutes. Docs: https://docs.openshift.com/container-platform/4.11/authentication/identity_providers/configuring-htpasswd-identity-provider.html
- Go to the Developer perspective, and Add.
- Choose "Import from Git".
- Use this repo URL ("https://github.com/jamesread/CookieCredentialCannon.git") and submit. Wait for the build to complete.
- Edit the deployment to add PV storage, 1GB is fine, mount it to
/data/
- Edit the deployment to set the environment variable
CCC_DATA
to/data/
. - Use the "terminal" feature of the pod to edit
/data/config.yaml
with theconfig.yaml
that you created. - Visit the Route of the application to get to a webpage, you should be assigned to the first user. Horray :-)
Any issues, or help needed, please raise a GitHub issue.