A Coarse-grained Data Catalog
A play framework based CRUD service that helps keeping track of dataset's current and historical location, and their lineage.
Checkout acdc-ws/app/routers/ApiRouter.scala
for supported routes.
Checkout play documentation on how to deploy the service.
To setup the database run com.salesforce.mce.acdc.tool.ProvisionDatabase
.
export POSTGRES_PASSWORD=<my db password>
sbt 'project core; run ProvisionDatabase'
If config acdc.auth.enabled = true
is enabled, authorization api-keys are SHA-256 hashed. The REST enb-points should include a http header key x-api-key
with appropriate value.
Set an environment variable for the authorized x-api-key hashed string. Example:
export MCE_ENV_X_API_ADMIN1=f6e42a3c0dffee079face0da061ee2c9a871eebe098ac481248e34cfe023955b
export MCE_ENV_X_API_ADMIN2=70ad8c1543728a3e61bbec26d1df5bd742d1c2f464f2ac54a2fec5e709eba890
For keys rotation, 2 keys can cycle through still older copies of hashed strings.
sbt ws/run