-
Notifications
You must be signed in to change notification settings - Fork 72
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
feat: add sensitive env var clearing and e2e tests for session launcher #2701
base: main
Are you sure you want to change the base?
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Your org requires the Graphite merge queue for merging into mainAdd the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
---|---|---|---|
🔴 | Statements | 5.6% (+0.12% 🔼) |
345/6165 |
🔴 | Branches | 5.15% (+0.09% 🔼) |
218/4236 |
🔴 | Functions | 3.31% (+0.19% 🔼) |
67/2027 |
🔴 | Lines | 5.48% (+0.11% 🔼) |
330/6020 |
Test suite run success
93 tests passing in 12 suites.
Report generated by 🧪jest coverage report action from a9992f4
ca56621
to
8b70b8a
Compare
8b70b8a
to
c1dfc10
Compare
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.
Found typo error in test module file(session-luancher.test.ts
-> session-launcher.test.ts
). Except that, It works fine.
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.
LGTM.
TL;DR
Added functionality to empty sensitive environment variables and updated form value synchronization.
What changed?
sensitivePatterns
array with regular expressions to identify sensitive environment variables.isSensitiveEnv
function to check if an environment variable is sensitive.emptySensitiveEnv
function to clear values of sensitive environment variables.VFolderTableFormValues
interface to includeautoMountedFolderNames
.SessionLauncherPage
to omit specific fields and empty sensitive environment variables.How to test?
Why make this change?
This change enhances security by preventing sensitive information from being exposed in URLs or unintended locations. It also improves the handling of environment variables, ensuring that sensitive data is properly managed throughout the application.