-
-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot create multiple namespaces using "file:///" source #669
Labels
stale
Feedback from one or more authors is required to proceed.
Comments
To specify multiple files, use an array of paths: namespaces:
- file:///path1
- file:///path2
- file:///path3 or alternatively, point the path to the directory that contains all namespace files: namespaces: file:///keto-namespaces |
The relevant code for that is here: keto/internal/driver/config/namespace_watcher.go Lines 60 to 69 in f53d3eb
|
@cvolante54 can you confirm this is working now? |
zepatrik
added
the
stale
Feedback from one or more authors is required to proceed.
label
Aug 3, 2021
@zepatrik Yes, using a directory path and multiple files worked! |
Awesome 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When using a file as the source to configure the namespaces, the interface is limited to only one file, and the file itself is limited to only allow for one namespace to be created (source code: https://github.com/ory/keto/blob/master/internal/driver/config/namespace_watcher.go#L152)
Reproducing the bug
Steps to reproduce the behavior:
Server logs
When an array of namespaces is passed into the file:
Server configuration
The only relevant section:
Expected behavior
I expect that multiple namespaces can be passed through a file namespaces source just like multiple namespaces can be defined in the configuration file itself.
Environment
The text was updated successfully, but these errors were encountered: