-
Notifications
You must be signed in to change notification settings - Fork 75
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
Unable to load Bitwarden Credentials in Dynamic Folder #107
Comments
Can you post a screenshot of the error message and the dynamic folder configuration (with sensitive data redacted)? Also, does it actually populate the dynamic folder? |
Hi StefanKoell, I have come one step further. I still get the error message about the token, but the credentials are loaded into the dynamic folder. However, it only works if I specify a fixed folder in line 190 of the script. As soon as the script is supposed to load several folders, it continues to run endlessly. foreach ($folder in $tmpFolders**[0]**) { Translated with DeepL.com (free version) |
I'm still not sure what the error message is or how it is presented. For scripts where tokens are replaced you may always get warnings that tokens cannot be resolved because the parser may try to identify tokens based on some $ variables in the script. These warnings can/should just be ignored. Regarding the other isue, I'm not sure how I can help because I'm not really familiar with the bitwarden API. Maybe someone else who has experience with bitwarden's API can help here. |
Thanks for the screenshot. The warning can be ignored and is actually expected for scripting languages which also use $ chars extensively. It will not really affect the token resolution. I find it odd, that even in the ISE you get inconsistent results. Not sure what's going on. Maybe the bitwarden backend can give some insights. |
Thank you for the info, I will ignore these error-message. I try to find something in the bitwarden backend, nothing found yet. |
Maybe Bitwarden support can help? Could also be an isolated issue with the specific instance/installation. |
Same Problem here - I try to use different bw.exe Versions but with no luck |
Hi all, I did not had a lot of time recently to work on this until recently. I also was blocked with an issue in the latest version of the BitWarden CLI tool (bw.exe) that seems to not work anymore with API key (complains about bad master password even if correct when unlocking the vault) 😒 Anyway, I've recently reworked the whole script to make a better use of the navigation's treeview instead of having folders and subfolders at the same level. Unfortunately right now the script is working but not ready for daily use as it now make calls to the vault for each folders/collections and it take way too long as it's not a real REST API under the hood! For example in my setup, with 540+ credentials/notes splitted between 1 personal vault, 2 organizations and 3 collections, it took a little bit more than 3 minutes to load 😣 As I also had to work on this at my day job, I'll try to use the embedded API endpoint of the CLI tool I'll keep you informed as soon as I have a working version 🤞 |
Hi all ! I've pushed an update to the template on my fork of the repo. Can you test if it works for you before I open a PR ? Please note the following known issues:
On instances with small amount of objects it can works pretty well but can struggle with large organizations. Based on criterias (with or without wildcards), instead of loading everything, I may be able to limit a bit. Adding filtering on the items name can also be an option ... 🤔 Let me know what you think! Best Regards, |
Hi Nicolas, I've been testing your code for a couple of days, and it's working flawlessly 👍 And it's really fast, way faster than code from royalapplications toolbox 🙏 Where can I find filtering options you've mentioned in your post? Many thanks and have a nice day, |
Hi Nicolas, as a part of testing of your fork I changed my Bitwarden KDF algorithm, rotated API Key and set accordingly custom properties of Dynamic Folder. But I was getting errors that Bitwarden Key or payload has changed (Lock the user to clear the key at crypto_service_CryptoService) when opening my Royal TS file. After a little bit of experimenting, I've found out deleting file Also, I'm still curious, where can I find filtering options you've mentioned in your post? Thanks for your response and have a nice day, |
@GrinGrin thank you for your fork! I just transformed the current powershell script from the legacy I also transformed your version The transform PR of the current file can be found here: #116 |
Hi all,
today I try to connect RoyalTS to Bitwarden via dynamic folder.
I created a dynamic folder with the powershell-script and inserted the values of my self-hosted Bitwarden-Server.
After clicking on "Reload" in RoyalTS, I get the error message "At least one token couldn't be resolved" and following in the details:
global:OutputEncoding\r\n
CustomProperty.BitWardenCLIExecutable
CustomProperty.BitWardenServerURL
CustomProperty.APIClientID
CustomProperty.APIClientSecret
CustomProperty.AccountPassword
(
(
(
Any idea what I'm doing wrong?
The text was updated successfully, but these errors were encountered: