Skip to content

Commit a9f169f

Browse files
authored
Merge pull request #33 from PurdueRCAC/rancher-local
Rancher OIDC
2 parents 3de8e24 + 22db070 commit a9f169f

29 files changed

Lines changed: 12700 additions & 289 deletions

File tree

backend/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ GITHUB_PRIVATE_KEY= # make sure you encode this as Base64
1717

1818
NODE_ENV=development # "development" disables secure cookies; any other value will enable them. this variable doesn't do anything other than that.
1919

20-
# CILogon OAuth credentials
20+
# OIDC credentials
2121
CLIENT_ID=
2222
CLIENT_SECRET=
2323

backend/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Add them as environment variables:
6262
- `GITHUB_BASE_URL` (`base-url`): The URL you use to access GitHub, including the protocol, with no trailing slash. Typically this is `https://github.com`, but it will vary if you're using GitHub Enterprise.
6363
- `GITHUB_API_URL` (`api-url`): The URL of the GitHub API, including the protocol, with no trailing slash. For GitHub.com, this is `https://api.github.com`, but on GitHub Enterprise, it will likely be `https://<your GHES server>/api/v3`.
6464

65-
### CILogon
65+
### OIDC
6666

6767
Environment variables:
6868

@@ -88,7 +88,7 @@ docker run -p 5432:5432 --rm -it -v anvilops:/var/lib/postgresql/data -e POSTGRE
8888

8989
For access control, AnvilOps can integrate with the Rancher API. If you are not using Rancher, leave the following values unset.
9090

91-
In development, set the environment variable `RANCHER_API_BASE` to the Rancher v3 API base URL (e.g. https://composable.anvil.rcac.purdue.edu/v3). Also provide a non-cluster scoped token (base64-encoded) for the AnvilOps service user's account, under the `RANCHER_TOKEN` environment variable or the `api-token` key of the secret `rancher-config`.
91+
In development, set the environment variable `RANCHER_BASE_URL` to the Rancher base URL (e.g. https://composable.anvil.rcac.purdue.edu). Also provide a non-cluster scoped token (base64-encoded) for the AnvilOps service user's account, under the `RANCHER_TOKEN` environment variable or the `api-token` key of the secret `rancher-config`.
9292

9393
If you would like to make a sandbox project available to users, set the environment variable `SANDBOX_ID` to its project ID. In production, set the the `sandbox-id` key of the `rancher-config` secret.
9494

@@ -112,7 +112,7 @@ Ensure that the user associated with the kubeconfig file has permissions to view
112112

113113
Finally, in order to link users with their Rancher accounts, AnvilOps needs additional information about how to match login information with user ids.
114114

115-
Set the environment variable `LOGIN_TYPE` to the name of the login method that AnvilOps users use to sign into Rancher, e.g. `shibboleth`, `azuread`, or `github`. To obtain the exact name, visit `https://<RANCHER_API_BASE>/authConfigs` and use the `id` field for the configuration matching your selected login method. Also set the environment variable `LOGIN_CLAIM` to the CILogon OIDC claim that Rancher uses to set principalIds. See available claims at `https://www.cilogon.org/oidc`. It should represent the same value as the UID field of your Rancher authentication config.
115+
Set the environment variable `LOGIN_TYPE` to the name of the login method that AnvilOps users use to sign into Rancher, e.g. `shibboleth`, `azuread`, or `github`. To obtain the exact name, visit `https://<RANCHER_API_BASE_URL>/v3/authConfigs` and use the `id` field for the configuration matching your selected login method. Also set the environment variable `LOGIN_CLAIM` to the CILogon OIDC claim that Rancher uses to set principalIds. See available claims at `https://www.cilogon.org/oidc`. It should represent the same value as the UID field of your Rancher authentication config.
116116

117117
### Kubernetes API
118118

0 commit comments

Comments
 (0)