Skip to content

Add @Secret annotation to mask data in steps#465

Closed
cpjust wants to merge 1 commit into
allure-framework:masterfrom
cpjust:issue-392-hide-passwords-in-step
Closed

Add @Secret annotation to mask data in steps#465
cpjust wants to merge 1 commit into
allure-framework:masterfrom
cpjust:issue-392-hide-passwords-in-step

Conversation

@cpjust
Copy link
Copy Markdown

@cpjust cpjust commented Aug 24, 2020

Context

Fixes: allure-framework/allure2#392 and allure-framework/allure2#863

This PR adds a new @secret annotation for step parameters which will prevent the value of sensitive information (such as passwords or credit cards) from being displayed in the Allure report and will instead print *****.

Checklist

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Aug 24, 2020

CLA assistant check
All committers have signed the CLA.

@cpjust cpjust force-pushed the issue-392-hide-passwords-in-step branch from a80bde2 to 964860e Compare August 26, 2020 13:09
@cpjust
Copy link
Copy Markdown
Author

cpjust commented Sep 25, 2020

@baev Is anyone looking at these PR's? I don't have access to assign them to anyone...

@cpjust
Copy link
Copy Markdown
Author

cpjust commented Jan 7, 2021

@baev I see a "continuous-integration/jenkins/pr-merge — This commit cannot be built" message but when I click details it gives me a 404 error. What do I need to do to get this PR merged?

@baev
Copy link
Copy Markdown
Member

baev commented Sep 13, 2021

closed via #648

@baev baev closed this Sep 13, 2021
@Nagesh389
Copy link
Copy Markdown

@secret annotation is available in allure 2 version
Can some one help me here?
Im trying to mask the password in the allure report. Please help

@cpjust
Copy link
Copy Markdown
Author

cpjust commented Feb 23, 2022

@Nagesh389 Apparently @baev didn't like the simple @secret annotation I proposed and went with this option instead: #648

@Nagesh389
Copy link
Copy Markdown

@cpjust Thank you so much for the support and quick response.
Its working for me now.

@darkallure
Copy link
Copy Markdown

Could you please show me how to use it?

@sangameshwar-balur
Copy link
Copy Markdown

Can someone share the example to use @secret ?

@baev
Copy link
Copy Markdown
Member

baev commented Aug 3, 2022

please do not comment on closed PR. You can create a discussions instead if you have some questions or raise an issue for a bugs.

BTW you can find all the information you need here #648

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add annotation to hide sensitive data in attaches and report

6 participants