Skip to content

Schema

The schema service can be run locally in editors with the following configuration.

Build and Run Configuration: SpringBoot
---------------------------------------
Java SDK:  java zulu-17
Module: os-schema-azure
Class: org.opengroup.osdu.schema.azure.SchemaApplication
VM Options: -javaagent:/<your_full_path>/osdu-developer/src/applicationinsights-agent.jar
Variable Value Description
KV_NAME <your_keyvault_name> Key Vault name
STORAGE_ACCOUNT <your_storage_account> Storage account 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
PARTITION_SERVICE_ENDPOINT http://${AZURE_HOST}/api/partition/v1 Partition service endpoint
ENTITLEMENTS_SERVICE_ENDPOINT http://${AZURE_HOST}/api/entitlements/v2 Entitlements service endpoint
AAD_CLIENT_ID ${AZURE_CLIENT_ID} Active Directory client ID
SPRING_APPLICATION_NAME schema Spring application name
LOG_PREFIX schema Log prefix
AZURE_STORAGE_ENABLE_HTTPS true Enable HTTPS for Azure storage
COSMOSDB_DATABASE osdu-db Cosmos DB database name
ENTITLEMENTS_SERVICE_API_KEY OBSOLETE Entitlements service API key
SERVER_PORT 8080 Server port
EVENT_GRID_ENABLED false Enable Event Grid
EVENT_GRID_TOPIC schemachangedtopic Event Grid topic
SERVICE_BUS_ENABLED true Enable Service Bus
SERVICEBUS_TOPIC_NAME schemachangedtopic Service Bus topic name
AZURE_PAAS_PODIDENTITY false Azure PaaS pod identity
AZURE_ISTIOAUTH_ENABLED true Turn Istio auth on
AZURE_PAAS_PODIDENTITY_ISENABLED false Azure PaaS pod identity enabled