Skip to content

Commit 5066da7

Browse files
committed
Merge branch 'main' into feat/limit-offset-svc
1 parent 534fdd8 commit 5066da7

File tree

118 files changed

+4297
-2931
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+4297
-2931
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
### Proposed Changes
2+
3+
*
4+
5+
### Checklist
6+
7+
- [ ] I have added or updated unit tests
8+
- [ ] I have added or updated integration tests (if appropriate)
9+
- [ ] I have added or updated documentation
10+
11+
### Testing Instructions
12+

.github/workflows/checks.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ jobs:
9090
integration:
9191
name: integration tests
9292
runs-on: ubuntu-22.04
93+
env:
94+
TLS_ENABLED: "true"
9395
steps:
9496
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
9597
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
@@ -105,9 +107,18 @@ jobs:
105107
run: ./.github/scripts/work-init.sh
106108
- run: go mod download
107109
- run: go mod verify
110+
- name: Install mkcert
111+
run: |
112+
sudo apt-get install -y libnss3-tools
113+
curl -JLO "https://dl.filippo.io/mkcert/latest?for=linux/amd64"
114+
chmod +x mkcert-v*-linux-amd64
115+
sudo cp mkcert-v*-linux-amd64 /usr/local/bin/mkcert
108116
- run: |
109117
.github/scripts/init-temp-keys.sh
118+
mkcert -install
119+
mkcert -cert-file ./keys/platform.crt -key-file ./keys/platform-key.pem localhost
110120
cp opentdf-dev.yaml opentdf.yaml
121+
yq eval '.server.tls.enabled = true' -i opentdf.yaml
111122
- name: Added Trusted Certs
112123
run: |
113124
sudo chmod -R 777 ./keys

.release-please-manifest.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"lib/fixtures": "0.2.7",
3-
"lib/ocrypto": "0.1.6",
4-
"lib/flattening": "0.1.1",
5-
"protocol/go": "0.2.20",
6-
"sdk": "0.3.17",
7-
"service": "0.4.26"
2+
"lib/fixtures": "0.2.9",
3+
"lib/ocrypto": "0.1.7",
4+
"lib/flattening": "0.1.2",
5+
"protocol/go": "0.2.22",
6+
"sdk": "0.3.21",
7+
"service": "0.4.29"
88
}

docker-compose.yaml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
- ./keys/localhost.key:/etc/x509/tls/localhost.key
99
- ./keys/ca.jks:/truststore/truststore.jks
1010
# This is kc 24.0.1 with opentdf protocol mapper on board
11-
image: cgr.dev/chainguard/keycloak@sha256:37895558d2e0e93ffff75da5900f9ae7e79ec6d1c390b18b2ecea6cee45ec26f
11+
image: keycloak/keycloak:25.0
1212
restart: always
1313
command:
1414
- "start-dev"
@@ -32,6 +32,7 @@ services:
3232
KC_HTTP_ENABLED: "true"
3333
KC_HTTP_PORT: "8888"
3434
KC_HTTPS_PORT: "8443"
35+
KC_HTTP_MANAGEMENT_PORT: "9001"
3536
KEYCLOAK_ADMIN: admin
3637
KEYCLOAK_ADMIN_PASSWORD: changeme
3738
#KC_HOSTNAME_URL: http://localhost:8888/auth
@@ -43,11 +44,29 @@ services:
4344
KC_HTTPS_CERTIFICATE_KEY_FILE: "/etc/x509/tls/localhost.key"
4445
KC_HTTPS_CLIENT_AUTH: "request"
4546
ports:
47+
- "9001:9001"
4648
- "8888:8888"
4749
- "8443:8443"
4850
healthcheck:
49-
test: ['CMD-SHELL', '[ -f /tmp/HealthCheck.java ] || echo "public class HealthCheck { public static void main(String[] args) throws java.lang.Throwable { System.exit(java.net.HttpURLConnection.HTTP_OK == ((java.net.HttpURLConnection)new java.net.URL(args[0]).openConnection()).getResponseCode() ? 0 : 1); } }" > /tmp/HealthCheck.java && java /tmp/HealthCheck.java http://localhost:8888/auth/health/live']
50-
interval: 5s
51+
test:
52+
- CMD-SHELL
53+
- |
54+
[ -f /tmp/HealthCheck.java ] || echo "public class HealthCheck {
55+
public static void main(String[] args) throws java.lang.Throwable {
56+
javax.net.ssl.HttpsURLConnection.setDefaultHostnameVerifier((hostname, session) -> true);
57+
javax.net.ssl.SSLContext sc = javax.net.ssl.SSLContext.getInstance(\"SSL\");
58+
sc.init(null, new javax.net.ssl.TrustManager[]{
59+
new javax.net.ssl.X509TrustManager() {
60+
public java.security.cert.X509Certificate[] getAcceptedIssuers() { return null; }
61+
public void checkClientTrusted(java.security.cert.X509Certificate[] certs, String authType) {}
62+
public void checkServerTrusted(java.security.cert.X509Certificate[] certs, String authType) {}
63+
}
64+
}, new java.security.SecureRandom());
65+
javax.net.ssl.HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
66+
java.net.HttpURLConnection conn = (java.net.HttpURLConnection)new java.net.URL(args[0]).openConnection();
67+
System.exit(java.net.HttpURLConnection.HTTP_OK == conn.getResponseCode() ? 0 : 1);
68+
}
69+
}" > /tmp/HealthCheck.java && java /tmp/HealthCheck.java https://localhost:9001/auth/health/live
5170
timeout: 10s
5271
retries: 3
5372
start_period: 2m

docs/configuration.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -274,19 +274,10 @@ server:
274274
map:
275275
standard: opentdf-standard
276276
admin: opentdf-admin
277-
org-admin: opentdf-org-admin
278277
279278
## Custom policy (see examples https://github.com/casbin/casbin/tree/master/examples)
280279
csv: |
281-
p, role:org-admin, policy:attributes, *, *, allow
282-
p, role:org-admin, policy:subject-mappings, *, *, allow
283-
p, role:org-admin, policy:resource-mappings, *, *, allow
284-
p, role:org-admin, policy:kas-registry, *, *, allow
285-
p, role:org-admin, policy:unsafe, *, *, allow
286-
p, role:admin, policy:attributes, read, allow
287-
p, role:admin, policy:subject-mappings, read, allow
288-
p, role:admin, policy:resource-mappings, read, allow
289-
p, role:admin, policy:kas-registry, read, allow
280+
p, role:admin, *, *, allow
290281
p, role:standard, policy:attributes, read, allow
291282
p, role:standard, policy:subject-mappings, read, allow
292283
p, role:standard, policy:resource-mappings, read, allow

docs/grpc/index.html

Lines changed: 217 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)