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

SDK Secrets.list() requires a organizationId while bws secrets list doesn't #944

Open
1 task done
Araxeus opened this issue Aug 7, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@Araxeus
Copy link

Araxeus commented Aug 7, 2024

Steps To Reproduce

cli run bws secrets list -> get secrets
sdk run Secrets.list() -> need organizationId

https://github.com/bitwarden/sdk/blob/b8a024f837a65338e9b6a1f0103a0dfe4ba85632/crates/bitwarden-json/src/command.rs#L112

https://github.com/bitwarden/sdk/blob/b8a024f837a65338e9b6a1f0103a0dfe4ba85632/crates/bitwarden-sm/src/secrets/list.rs#L15-L18

bws gets the org_id from the token, why cant the sdk do the same?

https://github.com/bitwarden/sdk/blob/b8a024f837a65338e9b6a1f0103a0dfe4ba85632/crates/bws/src/main.rs#L103-L109

Issue Tracking Info

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
@Araxeus Araxeus added the bug Something isn't working label Aug 7, 2024
@Araxeus Araxeus changed the title SDK Secrets.list() requires a project/org id while bws secrets list doesn't SDK Secrets.list() requires a organizationId while bws secrets list doesn't Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant