File tree Expand file tree Collapse file tree 3 files changed +63
-2
lines changed Expand file tree Collapse file tree 3 files changed +63
-2
lines changed Original file line number Diff line number Diff line change @@ -2,5 +2,5 @@ OPENTDF_PLATFORM_HOST="localhost"
22OPENTDF_PLATFORM_PORT=8080
33OPENTDF_PLATFORM_URL="http://localhost:8080"
44
5- KEYCLOAK_URL="https ://localhost:8443 /auth"
6- OIDC_OP_TOKEN_ENDPOINT="https ://localhost:8443 /auth/realms/opentdf/protocol/openid-connect/token"
5+ KEYCLOAK_URL="http ://localhost:8888 /auth"
6+ OIDC_OP_TOKEN_ENDPOINT="http ://localhost:8888 /auth/realms/opentdf/protocol/openid-connect/token"
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -euo pipefail
4+
5+ if ! [ -d platform ]; then
6+ # Sparse clone opentdf/platform
7+ git clone https://github.com/opentdf/platform.git
8+ fi
9+ cd platform
10+ git checkout DSPX-1539-keytoolnomore
11+
12+ yq -i ' .realms[0].clients[0].client.directAccessGrantsEnabled = true | .realms[0].clients[0].client.serviceAccountsEnabled = true' service/cmd/keycloak_data.yaml
13+
14+ yq -i ' .realms[0].clients[1].client.directAccessGrantsEnabled = true | .realms[0].clients[0].client.serviceAccountsEnabled = true' service/cmd/keycloak_data.yaml
15+
16+ yq -i ' .realms[0].clients[4].client.directAccessGrantsEnabled = true | .realms[0].clients[0].client.serviceAccountsEnabled = true' service/cmd/keycloak_data.yaml
17+
18+
19+ if ! [ -d ./keys ]; then
20+ go mod download
21+
22+ go mod verify
23+
24+ .github/scripts/init-temp-keys.sh
25+ cp opentdf-example.yaml opentdf.yaml
26+
27+ # Edit 'opentdf.yaml' for our use case
28+ yq -i ' del(.db)' opentdf.yaml
29+ yq -i ' .services.entityresolution.url = "http://localhost:8888/auth"' opentdf.yaml
30+ yq -i ' .server.auth.issuer = "http://localhost:8888/auth/realms/opentdf"' opentdf.yaml
31+ yq -i '
32+ .server.cryptoProvider = {
33+ "type": "standard",
34+ "standard": {
35+ "keys": [
36+ {
37+ "kid": "r1",
38+ "alg": "rsa:2048",
39+ "private": "kas-private.pem",
40+ "cert": "kas-cert.pem"
41+ },
42+ {
43+ "kid": "e1",
44+ "alg": "ec:secp256r1",
45+ "private": "kas-ec-private.pem",
46+ "cert": "kas-ec-cert.pem"
47+ }
48+ ]
49+ }
50+ }
51+ ' opentdf.yaml
52+ chmod -R 777 ./keys
53+ fi
54+
55+ docker compose up -d --wait --wait-timeout 360
56+
57+ go run ./service provision keycloak
58+
59+ go run ./service provision fixtures
Original file line number Diff line number Diff line change 11# Created by https://www.toptal.com/developers/gitignore/api/python
22# Edit at https://www.toptal.com/developers/gitignore?templates=python
33
4+ platform /
5+
46# ## Python ###
57# Byte-compiled / optimized / DLL files
68__pycache__ /
You can’t perform that action at this time.
0 commit comments