Component ยท Shared or other
add-environment-thunder.sh
ON-PREM Job Identity
What it is
add-environment-thunder.sh is an install script that creates an environment ThunderID for one environment. It installs the upstream thunderid chart in its own namespace, connects it to the platform ThunderID, creates its system client, and stores that client's secret in AMS. It belongs to the on-prem setup.
Why it exists
Each environment needs its own identity server for agents. The script makes adding an environment a repeatable one-step job.
How it works
- Inputs include ENV_NAME, CHART_VERSION (default 1.0.0) and the base domain for hostnames.
- Installs the release amp-thunder-<org>-<env>, with a name length cap and a hash for long names.
- Sets a trusted issuer so the new instance's admin API accepts platform ThunderID tokens.
- Creates amp-system-client and stores its secret in AMS through a PUT to the thunder-system-client route.
- The environment's public URL is registered in AMS.
Identity and access
The script authenticates to AMS with a service token. The created system client holds the system scope for managing that one environment's instance.
Key facts
- Script
- add-environment-thunder.sh
- Chart version (default)
- 1.0.0
- Edition
- On-prem
- Namespace
- amp-thunder-<org>-<env>
Talks to (2)
- deploys to Env ThunderID (per environment) Installs env Thunder, trusted issuer to platform Thunderhelm install
- calls agent-manager-service (AMS) Registers the environment sign-in handle and stores its system client credentialHTTP PUT /environments/{env}/thunder-url and /thunder-system-client
Used by (1)
- called by add-environment.sh Downloads and runs the env ThunderID install script when PROVISION_THUNDER is truecurl download then bash