[PR #4474] [MERGED] fix: postman env variables are to be imported as secrets #4821

Closed
opened 2026-03-17 02:19:30 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4474
Author: @shobanrajm
Created: 10/25/2024
Status: Merged
Merged: 10/28/2024
Merged by: @jamesgeorge007

Base: nextHead: postman-env-secret-import


📝 Commits (2)

  • 66bdd3c fix: postman env variables are to be imported as secrets
  • 05d7996 fix: ensure secret environment variable values are eliminated before export

📊 Changes

5 files changed (+53 additions, -12 deletions)

View changed files

📝 packages/hoppscotch-common/src/components/environments/ImportExport.vue (+5 -2)
📝 packages/hoppscotch-common/src/components/environments/my/Details.vue (+5 -2)
📝 packages/hoppscotch-common/src/components/environments/teams/Details.vue (+5 -6)
📝 packages/hoppscotch-common/src/helpers/import-export/export/environment.ts (+31 -1)
📝 packages/hoppscotch-common/src/helpers/import-export/import/postmanEnv.ts (+7 -1)

📄 Description

Closes #4470

What's changed

This PR addresses the issue of Postman environment secrets being imported as plain text variables. The change introduces a new variable type to correctly identify and import secret variables as masked values, enhancing security.

Notes to reviewers


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/4474 **Author:** [@shobanrajm](https://github.com/shobanrajm) **Created:** 10/25/2024 **Status:** ✅ Merged **Merged:** 10/28/2024 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `next` ← **Head:** `postman-env-secret-import` --- ### 📝 Commits (2) - [`66bdd3c`](https://github.com/hoppscotch/hoppscotch/commit/66bdd3cf4d5b087e03842361fa9db58331cc5c29) fix: postman env variables are to be imported as secrets - [`05d7996`](https://github.com/hoppscotch/hoppscotch/commit/05d7996e460d5b12e5719c0ee454bfb7c281c74a) fix: ensure secret environment variable values are eliminated before export ### 📊 Changes **5 files changed** (+53 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/components/environments/ImportExport.vue` (+5 -2) 📝 `packages/hoppscotch-common/src/components/environments/my/Details.vue` (+5 -2) 📝 `packages/hoppscotch-common/src/components/environments/teams/Details.vue` (+5 -6) 📝 `packages/hoppscotch-common/src/helpers/import-export/export/environment.ts` (+31 -1) 📝 `packages/hoppscotch-common/src/helpers/import-export/import/postmanEnv.ts` (+7 -1) </details> ### 📄 Description <!-- Thanks for creating this pull request 🤗 Please make sure that the pull request is limited to one type (docs, feature, etc.) and keep it as small as possible. You can open multiple prs instead of opening a huge one. --> <!-- If this pull request closes an issue, please mention the issue number below --> Closes #4470 <!-- Add an introduction into what this PR tries to solve in a couple of sentences --> ### What's changed This PR addresses the issue of Postman environment secrets being imported as plain text variables. The change introduces a new variable type to correctly identify and import secret variables as masked values, enhancing security. <!-- Describe point by point the different things you have changed in this PR --> <!-- You can also choose to add a list of changes and if they have been completed or not by using the markdown to-do list syntax - [ ] Not Completed - [x] Completed --> ### Notes to reviewers <!-- Any information you feel the reviewer should know about when reviewing your PR --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:19:30 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4821
No description provided.