Skip to content
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

ory get permission-config output is incorrect #321

Open
5 tasks done
rparsonsbb opened this issue Oct 13, 2023 · 4 comments
Open
5 tasks done

ory get permission-config output is incorrect #321

rparsonsbb opened this issue Oct 13, 2023 · 4 comments
Labels
bug Something is not working.

Comments

@rparsonsbb
Copy link

rparsonsbb commented Oct 13, 2023

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 rparsonsbb added the bug Something is not working. label Oct 13, 2023
@aeneasr
Copy link
Member

aeneasr commented Oct 13, 2023

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

@rparsonsbb
Copy link
Author

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?

@aeneasr
Copy link
Member

aeneasr commented Oct 13, 2023

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?

@rparsonsbb
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

No branches or pull requests

2 participants