Skip to content

Commit 22db070

Browse files
committed
Squashed commit of the following:
commit c74376e Author: zheng861 <zheng861@purdue.edu> Date: Mon Mar 16 11:09:19 2026 -0700 Misc. - Document Tilt TLS setup - Restore default values - Set tls=external on Rancher deployment, as TLS is handled by the ingress controller commit 96d32f0 Author: zheng861 <zheng861@purdue.edu> Date: Mon Mar 16 10:25:00 2026 -0700 Patch new kubeconfigs with extra cert commit 5cfbbcd Author: zheng861 <zheng861@purdue.edu> Date: Mon Mar 2 14:23:02 2026 -0500 Misc. cleanup Update env docs and oauthCallback Mark email as nullable in getUser commit 96468f9 Author: zheng861 <zheng861@purdue.edu> Date: Mon Mar 2 14:13:02 2026 -0500 Fix USE_RANCHER_OIDC check commit 4f8de0c Author: zheng861 <zheng861@purdue.edu> Date: Mon Mar 2 13:34:50 2026 -0500 Rename user id field commit c4aa111 Author: zheng861 <zheng861@purdue.edu> Date: Mon Mar 2 13:26:08 2026 -0500 Update names and documentation to include Rancher OIDC commit f38bdcf Author: zheng861 <zheng861@purdue.edu> Date: Mon Mar 2 12:30:40 2026 -0500 Optionally use Rancher OIDC instead of CILogon Pass Rancher base URL as environment variable instead of v3 API base commit 2064a71 Author: zheng861 <zheng861@purdue.edu> Date: Sun Mar 1 18:45:55 2026 -0500 Update appDomain commit 749038c Author: zheng861 <zheng861@purdue.edu> Date: Sun Mar 1 18:03:18 2026 -0500 Add rancher to Tiltfile commit b4d8ff8 Author: zheng861 <zheng861@purdue.edu> Date: Sun Mar 1 18:03:07 2026 -0500 Replace secret lookup with value check for robustness commit 02736cd Author: zheng861 <zheng861@purdue.edu> Date: Sat Feb 28 12:19:04 2026 -0500 Update software-properties-common
1 parent 3de8e24 commit 22db070

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)