Oracle Datasource Reference¶
The shared-services stack publishes the connection datasource for each on-premise Oracle database to the shared saifcorp Azure App Configuration store, with one value per environment.
Key shape¶
| Part | Value |
|---|---|
| Key | services:it-db_oracle:datasource:{name} |
| Label | Environment, lowercase: test, qa, uat, prod |
| Value | host:port/service_name (EZConnect form, no credentials) |
The source of truth is infra/shared-services/oracle_db.yml.
locals.tf decodes it into Oracle_Datasources, and appconfiguration.tf flattens it into one
azurerm_app_configuration_key per {environment, name} (app_configuration_key_oracle).
Keys and labels are lowercased on write.
Datasources¶
| Name | test | qa | uat | prod |
|---|---|---|---|---|
ent |
ORADEV08.CORP.SAIF.COM:1521/ENTTST1.CORP.SAIF.COM |
ORANP13ENT.CORP.SAIF.COM:1521/ENTNP13.CORP.SAIF.COM |
ORANPUATENT.CORP.SAIF.COM:1521/ENTNPUAT.CORP.SAIF.COM |
ORAPRD01.CORP.SAIF.COM:1521/WCISPROD.CORP.SAIF.COM |
pol |
ORADEV08.CORP.SAIF.COM:1521/POLTST1.CORP.SAIF.COM |
ORANP13ENT.CORP.SAIF.COM:1521/POLNP13.CORP.SAIF.COM |
ORANPUATENT.CORP.SAIF.COM:1521/POLNPUAT.CORP.SAIF.COM |
ORAPRD01.CORP.SAIF.COM:1521/POLPROD.CORP.SAIF.COM |
Sentinel key¶
| Part | Value |
|---|---|
| Key | services:it-db_oracle:sentinel |
| Label | None |
| Value | SHA-256 of the Oracle datasource keys (key, label, value, etag) |
The value is derived from the datasource key resources, so it changes whenever any of them changes and is always written after them in the same apply. Applications that watch this key with an App Configuration refresh sentinel reload the Oracle datasource values after an apply that changes them. An apply that changes no datasource keys leaves the sentinel unchanged.
Adding or changing a datasource¶
- Edit
infra/shared-services/oracle_db.yml. Each environment is a list ofnameanddatasourceentries. - Use the same
namein every environment so consumers can resolve one key across labels. - Apply the shared-services stack. Terraform creates, updates, or removes the matching keys and bumps the sentinel.
The for_each key includes the datasource value, so changing a datasource replaces the
App Configuration key instead of updating it in place.