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

feat: pull mo-trust-anchor at bootup rather than from file #4

Merged
merged 8 commits into from
Aug 1, 2023

Conversation

alessioerosferri
Copy link
Collaborator

Allow manager to pull mo-trust-anchor at boot-up rather than from file in file system

Copy link
Collaborator

@subnova subnova left a comment

Choose a reason for hiding this comment

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

I wonder if it makes sense for us to create a MoRootCertificateRetrievalService with the following implementations:

  • OpcpMoRootCertificateRetrievalService
  • FileMoRootCertificateRetrievalService

The serve command can then either use the file based option if the --mo-trust-anchor-pem-file flag is provided or the RCP option if we specify --mo-rcp-opcp-url and --mo-rcp-opcp-token flags are provided?

The service would be passed down to the handlers that actually need to certificates so there is the option for dynamic updates etc.

- "--cso-opcp-token"
- "${CSO_OPCP_TOKEN}"
- "--mo-opcp-token"
- "${MO_OPCP_TOKEN}"
- "--storage-engine"
- "${STORAGE_ENGINE:-firestore}"
- "--mo-root-certificate-pool"
- "https://open.plugncharge-test.hubject.com/mo/cacerts/ISO15118-2"
Copy link
Contributor

Choose a reason for hiding this comment

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

I get 403 RBAC: access denied on this URL

@alessioerosferri
Copy link
Collaborator Author

@subnova I added the changes proposed. It does not pass the service through the handler though. That requires a few more changes, but it is an incremental improvement that we can iterate over. Any thoughts?
Thank you

@subnova subnova merged commit 7d4cdf6 into main Aug 1, 2023
1 check passed
@subnova subnova deleted the pull-mo-trust-anchor branch September 6, 2023 08:11
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.

3 participants