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

Account Service SIWF v2 URI Validation #669

Merged
merged 5 commits into from
Nov 1, 2024

Conversation

mattheworris
Copy link
Contributor

Problem

Updates to support siwf v2.1.0

Closes #640

Solution

  • Renamed SIWF_V2_DOMAIN to SIWF_V2_URI_VALIDATION and follow on config changes, tests, etc.
  • Renamed loginMsgDomain to loginMsgURIValidation
  • Updated ENVIRONMENT.md

@mattheworris mattheworris linked an issue Oct 31, 2024 that may be closed by this pull request
@mattheworris mattheworris self-assigned this Oct 31, 2024
expect(accountServiceConfig.siwfV2Url).toStrictEqual(ALL_ENV.SIWF_V2_URL);
});

it.each([['https://example.com/login'], ['example://login'], ['localhost'], ['localhost:3030/login/path']])(
Copy link
Contributor

Choose a reason for hiding this comment

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

nice!

Copy link
Contributor

@enddynayn enddynayn left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@@ -41,12 +41,6 @@ describe('Account API Config', () => {
it('invalid api timeout limit should fail', async () => shouldFailBadValues(ALL_ENV, 'API_TIMEOUT_MS', [0]));

it('invalid url for SIWF_V2_URL', async () => shouldFailBadValues(ALL_ENV, 'SIWF_V2_URL', ['sdfdsf']));

it('invalid url SIWF_V2_DOMAIN', async () =>
shouldFailBadValues(ALL_ENV, 'SIWF_V2_DOMAIN', ['https://www.example.com']));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These values are valid now.

@@ -18,7 +18,8 @@ data:
HEALTH_CHECK_SUCCESS_THRESHOLD: {{ .Values.account.env.HEALTH_CHECK_SUCCESS_THRESHOLD | quote }}
CAPACITY_LIMIT: {{ .Values.account.env.CAPACITY_LIMIT | quote }}
SIWF_URL: {{ .Values.account.env.SIWF_URL | quote }}
SIWF_DOMAIN: {{ .Values.account.env.SIWF_DOMAIN | quote }}
SIWF_V2_URL: {{ .Values.account.env.SIWF_V2_URL | quote }}
Copy link
Contributor Author

@mattheworris mattheworris Nov 1, 2024

Choose a reason for hiding this comment

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

@saraswatpuneet This value is optional, is it okay to put it or will it cause errors if it is not set?

Copy link
Contributor

@wilwade wilwade left a comment

Choose a reason for hiding this comment

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

Looks good from my view.

  • Reviewed code

@mattheworris mattheworris merged commit f1818cf into main Nov 1, 2024
15 checks passed
@mattheworris mattheworris deleted the 640-account-service-siwf-v2-uri-validation branch November 1, 2024 15:57
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.

Account Service SIWF v2 URI Validation
4 participants