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

Create default public key endpoint for radar-gateway #290

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

pvannierop
Copy link
Collaborator

@pvannierop pvannierop commented Oct 24, 2024

Problem

Previous PR introduced public key endpoint for radar-gateway. This implementation did not include config for a sensible default value.

Solution

This PR will provide a default value that respects the protocol (http, https) which is needed for local testing.

@pvannierop pvannierop self-assigned this Oct 24, 2024
Copy link

github-actions bot commented Oct 24, 2024

Great PR! Please pay attention to the following items before merging:

Files matching charts/*/values.yaml:

  • Is the PR adding a new container? Please reviewer, add it to the models (internal process)
  • Is the PR adding a new parameter? Please, ensure it’s documented in the README.md

This is an automatically generated QA checklist based on modified files.

@@ -57,6 +57,7 @@ data:
managementPortalUrl: {{ .Values.managementportal_url }}
checkSourceId: {{ .Values.checkSourceId }}
publicKeyUrls:
- {{ printf "%s://%s/managementportal/oauth/token_key" .Values.advertised_protocol .Values.serverName | quote }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this line always be present?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@keyvaann I think so yes.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@keyvaann Ah I think that I understand where your question comes from. This is related to the error that is thrown by gateway when using this config option. Shall I enable this via config option and have it off by default?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@keyvaann I have added the option to disable the publicKeyUrls config option.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks!

@pvannierop pvannierop force-pushed the bugfix/gateway-public-key-endpoints branch 2 times, most recently from 61c0b74 to c91cf51 Compare October 29, 2024 08:59
Copy link
Collaborator

@keyvaann keyvaann left a comment

Choose a reason for hiding this comment

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

LGTM

@keyvaann
Copy link
Collaborator

@pvannierop The lint is failing.

Fixes a config error introduced by prior PR.
@pvannierop pvannierop force-pushed the bugfix/gateway-public-key-endpoints branch from c91cf51 to 6dd64fb Compare October 30, 2024 07:31
@pvannierop pvannierop merged commit 432bef7 into main Oct 31, 2024
5 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