Configuration options
You can customize the behavior of the Just-In-Time Access application by setting environment variables in your AppEngine configuration file or Cloud Run service YAML .
The following table lists all available configuration options.
Basic configuration
Name | Description | Required | Default | Available since |
---|---|---|---|---|
RESOURCE_SCOPE
|
The organization, folder, or project that JIT Access can access and manage. The resource scope constrains:
You can use one of the following values:
For ORGANIZATION_ID, FOLDER_ID, or PROJECT_ID, use the ID of the organization, folder, or project that you're using the application with. You must grant the application's service account access to the appropriate node of the resource hierarchy. |
Required | Project in which Just-In-Time Access application is deployed | 1.0 |
RESOURCE_CATALOG
|
Approach and API to use for finding eligible role bindings. For more information about catalogs, see Switch to a different catalog. |
Required | PolicyAnalyzer |
1.6 |
RESOURCE_CUSTOMER_ID
|
Customer ID of your Cloud Identity or Workspace account For more information about how to find this ID, see Find your customer ID. |
Required for the AssetInventory catalog | 1.6 | |
ACTIVATION_TIMEOUT ,
Deprecated: ELEVATION_DURATION
|
Maximum duration (in minutes) for which users can request to activate a role. |
Required | 120 |
1.0 |
JUSTIFICATION_HINT
|
Hint that indicates which kind of justification users are expected to provide. |
Required | Bug or case number |
1.0 |
JUSTIFICATION_PATTERN
|
A regular expression that a justification has to match.
For example, if you expect users to provide a ticket number in the form of |
Required | .* |
1.0 |
ACTIVATION_REQUEST_MAX_ROLES
|
Maximum number of roles that users can activate in a single request. |
Required | 10 |
1.4.1 |
AVAILABLE_PROJECTS_QUERY
|
Query to use for project auto-completer. When not configured, the application uses the Policy Analyzer API to determine the list of projects shown in the project auto-completer. The auto-completer only lists projects that the user has eligible access to.
When you configure this variable, the application instead performs a search to determine the list of projects. This method is faster, but can lead to unintended information disclosure where users are suggested projects they don't have access to.
Set this variable to any query supported by |
Optional | 1.5 |
Multi-party approval
Name | Description | Required | Default | Available since |
---|---|---|---|---|
ACTIVATION_REQUEST_TIMEOUT
|
Duration (in minutes) for which an activation request remains valid.
Like |
Required for MPA | 60 |
1.2 |
ACTIVATION_REQUEST_MIN_REVIEWERS
|
Minimum number of reviewers for approval requests.
If you set this to a value larger than |
Required for MPA | 1 |
1.4 |
ACTIVATION_REQUEST_MAX_REVIEWERS
|
Maximum number of reviewers for approval requests. |
Required for MPA | 10 |
1.4 |
SMTP_HOST |
SMTP server to use for delivering notifications. |
Required for MPA | smtp.gmail.com |
1.2 |
SMTP_PORT |
SMTP port to use for delivering notifications. Notice that port 25 is not allowed. |
Required for MPA | 587 |
1.2 |
SMTP_SENDER_NAME |
Name used as sender name in notifications. |
Required for MPA | JIT Access |
1.2 |
SMTP_ENABLE_STARTTLS |
Enable StartTLS (required by most mail servers). |
Required for MPA | true |
1.2 |
SMTP_SENDER_ADDRESS |
Email address to use for notifications. |
Required for MPA | 1.2 | |
SMTP_USERNAME |
Username for SMTP authentication (optional, only required if your SMTP requires authentication). |
Optional | 1.2 | |
SMTP_PASSWORD |
Password for SMTP authentication (optional, only required if your SMTP requires authentication). If you're using Gmail to deliver emails, this must be an app password. |
Optional | 1.2 | |
SMTP_SECRET |
Path to a Secrets Manager secret that contains the password for SMTP authentication. You can use this option as an alternative to The path must be in the format If you're using Gmail to deliver emails, this must be an app password. |
Optional | 1.4 | |
SMTP_OPTIONS |
Comma-separated list of additional JavaMail
options for delivering email. For example:
For most mail servers, no additional options are required. |
Optional | 1.2 | |
SMTP_ADDRESS_MAPPING |
CEL expression for deriving a user's email address from their Cloud Identity/Workspace user ID. By default, JIT Accesses uses the Cloud Identity/Workspace user ID (such as alice@example.com) as email address to deliver notifications to. If some or all of your Cloud Identity/Workspace user IDs do not correspond to valid email addresses, use this setting to specify a CEL expression that derives a valid email address.
CEL expressions can use standard functions
and the
For example, the following expression replaces the domain
If you're using multiple domains and only need to substitute one of them, you can use conditional statements. For example:
|
Optional | 1.7 |
Notifications
Name | Description | Required | Default | Available since |
---|---|---|---|---|
NOTIFICATION_TIMEZONE
|
Timezone to use for dates in notification emails.
The value must be a valid identifier from the IANA Time Zone Database (TZDB),
for example |
Required for MPA | UTC | 1.2 |
NOTIFICATION_TOPIC
|
Name of a Pub/Sub topic to post notifications to, for example When you configure this variable, JIT Access posts a notification message to the Pub/Sub topic whenever a user self-activates a role, requests MPA-approval for a role, or is granted MPA-approval. Other applications can consume these messages to implement additional logic, such as posting to chat rooms or triggering additional workflows. When you don't configure this variable, JIT Access doesn't post any Pub/Sub messages. The topic must be in the same project as the application. |
Optional | 1.5 |
Networking
Name | Description | Required | Default | Available since |
---|---|---|---|---|
IAP_BACKEND_SERVICE_ID
|
ID of the load balancer backend used by IAP. The ID is used for verifying the audience of IAP assertions |
Required on Cloud Run unless IAP_VERIFY_AUDIENCE=false |
1.3 | |
IAP_VERIFY_AUDIENCE
|
When set to
When set to |
Optional | true | 1.8.1 |
BACKEND_CONNECT_TIMEOUT
|
Connection timeout for Google API requests, in seconds. |
Optional | 5 |
1.5 |
BACKEND_READ_TIMEOUT
|
Read timeout for Google API requests, in seconds. |
Optional | 20 |
1.5 |
BACKEND_WRITE_TIMEOUT
|
Write timeout for Google API requests, in seconds. |
Optional | 5 |
1.5 |