Skip to content
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

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

Open
1 task done
rubabuddin opened this issue Dec 8, 2021 · 1 comment
Open
1 task done
Labels
feature New feature or request

Comments

@rubabuddin
Copy link

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.

@vinupriyesh
Copy link

+1
This is an important feature!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants