average-policeman-69189
12/08/2022, 6:08 PMketo │ [keto-automigrate] time=2022-12-08T18:02:02Z level=error msg=Failed to parse OPL config files at target file:///etc/config/namespaces.keto.ts. audience=application error=map[message:error from 1:48 to 1:48: fatal: at "@ory/keto-namespace-types\"\n\nclass User implements Namespace {\n related: {\n manager: User[]\n }\n}\n\nclass Group implements Namespace {\n related: {\n members: (User | Group)[]\n }\n}\n\nclass Folder implements Namespace {\n related: {\n parents: (File | Folder)[]\n viewers: SubjectSet<Group, \"members\">[]\n }\n\n permits = {\n view: (ctx: Context): boolean =>\n this.related.viewers.includes(ctx.subject) ||\n this.related.parents.traverse((p) => p.permits.view(ctx)),\n }\n}\n\nclass File implements Namespace {\n related: {\n parents: (File | Folder)[]\n viewers: (User | SubjectSet<Group, \"members\">)[]\n owners: (User | SubjectSet<Group, \"members\">)[]\n }\n\n // Some comment\n permits = {\n view: (ctx: Context): boolean =>\n this.related.parents.traverse((p) => p.permits.view(ctx)) ||\n this.related.viewers.includes(ctx.subject) ||\n this.related.owners.includes(ctx.subject),\n\n edit: (ctx: Context) => this.related.owners.includes(ctx.subject),\n }\n}\n": unclosed string literal
keto │ [keto-automigrate]
keto │ [keto-automigrate] 0 | import { Namespace, SubjectSet, Context } from "@ory/keto-namespace-types"
keto │ [keto-automigrate] ^
keto │ [keto-automigrate] 0 |
keto │ [keto-automigrate]
keto │ [keto-automigrate] stack_trace:stack trace could not be recovered from error type *schema.ParseError] service_name=Ory Keto service_version=v0.10.0-alpha.0
the TS file comes from https://www.ory.sh/docs/keto/guides/userset-rewrites ... any idea why ?thousands-ability-12904
12/09/2022, 10:01 AM// import { Namespace, SubjectSet, Context } from "@ory/keto-namespace-types"
steep-lamp-91158
steep-lamp-91158
steep-lamp-91158
average-policeman-69189
12/15/2022, 11:12 PMOry is the largest open source community in the world for cloud software application security. We maintain advanced open source security software solving authentication, authorization, access control, application network security, and delegation. Ory implements a variety of industry and best-practice standards including OAuth 2.0 / OAuth 2.1, OpenID Connect, Zero Trust Networking, Google Zanzibar Policy Framework, FIDO2 U2F, WebAuthn, TOTP, and more.
Powered by