Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use of Secret in setCookies #3558

noe-charmet started this conversation in Ideas
Discussion options

As cookies can contain session information, they could be considered as secrets. It would be great to be able to use a Secret there. To ensure we are not logging any sensitive data.

You must be logged in to vote

Replies: 2 comments

Comment options

Could you please provide your showcase in the real project?

You must be logged in to vote
0 replies
Comment options

Currently we would be doing

I.setCookie({name: 'authentication_cookie', value: 'someSuperSecret'})

Which would print the content of the cookie in the logs.

I would like to do

I.setCookie({name: 'authentication_cookie', value: secret('someSuperSecret')})

As to have the secret redacted in the logs

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /