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

Securely Masked Variables #1468

Open
Matt-McHale opened this issue Jan 29, 2024 · 5 comments
Open

Securely Masked Variables #1468

Matt-McHale opened this issue Jan 29, 2024 · 5 comments
Labels
feature request New feature or request

Comments

@Matt-McHale
Copy link

Provide a mechanism for masking variables that would not be included in the console output and in the test exports.

Current Example:

Raw Headers.
Accept: /
User-Agent: Thunder Client (https://www.thunderclient.com)
Content-Type: application/json
client_id: {{client_id}}
client_secret: {{client_secret}}

Environment Used: Sandbox (Collection Attached)
Request Url: https://www.fakeURL.com
Method: POST
Request Headers:
{
"client_id": "FakeClientId",
"client_secret": "FakeClientSecret",
"content-length": "1279",
"accept-encoding": "gzip, deflate, br",
"Accept": "/",
"User-Agent": "Thunder Client (https://www.thunderclient.com)",
"Content-Type": "application/json"
}

Desired

Raw Headers.
Accept: /
User-Agent: Thunder Client (https://www.thunderclient.com)
Content-Type: application/json
client_id: {{secure:client_id}}
client_secret: {{secure:client_secret}}

Request Url: https://www.fakeURL.com
Method: POST
Request Headers:
{
"client_id": "#############",
"client_secret": "##############",
"content-length": "1279",
"accept-encoding": "gzip, deflate, br",
"Accept": "/",
"User-Agent": "Thunder Client (https://www.thunderclient.com)",
"Content-Type": "application/json"
}

Using the Paid Version.

@Matt-McHale Matt-McHale added the feature request New feature or request label Jan 29, 2024
@rangav
Copy link
Collaborator

rangav commented Jan 29, 2024

@Matt-McHale thanks for the feedback.

You can mask headers in reports from CLI.

example:
tc --col "TestCol" --remove "client_id,client_secret"

for more info run command tc -h.

Can you explain the use-case about masking variables in Output Window?

@Matt-McHale
Copy link
Author

Matt-McHale commented Jan 29, 2024 via email

@rangav
Copy link
Collaborator

rangav commented Jan 30, 2024

Why do you need to mask variables in the Output window?

This data is only visible to you right?

Most users want to see actual values sent to request in console output.

@Matt-McHale
Copy link
Author

Matt-McHale commented Jan 30, 2024 via email

@rangav
Copy link
Collaborator

rangav commented Jan 30, 2024

Thanks, got it.

You can mask headers in reports from CLI.

example:
tc --col "TestCol" --remove "client_id,client_secret" --report "cli,json,html"

for more info run command tc -h.

Please test above and let me know if you have any issues.

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

No branches or pull requests

2 participants