echoing-postman-28418
05/04/2023, 7:20 AMversion: v0.11.1
dsn: memory
namespaces:
location: file:///home/ory/namespaces.keto.ts
log:
level: debug
format: json
leak_sensitive_values: true
serve:
read:
host: 0.0.0.0
port: 4466
write:
host: 0.0.0.0
port: 4467
I am making a post request to this endpoint : localhost:4466/opl/syntax/check
#ketovictorious-eye-56567
05/04/2023, 5:31 PMechoing-postman-28418
05/05/2023, 10:29 AMvictorious-eye-56567
05/05/2023, 11:22 AM// import { Namespace, SubjectSet, Context } from "@ory/permission-namespace-types"
You should check the keto logs to see if you can get additionnal info on what's happening.
Note that when removing the import, my app code which used the OPL file for its interfaces would not compile (because of the missing references).
I had to add // @ts-nocheck
at the top of the file.echoing-postman-28418
05/05/2023, 12:14 PMshy-beach-55709
05/31/2023, 4:29 PMdestination for keto.keto.config.namespaces is a table. Ignoring non-table value ([map[id:0 name:sample]])
I'm deploying keto with helm using this chart: https://artifacthub.io/packages/helm/ory/keto/0.28.2
My values regarding this are as follow:
config:
dsn: memory
serve:
read:
port: 4466
write:
port: 4467
metrics:
port: 4468
namespaces:
location: file:///etc/namespaces/namespaces.keto.ts
The file inside /etc/namespaces/namespaces.keto.ts is loaded via volumes/configmap:
extraVolumes:
- name: olp-file
configMap:
name: keto-olp
extraVolumeMounts:
- name: olp-file
mountPath: /etc/namespaces
If i get into the pod, the file is correctly created. The ts file used is the one provided as example in the ory website.victorious-eye-56567
05/31/2023, 4:50 PMlocationS
.
It should be like this:
namespaces:
location: ...
EDIT: My bad I can't read properlyvictorious-eye-56567
05/31/2023, 4:51 PMshy-beach-55709
05/31/2023, 4:51 PMvictorious-eye-56567
05/31/2023, 4:55 PMapiVersion: v1
kind: ConfigMap
metadata:
name: keto-config-namespaces
namespace: {{ .Release.Namespace }}
annotations:
<http://helm.sh/hook-weight|helm.sh/hook-weight>: "0"
<http://helm.sh/hook|helm.sh/hook>: "pre-install, pre-upgrade"
data:
namespaces.keto.ts: |-
{{ .Files.Get "namespaces.keto.ts" | indent 4}}
values.yaml:
deployment:
extraVolumes:
- name: keto-config-namespaces-volume
configMap:
name: keto-config-namespaces
extraVolumeMounts:
- name: keto-config-namespaces-volume
mountPath: /etc/config-namespaces
readOnly: true
keto:
...
config:
...
namespaces:
location: file:///etc/config-namespaces/namespaces.keto.ts
I hope that helpsshy-beach-55709
05/31/2023, 5:09 PMshy-beach-55709
05/31/2023, 5:18 PMvictorious-eye-56567
05/31/2023, 5:23 PM