mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #3216] [CLOSED] feat: Add secrets flag to hide secrets in frontend and cli logs #4288
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4288
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3216
Author: @DanielMaurer02
Created: 7/27/2023
Status: ❌ Closed
Base:
release/2023.8.2← Head:feat/secret-masking📝 Commits (10+)
7d61e69feat: added toggle Button to Frontend088f1d6feat: missing files from last commite0eb8affeat: added masking of secrets in cli in urlf530fc2fix: inputfield to readonly + asterisk if secretb9a1cc2fix: fixed bug in gui with masked secretsf33fa6afix: adjusted tests to work with the secret flag882aafdrefactor: update secret toggle icon9581f1drefactor: asterik length same as real text length0875d6frefactor: add mask/unmask button for env value6f397aachore: hide env value in selector📊 Changes
34 files changed (+409 additions, -114 deletions)
View changed files
📝
packages/hoppscotch-cli/src/commands/test.ts(+3 -2)📝
packages/hoppscotch-cli/src/handlers/error.ts(+3 -0)📝
packages/hoppscotch-cli/src/index.ts(+1 -0)📝
packages/hoppscotch-cli/src/interfaces/request.ts(+1 -0)📝
packages/hoppscotch-cli/src/options/test/env.ts(+31 -8)📝
packages/hoppscotch-cli/src/types/commands.ts(+1 -0)📝
packages/hoppscotch-cli/src/types/errors.ts(+1 -0)📝
packages/hoppscotch-cli/src/types/request.ts(+1 -1)📝
packages/hoppscotch-cli/src/utils/display.ts(+6 -5)📝
packages/hoppscotch-cli/src/utils/pre-request.ts(+38 -11)📝
packages/hoppscotch-cli/src/utils/request.ts(+3 -2)📝
packages/hoppscotch-common/locales/de.json(+3 -2)📝
packages/hoppscotch-common/locales/en.json(+3 -0)📝
packages/hoppscotch-common/src/components.d.ts(+0 -4)📝
packages/hoppscotch-common/src/components/environments/Selector.vue(+9 -1)📝
packages/hoppscotch-common/src/components/environments/my/Details.vue(+45 -1)📝
packages/hoppscotch-common/src/components/environments/teams/Details.vue(+48 -3)📝
packages/hoppscotch-common/src/components/http/TestResult.vue(+1 -0)📝
packages/hoppscotch-common/src/components/http/TestResultEnv.vue(+1 -0)📝
packages/hoppscotch-common/src/components/smart/EnvInput.vue(+90 -17)...and 14 more files
📄 Description
Closes #3195
Description
Secrets can now be marked with an icon next to the designated environment

If an environment is marked as a secret, it is replaced with asterisk's (******) everywhere in the frontend.
Furthermore environments with the secret flag are masked in the url in the CLI.
This pull request also changes the format of inputed environment files for the CLI to the format already used by the frontend (including the secret flag). To use this new format a new option "-envName" was added to the cli so that it is possible to choose a specific environment
Checks
Additional Information
Breaking Changes: -new format for CLI environments
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.