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

Implement adding secrets to vault from UI #49

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Kamilcuk
Copy link

@Kamilcuk Kamilcuk commented Dec 4, 2023

Try to implement #22 .

I needed/wanted to refactor a lot to have common code paths instead of separate. The frivolous usage of global namespace and pollution of symbols will bite in the long run. I added some comments, but the code is anyway a long way from mediocre.

I added "add" page for adding passwords from the ui. The fields is filled with the first matched pattern and secrets group to ease up filling. I use only a single secrets group.

This requires testing if it works correctly for all users, if errors are properly handled. Also needs to be tested with multiple secrets directory, I use only one. Thanks.

Kamil Cukrowski added 3 commits December 4, 2023 17:25
Move more function to common.js
Fix passing double // without subPath when making connection to vault
resulting in a lot of 301 redirections.
Add comments.
@mulbc
Copy link
Owner

mulbc commented Dec 5, 2023

Thanks for investing effort to refactor and improve the code. If possible, please split your work into one PR that refactors and then a second PR that adds functionality. That way it's much easier for me to review

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

Successfully merging this pull request may close these issues.

2 participants