-
Notifications
You must be signed in to change notification settings - Fork 48
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
[SM-1371] Expose a new generate_secret function #986
Conversation
No New Or Fixed Issues Found |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #986 +/- ##
==========================================
- Coverage 57.98% 57.96% -0.02%
==========================================
Files 197 197
Lines 13647 13651 +4
==========================================
Hits 7913 7913
- Misses 5734 5738 +4 โ View full report in Codecov by Sentry. |
## ๐๏ธ Tracking https://bitwarden.atlassian.net/browse/SM-1371 ## ๐ Objective Add a `GenerateSecret` function to the Go SDK. **Note** this depends on the #986 PR, which should be merged first. This PR is parallel to this: #937. One will be merged and the other closed based on the decided approach. ## โฐ Reminders before review - Contributor guidelines followed - All formatters and local linters executed and passed - Written new unit and / or integration tests where applicable - Protected functional changes with optionality (feature flags) - Used internationalization (i18n) for all UI strings - CI builds passed - Communicated to DevOps any deployment requirements - Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team ## ๐ฆฎ Reviewer guidelines <!-- Suggested interactions but feel free to use (or not) as you desire! --> - ๐ (`:+1:`) or similar for great changes - ๐ (`:memo:`) or โน๏ธ (`:information_source:`) for notes or general info - โ (`:question:`) for questions - ๐ค (`:thinking:`) or ๐ญ (`:thought_balloon:`) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion - ๐จ (`:art:`) for suggestions / improvements - โ (`:x:`) orโ ๏ธ (`:warning:`) for more significant problems or concerns needing attention - ๐ฑ (`:seedling:`) or โป๏ธ (`:recycle:`) for future improvements or indications of technical debt - โ (`:pick:`) for minor or nitpick changes
pub mod generators { | ||
pub use bitwarden_generators::{ | ||
password, ClientGeneratorExt, PasswordError, PasswordGeneratorRequest, | ||
}; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to put this under the secrets manager module instead of exposing generators like we do for the internal
feature?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No specific reason. Thinking more about it, refactoring it to this is probably a better approach going forward.
๐๏ธ Tracking
https://bitwarden.atlassian.net/browse/SM-1371
๐ Objective
Exposes the
password
generator function for generating secrets.This PR also fixes typos in
crates/bitwarden-generators/src/password.rs
.Alternate solution with an abstraction layer between SM and Bitwarden core generation functionality: #936
โฐ Reminders before review
team
๐ฆฎ Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or โน๏ธ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or ๐ญ (:thought_balloon:
) for more open inquiry that's not quite a confirmedissue and could potentially benefit from discussion
:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or โป๏ธ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes