Docker Configuration
Docker supports MongoDB and PostgreSQL database. Following are the Docker configurations:
| PROPERTY | DEFAULT VALUE | DESCRIPTION |
|---|---|---|
| MongoDB Database Configuration | ||
| DATABASE_KEY | mongodb | Name of the database key. |
| MONGODB_DBNAME | ms_savingspot | Name of the database. |
| MONGODB_CONNECTIONSTR | mongodb://ms-savingspot-mongo-node1:27017,ms-savingspot-mongo-node2:27017,ms-savingspot-mongo-node3:27017 | URL to connect to the MongoDB instance. |
| PostgreSQLDatabase Configuration | ||
| DATABASE_KEY | postgresql | Name of the database key. |
| POSTGRESQL_CONNECTIONURL | jdbc:postgresql://sppostgresdb:5432/ms_savingspot | URL to connect to the PostgreSQL instance. |
| POSTGRESQL_USERNAME | savingspotroot | Username |
| POSTGRESQL_PASSWORD | savingspotroot | Password |
| POSTGRES_DB | ms_savingspot | Name of the database. |
| Inbox-Outbox Configuration | ||
| tem.msf.disableInbox | true | Enable or disable inbox outbox. |
| PDP Configuration | ||
| temn.msf.security.authz.enabled | false |
Enable or Disable the XACML policy authorization. XACML policy authorization is used to configure security policies and access rights to information for APIs. |
| PDP_CONFIG | classpath:xacml/pdp-config.xml |
Mapping the PDP-callback configuration file available in the classpath. XAML Config file path needs to be set in the property |
| temn.msf.pdp.resource.type | API |
The value that is set in the XAML config file needs to be provided. Resource type is used to identify the policy set in the XAML config. |
| temn.msf.pdp.resource.manager | SAVINGSPOT |
The value that is set in the XAML config file needs to be provided. Resource Manager is used to identify the policy set in the XAML config. |
| Entitlement Configuration | ||
| temn.entitlement.service.enabled | false |
Enable or Disable the entitlement service. If the property is enabled, the roles and permissions needed for the authentication are taken from the Entitlement Microservice. |
| Logger Configuration | ||
| temn.msf.logger.root_level | ERROR | |
| Tracer Configuration | ||
| temn.msf.service.name | spApi |
Please Refer : Tracing |
| temn.msf.tracer.enabled | false | |
| temn.tracer.host | jaeger | |
| temn.tracer.port | 14268 | |
| JWT configuration | ||
| ms.security.tokencheck.enabled | Y |
Enable or Disable the JWT validation. By default, JWT token check is enabled. JWT validation is used to validate the custom and mandatory claims from the provided token. |
| JWT_TOKEN_PRINCIPAL_CLAIM | sub | Indicates the claim in which the user principal is provided. |
| JWT_TOKEN_ISSUER | Fabric | Identifies the issuer of the authentication token. |
| ID_TOKEN_SIGNED | true | Signed token used for fabric |
| JWT_TOKEN_PUBLIC_KEY | <JWT_PUBLIC_TOKEN_VALUE> | Indicates Base64 encoded public key content that can be directly loaded as a public key certificate. |
| temn.meter.disabled | true | |
In this topic