Skip to content
Snippets Groups Projects
Commit c534f88e authored by Dmitrii Novikov (EPAM)'s avatar Dmitrii Novikov (EPAM)
Browse files

Renamed legaltags-changed topic

parent b31f68fc
No related branches found
No related tags found
3 merge requests!438Draft: CG Vulnerability for Woodstox - CVE-2022-40151,!430Upgraded Version of spring-security-config due to Component Governance CVE-2023-34034,!369Renamed legaltags-changed topic
Pipeline #169517 passed with warnings
......@@ -229,7 +229,7 @@ curl -L -X PATCH 'https://dev.osdu.club/api/partition/v1/partitions/opendes' -H
At RabbitMq should be created exchange with name:
**name:** `legaltags_changed`
**name:** `legaltags-changed`
It can be overridden by:
......
......@@ -33,6 +33,15 @@ Usage of spring profiles is preferred.
| `OBMDRIVER` | `gcs` | Obm driver mode that defines which object storage will be used | no | - |
| `SERVICE_TOKEN_PROVIDER` | `GCP` or `OPENID` |Service account token provider, `GCP` means use Google service account `OPEIND` means use OpenId provider like `Keycloak` | no | - |
### Running Locally
Mandatory variables to run service, others are located into local spring profile default env configuration.
| name | value | description | sensitive? | source |
|----------------------------------|------------|---------------------------------------------------------------------------------|------------|-------------------------------------|
| `SPRING_PROFILES_ACTIVE` | `local` | Spring profile that activate default configuration for Google Cloud environment | false | - |
| `GOOGLE_APPLICATION_CREDENTIALS` | `********` | Google Cloud service account | yes | - |
## Datastore configuration
There must be a namespace for each tenant, which is the same as the tenant name.
......@@ -47,7 +56,7 @@ Kind `LegalTagOsm` will be created by service if it does not exist.
At Pubsub should be created topic with name:
**name:** `legaltags_changed`
**name:** `legaltags-changed`
It can be overridden by:
......
......@@ -25,6 +25,6 @@ import org.springframework.context.annotation.Configuration;
@Data
public class GcpAppServiceConfig {
private String pubSubLegalTagsTopic = "legaltags_changed";
private String pubSubLegalTagsTopic = "legaltags-changed";
private boolean enableFullBucketName;
}
LOG_LEVEL=DEBUG
service.token.provider=GCP
partition-auth-enabled=true
obmDriver=gcs
osmDriver=datastore
oqmDriver=pubsub
PARTITION_API=https://community.gcp.gnrg-osdu.projects.epam.com/api/partition/v1/
AUTHORIZE_API=https://community.gcp.gnrg-osdu.projects.epam.com/entitlements/v2
\ No newline at end of file
#server config
# Server config
server.port=8080
server.servlet.contextPath=/api/legal/v1/
#log config
# Log config
LOG_PREFIX=legal
logging.level.org.springframework.web=${LOG_LEVEL:INFO}
#jvm config
# JVM config
JAVA_HEAP_OPTS=-Xms4096M -Xmx4096M
JAVA_GC_OPTS=-XX:+UseG1GC -XX:+UseStringDeduplication -XX:InitiatingHeapOccupancyPercent=45
#legal service config
# Legal service config
ENABLE_FULL_BUCKET_NAME=true
enable-full-bucket-name=${ENABLE_FULL_BUCKET_NAME}
# OQM config
pub-sub-legal-tags-topic = "legaltags-changed"
# External services config
ENTITLEMENTS_HOST=http://entitlements
ENTITLEMENTS_PATH=/api/entitlements/v2
AUTHORIZE_API=${ENTITLEMENTS_HOST}${ENTITLEMENTS_PATH}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment