-
-
Notifications
You must be signed in to change notification settings - Fork 4
[cli] export org not working? #21
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
Comments
Hey, For a standard user the The Organization export (In the Admin console) in the web client is calling the same endpoint as the CLI, so the same restriction will apply.
Never used the CLI, but I'm guessing the
Is this the case for the web client too ? Which provider are you using ? |
And this is not what I see. I can export with Web Tools menu from normal users, BUT it seems only the items where the user has "Manage Collection" permission, if the user has only "Edit items" it is not exported. So this is at least what I see.
No this is only with the cli, the web ui is working OK as far as I can see. I am testing with local rauthy 0.28.1 currently. |
Oh I have to correct myself, it is failing for the web ui, too. The refresh token that oidcwarden is complaining about is beeing decoded OK with:
|
Update: For some reason oidcwarden has a problem with the refresh token. maybe it doesn't support EdDSA. UPDATE: Line 26 in 149d0c1
Line 102 in 149d0c1
There is also this hint, so I just disable it:
But maybe it would be better to handle the error instead of failing to login or support all algorithms? |
Thanks for the investigation :). I'll have to check it because there is something strange, the JWT with the Additionally, I do try to decode the |
Hey Sorry should have had a closer look earlier :(. As I expected the issue is not around the use of I don't think it's a good idea to try to change the Luckily the issue was raised and an env setting allow bypassing the issue: |
Oh great you identified it already, many thanks! No problem, I am fighting with so many stuff around the whole topic and other stuff at the same time that I did not find the time to check it myself, so I am more than happy that you found how to get it working. Will try it 👍 |
Seems to work! :)
|
Is anybody able to export an org vault with the cli?
With web ui with the same user (no admin) it is working at least partially, not the full org vault is exported, credentials in folders got not exported.
I would expect it to be the same.
So either I need to be admin or not.
src:
https://bitwarden.com/help/export-your-data/#tab-cli-2er90bORbbPnqOiFdfz6vW
Using the current one (Windows 11):
bw-windows-2025.2.0.zip
Login with cli is possible, but ONLY if I set "sso_auth_only_not_session" to TRUE.
If set to false I get:
message: 'Unable to refresh login credentials: Impossible to read refresh_token: Error decoding JWT'
Unlocking and listing orgs is also working fine.
But as soon as I try to export, the session seems to get invalidated.
Steps:
after this no more calls are possible, session is not valid anymore.
and the same error in oidcwarden trace:
Your environment (Generated via diagnostics page)
Config & Details (Generated via diagnostics page)
Show Config & Details
Config:
The text was updated successfully, but these errors were encountered: