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

Fix #981: Option to disable verification of replay attacks #1004

Merged
merged 2 commits into from
Sep 6, 2023

Conversation

romanstrobl
Copy link
Member

No description provided.

Copy link
Member

@banterCZ banterCZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like the solution with @ConditionalOnProperty. I suggest documenting the configuration property in this PR.

@romanstrobl romanstrobl requested a review from banterCZ September 6, 2023 09:35
@romanstrobl romanstrobl self-assigned this Sep 6, 2023
Copy link
Member

@banterCZ banterCZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the documentation.

Copy link
Member

@petrdvorak petrdvorak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, with a minor comment to fix.

@Service
@Slf4j
@AllArgsConstructor
@ConditionalOnProperty(prefix = "powerauth.service.crypto", name = "replayVerificationService", havingValue = "default")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just in case, I recommend adding matchIfMissing property to the annotation.

@romanstrobl romanstrobl merged commit d8d4614 into develop Sep 6, 2023
@romanstrobl romanstrobl deleted the issues/981-replay-attack-prevention-optional branch September 6, 2023 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants