[GH-ISSUE #2001] [feature]: Decrypt credentials and apply in pre-request script for single session #648

Closed
opened 2026-03-16 16:30:41 +03:00 by kerem · 3 comments
Owner

Originally created by @rubabuddin on GitHub (Dec 8, 2021).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2001

Is there an existing issue for this?

  • I have searched the existing issues

Summary

I'd like to decrypt a credential using an AWS SDK - is it possible to import libraries as a pre-request script before applying at as an environment variable?

Pre-request script as follows

const awsCrypto = require('@aws-crypto/client-node');
const sp = require('synchronized-promise');

const awsDecrypt = sp(awsCrypto.decrypt);

After Hoppscotch tab is closed, all environment variables from that session should be deleted

Why should this be worked on?

Useful for scenarios where we don't want to have credentials saved in environment but just want them to last for the life of the API testing session.

Originally created by @rubabuddin on GitHub (Dec 8, 2021). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2001 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Summary I'd like to decrypt a credential using an AWS SDK - is it possible to import libraries as a pre-request script before applying at as an environment variable? Pre-request script as follows ``` const awsCrypto = require('@aws-crypto/client-node'); const sp = require('synchronized-promise'); const awsDecrypt = sp(awsCrypto.decrypt); ``` After Hoppscotch tab is closed, all environment variables from that session should be deleted ### Why should this be worked on? Useful for scenarios where we don't want to have credentials saved in environment but just want them to last for the life of the API testing session.
kerem 2026-03-16 16:30:41 +03:00
  • closed this issue
  • added the
    feature
    label
Author
Owner

@vinupriyesh commented on GitHub (Dec 9, 2023):

+1
This is an important feature!

<!-- gh-comment-id:1848626746 --> @vinupriyesh commented on GitHub (Dec 9, 2023): +1 This is an important feature!
Author
Owner

@sajeshsf commented on GitHub (Oct 3, 2024):

+1

<!-- gh-comment-id:2392140522 --> @sajeshsf commented on GitHub (Oct 3, 2024): +1
Author
Owner

@liyasthomas commented on GitHub (Nov 6, 2025):

This issue can be grouped with #2015 to better track and implement features without splitting discussions across multiple threads. Therefore, I’ll close this ticket to ensure that discussions continue on the other ticket.

<!-- gh-comment-id:3497438461 --> @liyasthomas commented on GitHub (Nov 6, 2025): This issue can be grouped with #2015 to better track and implement features without splitting discussions across multiple threads. Therefore, I’ll close this ticket to ensure that discussions continue on the other ticket.
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#648
No description provided.