Legal
The legal service can be run locally in editors with the following configuration.
Build and Run Configuration: SpringBoot
---------------------------------------
Java SDK: java zulu-17
Module: legal-azure
Class: org.opengroup.osdu.legal.azure.LegalApplication
VM Options: -javaagent:/<your_full_path>/osdu-developer/src/applicationinsights-agent.jar
Variable | Value | Description |
---|---|---|
KV_NAME | <your_keyvault_name> | Key Vault name |
AZURE_TENANT_ID | <your_tenant_id> | Azure tenant ID |
AZURE_CLIENT_ID | <your_client_id> | Azure client ID |
AZURE_CLIENT_SECRET | <your_client_secret> | Azure client secret |
APPINSIGHTS_KEY | <your_insights_key> | Application Insights key |
KEYVAULT_URI | "https://${KV_NAME}.vault.azure.net" | Key Vault URI |
AZURE_HOST | <your_host_ip> | Azure host IP |
SPRING_APPLICATION_NAME | legal | Spring application name |
AAD_CLIENT_ID | ${AZURE_CLIENT_ID} | Active Directory client ID |
REDIS_DATABASE | 2 | Redis database number |
SERVICEBUS_TOPIC_NAME | legaltags | Service Bus topic name |
COSMOSDB_DATABASE | osdu-db | Cosmos DB database name |
ENTITLEMENTS_SERVICE_API_KEY | OBSOLETE | Entitlements service API key |
LEGAL_SERVICE_REGION | us | Legal service region |
PARTITION_SERVICE_ENDPOINT | http://${AZURE_HOST}/api/partition/v1 | Partition service endpoint |
ENTITLEMENTS_SERVICE_ENDPOINT | http://${AZURE_HOST}/api/entitlements/v2 | Entitlements service endpoint |
AZURE_ISTIO_AUTH_ENABLED | true | Turn Istio auth on |
AZURE_PAAS_PODIDENTITY | false | Azure PaaS pod identity |
AZURE_PAAS_PODIDENTITY_ISENABLED | false | Azure PaaS pod identity enabled |
AZURE_ACTIVEDIRECTORY_APP_ID_URI | api://${AZURE_CLIENT_ID} | Active Directory app ID URI |
AZURE_ACTIVEDIRECTORY_SESSION_STATELESS | true | Enable stateless session for AD |
Testing
The legal service can be tested locally in IntelliJ with the following run configuration