Skip to content

Commit

Permalink
Update sidecar deployment topaz config to add model and console servi…
Browse files Browse the repository at this point in the history
…ce (#357)
  • Loading branch information
carabasdaniel committed Mar 27, 2024
1 parent f9b99c5 commit 8dd2bb4
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 3 deletions.
5 changes: 3 additions & 2 deletions docs/deployments/sidecar-deployment/deployment.yaml
Expand Up @@ -17,8 +17,8 @@ spec:
# using an init container to download the topaz edge directory db file that contains our required user informations
initContainers:
- name: get-eds-citadel
image: busybox:1.28
command: ["/bin/sh","-c","cd /db/;wget https://github.com/aserto-dev/topaz/raw/main/pkg/testing/assets/eds-citadel.db;"]
image: busybox:1.36
command: ["/bin/sh","-c","cd /db/;wget --no-check-certificate https://github.com/aserto-dev/topaz/raw/main/pkg/testing/assets/eds-citadel.db;"]
volumeMounts:
- name: topaz-db
mountPath: "/db/"
Expand All @@ -31,6 +31,7 @@ spec:
ports:
- containerPort: 8282
- containerPort: 9292
- containerPort: 8080
volumeMounts:
- name: topaz-config
mountPath: "/config/config.yaml"
Expand Down
55 changes: 54 additions & 1 deletion docs/deployments/sidecar-deployment/topaz-configmap.yaml
Expand Up @@ -12,7 +12,7 @@ data:
log_level: info
directory:
db_path: /db/directory.db
db_path: /db/eds-citadel.db
# remote directory is used to resolve the identity for the authorizer.
remote_directory:
Expand All @@ -27,6 +27,59 @@ data:
health:
listen_address: "0.0.0.0:9494"
services:
console:
grpc:
listen_address: "0.0.0.0:8081"
# if certs are not specified default certs will be generate with the format reader_grpc.*
certs:
tls_key_path: "/root/.config/topaz/certs/grpc.key"
tls_cert_path: "/root/.config/topaz/certs/grpc.crt"
tls_ca_cert_path: "/root/.config/topaz/certs/grpc-ca.crt"
gateway:
listen_address: "0.0.0.0:8080"
# if not specified, the allowed_origins includes localhost by default
allowed_origins:
- http://localhost
- http://localhost:*
- https://localhost
- https://localhost:*
- https://0.0.0.0:*
- https://*.aserto.com
- https://*aserto-console.netlify.app
# if no certs are specified, the gateway will have the http flag enabled (http: true)
certs:
tls_key_path: "/root/.config/topaz/certs/gateway.key"
tls_cert_path: "/root/.config/topaz/certs/gateway.crt"
tls_ca_cert_path: "/root/.config/topaz/certs/gateway-ca.crt"
model:
grpc:
listen_address: "0.0.0.0:9292"
# if certs are not specified default certs will be generate with the format reader_grpc.*
certs:
tls_key_path: "/root/.config/topaz/certs/grpc.key"
tls_cert_path: "/root/.config/topaz/certs/grpc.crt"
tls_ca_cert_path: "/root/.config/topaz/certs/grpc-ca.crt"
gateway:
listen_address: "0.0.0.0:9393"
# if not specified, the allowed_origins includes localhost by default
allowed_origins:
- http://localhost
- http://localhost:*
- https://localhost
- https://localhost:*
- https://*.aserto.com
- https://*aserto-console.netlify.app
# if no certs are specified, the gateway will have the http flag enabled (http: true)
certs:
tls_key_path: "/root/.config/topaz/certs/gateway.key"
tls_cert_path: "/root/.config/topaz/certs/gateway.crt"
tls_ca_cert_path: "/root/.config/topaz/certs/gateway-ca.crt"
http: false
read_timeout: 2s # default 2 seconds
read_header_timeout: 2s
write_timeout: 2s
idle_timeout: 30s # default 30 seconds
reader:
grpc:
listen_address: "0.0.0.0:9292"
Expand Down

0 comments on commit 8dd2bb4

Please sign in to comment.