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

Implement CA Info REST v2 #4610

Merged
merged 1 commit into from
Nov 15, 2023
Merged

Implement CA Info REST v2 #4610

merged 1 commit into from
Nov 15, 2023

Conversation

fmarco76
Copy link
Member

The code of CAInfoService.java has moved to CAEngine and used for the current API and the new v2 API.

Introduced a base servlet for all CA APIs and the servlet for the Info end-point.

No code changes performed.

Copy link
Contributor

@edewata edewata left a comment

Choose a reason for hiding this comment

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

The changes look good, but should we change the client too?

I think the old API is used in this test: https://github.com/dogtagpki/pki/blob/master/.github/workflows/kra-oaep-test.yml#L112

And also in this client code:
https://github.com/dogtagpki/pki/blob/master/base/common/src/main/java/org/dogtagpki/common/CAInfoClient.java#L30

It needs to be changed to:

super(client, subsystem, "v2", "info");

Maybe we need to change the client constructors so it's easier to identify in the future.

Feel free to update/merge. Thanks!

The code of CAInfoService.java has moved to CAEngine and used for the
current API and the new v2 API.

Introduced a base servlet for all CA APIs and the servlet for the Info
end-point.

No code changes performed.
Copy link

sonarcloud bot commented Nov 15, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@fmarco76
Copy link
Member Author

I have updated the client and the CI workflow to use the new end-point.

@fmarco76
Copy link
Member Author

@edewata Thanks!

@fmarco76 fmarco76 merged commit fab9922 into dogtagpki:master Nov 15, 2023
132 checks passed
@fmarco76 fmarco76 deleted the CAInfoAPIv2 branch November 27, 2023 14:37
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