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

Setting to Mask Sensitive Values in API Request/Response? #74

Closed
adrian861 opened this issue Feb 12, 2021 · 2 comments
Closed

Setting to Mask Sensitive Values in API Request/Response? #74

adrian861 opened this issue Feb 12, 2021 · 2 comments

Comments

@adrian861
Copy link

adrian861 commented Feb 12, 2021

First off, love the tool, has been SUPER helpful for some of our node issues.

I was wondering if there's a setting, or way to mask value's for certain keys in API request/response. For example:

      cy:request ✔  POST https://someUrl/v1/graphql
                    Status: 200
                    Response body: {
                      "data": {
                        "authenticate": {
                          "oneTimeToken": "*******",
                          "session_id": "someId",
                          "uuid": "someUuid"
                        }
                      }

Currently oneTimeToken displays the value during a failure, which we'll want hidden, especially as we move to CI.

@archfz
Copy link
Owner

archfz commented Feb 12, 2021

We should add a processLog just like the filterLog option. Then you can based on log type (xhr) and message do your own regexes to remove these values.

@archfz
Copy link
Owner

archfz commented Mar 9, 2021

@archfz archfz closed this as completed Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants