victorious-eye-56567
04/11/2023, 12:04 PMsteep-lamp-91158
file:///your/path
file URIvictorious-eye-56567
04/11/2023, 4:27 PMvictorious-eye-56567
04/11/2023, 4:30 PMclass File implements Namespace {
related: {
parents: (File | Folder)[]
viewers: (User | SubjectSet<Group, "members">)[]
owners: (User | SubjectSet<Group, "members">)[]
}
// Some comment
permits = {
view: (ctx: Context): boolean =>
this.related.parents.traverse((p) => p.permits.view(ctx)) ||
this.related.viewers.includes(ctx.subject) ||
this.related.owners.includes(ctx.subject),
edit: (ctx: Context) => this.related.owners.includes(ctx.subject),
}
}
How can Keto know about it and use this ?steep-lamp-91158
extraVolumes
) and then reference it in the config under namespaces.location
steep-lamp-91158
namespaces.location
victorious-eye-56567
04/11/2023, 4:40 PMsteep-lamp-91158
victorious-eye-56567
04/11/2023, 4:42 PMsteep-lamp-91158
mammoth-hydrogen-54044
04/11/2023, 5:23 PMshy-beach-55709
05/31/2023, 4:47 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.