mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #5912] [feature]: Script Access for Secret Environment Variables + Session Scope #2321
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#2321
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?
Originally created by @roopepaajanen on GitHub (Feb 27, 2026).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5912
Is there an existing issue for this?
Summary
In team environments, authentication flows are often automated using scripts:
Right now:
So while secret variables are secure, they are not automation-friendly.
Proposed Enhancement 1: Script Access to Secret Variables
Allow pre-request and post-request scripts to:
Example
Expected Behavior
This would enable fully automated authentication flows without breaking collaborative workflows.
Proposed Enhancement 2: Session Environment Scope
In addition, introducing a session-scoped environment would improve handling of temporary runtime values.
Intended Use Cases
Key Characteristics
Example
This would provide a clean separation between:
Why should this be worked on?
In real-world team usage:
Enabling script-level management of secrets (and optionally adding session scope) would: