ory get permission-config output is incorrect
Preflight checklist
- [X] I could not find a solution in the existing issues, docs, nor discussions.
- [X] I agree to follow this project's Code of Conduct.
- [X] I have read and am following this repository's Contribution Guidelines.
- [X] I have joined the Ory Community Slack.
- [X] I am signed up to the Ory Security Patch Newsletter.
Ory Network Project
https://magical-brattain-zl5vpykbux.projects.oryapis.com
Describe the bug
❯ ory get permission-config --format json
{"limit":{},"namespaces":{"location":"https://storage.googleapis.com/bac-gcs-production/xxxxxxxxxx.bin"}}
❯ ory get permission-config --format yaml
limit: {}
namespaces:
location: https://storage.googleapis.com/bac-gcs-production/xxxxxxxxxx.bin
So... the output is correct format :D but the actual .bin file is always just the typescript file.
version info:
❯ ory version
Version: v0.2.2
Git Hash: 3ef9cd5f54d31fdc8da9ea3d9bfa1cfefb6f098d
Build Time: 2023-01-26T09:52:48Z
Reproducing the bug
- Download latest ory-cli release
- Auth in (having to go make a password for sso was interesting, might want to document it)
- ory use project
- ory get permission-config
Relevant log output
No response
Relevant configuration
No response
Version
0.2.2
On which operating system are you observing this issue?
Linux
In which environment are you deploying?
Ory Network
Additional Context
No response
Thank you for the report! Could you clarify what your expectation of the output is?
I would think that given the example of exporting to a file in the documentation that the output would be either yaml or json instead of a link to the file. Is that incorrect?
I see, so you would expect the contents of location to be a plan string with the contents of the URL instead of a linnk to the URL?
No, I would think it would be either a string representing the json or yaml?
$ ory get permission-config {project-id} --format yaml > permission-config.yaml makes it seem like standard yaml would be the output of that command.