cli icon indicating copy to clipboard operation
cli copied to clipboard

ory get permission-config output is incorrect

Open rparsonsbb opened this issue 2 years ago • 4 comments

Preflight checklist

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

  1. Download latest ory-cli release
  2. Auth in (having to go make a password for sso was interesting, might want to document it)
  3. ory use project
  4. 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

rparsonsbb avatar Oct 13 '23 06:10 rparsonsbb

Thank you for the report! Could you clarify what your expectation of the output is?

aeneasr avatar Oct 13 '23 07:10 aeneasr

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?

rparsonsbb avatar Oct 13 '23 07:10 rparsonsbb

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?

aeneasr avatar Oct 13 '23 08:10 aeneasr

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.

rparsonsbb avatar Oct 16 '23 17:10 rparsonsbb