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

HCX-990 : Configure notifications for revoked certificates #611

Conversation

AbhiGaddi
Copy link
Contributor

@AbhiGaddi AbhiGaddi commented Feb 13, 2024

This PR contains

— Add validate certificate revocation status logic in hcx-commons
— Certificate revocation scheduler
— Update the status to Inactive for participant revoked certificate

hcx-apis/src/main/resources/application.yml Outdated Show resolved Hide resolved
Comment on lines 60 to 65
if (participant.containsKey(Constants.ENCRYPTION_CERT)) {
certificatePath = (String) participant.get(Constants.ENCRYPTION_CERT);
}
if (participant.containsKey(Constants.SIGNING_CERT_PATH)) {
certificatePath = (String) participant.get(Constants.SIGNING_CERT_PATH);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

How it works when both the certificates exist for the participant?

Comment on lines 56 to 57
List<String> revokedParticipantCodes = new ArrayList<>();
List<String> invalidCertificates = new ArrayList<>();
Copy link
Contributor

Choose a reason for hiding this comment

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

Avoid using a mutable list like this. It creates problem and won't be able to understand what are all the places the list is updating.

@AbhiGaddi AbhiGaddi changed the base branch from sprint-54 to sprint-55 February 19, 2024 05:03
Copy link

sonarqubecloud bot commented Mar 7, 2024

@maheshkumargangula maheshkumargangula merged commit 0f3388b into Swasth-Digital-Health-Foundation:sprint-55 Mar 12, 2024
2 checks passed
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.

2 participants