Platform gateway
Platform gateway is the service that handles authentication and authorization for Ansible Automation Platform. It provides a single ingress into the Platform and serves the Platform’s user interface.
About this task Copy linkLink copied!
From the menu, you can configure Platform gateway, Security, Session, Platform Security, Custom Login, and Other settings.
Procedure Copy linkLink copied!
Configure platform security Copy linkLink copied!
From the Platform gateway settings page, you can configure platform security settings.
Procedure Copy linkLink copied!
Configure platform sessions Copy linkLink copied!
From the Platform gateway settings page, you can configure platform session settings.
Procedure Copy linkLink copied!
- From the navigation panel, select .
- The Platform gateway settings page is displayed.
- To configure the options, click .
- Enter the time in seconds before a session expires in the Session cookie age field.
- Click to save the changes or proceed to configure the other platform options available.
Configure a platform password security policy Copy linkLink copied!
From the Platform gateway settings page, you can configure a password security policy.
Procedure Copy linkLink copied!
Encrypt the platform gateway database password Copy linkLink copied!
System administrators can encrypt the database password used by platform gateway and apply it directly to the configuration file, resolving issues related to the SECRET_KEY loading order.
About this task Copy linkLink copied!
Platform gateway uses the Django framework, which requires the SECRET_KEY to be fully loaded into memory before the decryption function (ansible_encryption.decrypt_string()) is called. If the decryption call runs before the key is loaded, the process fails, preventing platform gateway from accessing the database.
Procedure Copy linkLink copied!
Results Copy linkLink copied!
Confirm that platform gateway starts without errors and that you can access the platform UI, which indicates a successful database connection.
Configure additional platform options Copy linkLink copied!
Configure extra settings in platform gateway, such as the JWT expiration buffer. Adjusting these options helps ensure continuous token validity and smooth communication between platform services.
Procedure Copy linkLink copied!
Overlapping administrative settings Copy linkLink copied!
Manually synchronize duplicate operational and administrative settings between platform gateway and component services like automation controller. This helps ensure your workflows and scripts can interact directly with the component API without issues.
Effective settings table
The following table clarifies the authoritative source for administrative settings that you can configure in both automation controller and platform gateway.
| Setting name (UI text) | API variable name | Platform gateway configuration location | Automation controller configuration location | Synchronization requirement and notes |
|---|---|---|---|---|
| Organization Admins Can Manage Users and Teams |
|
Settings > Platform gateway |
Settings > Automation Execution > System |
Keep a consistent value across both systems. The automation controller setting might be used by direct API workflows. |
| All Users Visible to Organization Admins |
|
Settings > Platform gateway |
Settings > Automation Execution > System |
Keep a consistent value across both systems. Automation controller does not follow gateway settings for this variable; direct API workflows use the controller’s local value. |
| Allow External Users to Create OAuth2 Tokens |
|
Settings > Platform gateway |
N/A |
Platform gateway is authoritative. Configure this setting in the unified UI or through the gateway API. |