You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I self-host keto on Kubernetes cluster.
After upgrading to keto version v0.10.0-alpha.0
and change my namespace config to point to the OPL config file
keto was not able to parse my config typescript file with the following error:
Failed to parse OPL config files at target file:///usr/data/configs/permissions.ts.
when I comment it out keto throws on other parsing issues (I suspect it is not a subset of typescript at all, keto fails on commas and other typescript syntax rules)
I also ran into this, had a look around and found it's been fixed in #1041
Until this is released, I've done the following to be able to carry on with userset-rewrites:
# Because I'm on a mac, I didn't have Make 4.3 in the path, but had it via `brew install make` (check `brew info make`)export PATH="/opt/homebrew/opt/make/libexec/gnubin:$PATH"# Check you have the correct make version
make -v
# Build oryd/keto:latest locally
make docker
Assuming you're using docker, you can change your docker-compose.yml to use image: oryd/keto:latest
I had other issues when I removed this line, the parser didn’t recognise ! Or ? Or ; characters. it also didn’t seems to understand the items defined in my related sections, are those also fixed with this update?
Thanks for the report! I added your example to the test cases and it now passes except for the line comment: (ctx: Context) => this.permits.read(ctx). Currently, you can only reference related attributes, not permits. But I agree that it is useful :).
If you have other examples of syntax that should be working, please keep them coming.
Preflight checklist
Describe the bug
I self-host keto on Kubernetes cluster.
After upgrading to keto version v0.10.0-alpha.0
and change my namespace config to point to the OPL config file
keto was not able to parse my config typescript file with the following error:
Reproducing the bug
Relevant log output
Relevant configuration
Version
v0.10.0-alpha.0
On which operating system are you observing this issue?
macOS
In which environment are you deploying?
Kubernetes with Helm
Additional Context
I also use Prettier to format my typescript files (it seems that keto doesn't know how to parse typescript file correctly)
The text was updated successfully, but these errors were encountered: