2ff6e05ffc
Permit integration - part 1 * WIP permit integration * slim down build * Merge branch 'main' of bitbucket.org:aarete/query-orchestration into feature/permit-integration-1 * omit swagger from auth * clean build * comment * part 1 completed this is the initial permitio parts and tests without integration. Also testing.md since we have a new test target `task test:permitio` * feature flag for no jwt validation * permit integration * fix ci unit tests * ci fix * build fix * fix home handler * fix redirect * test fix * update docs for auth
15 lines
375 B
Bash
Executable File
15 lines
375 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
echo "Waiting for OPA to be ready..."
|
|
until curl -f http://localhost:8181/v1/data > /dev/null 2>&1; do
|
|
echo "OPA not ready yet, waiting..."
|
|
sleep 2
|
|
done
|
|
|
|
echo "Loading policy data into OPA..."
|
|
curl -X PUT http://localhost:8181/v1/data/static \
|
|
-H "Content-Type: application/json" \
|
|
-d @policy-data.json
|
|
|
|
echo "Policy data loaded successfully!" |