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

Changed getSiteLink to use protocol based on sslRequired variable. #97

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

gbradley
Copy link

@gbradley gbradley commented Apr 5, 2024

Closes #96

This PR ensures the site link that is added to comments uses the protocol expected by the user, based on the FORGE_SSL_REQUIRED environment variable.

The rationale for this approach is to ensure the URL is independent of any SSL provisioning process (which may be successful / pending / failed). This means users requesting a secure URL will never receive an insecure one, even if the SSL cert has not yet finished provisioning or there's some misconfiguration elsewhere.

Copy link
Owner

@mehrancodes mehrancodes left a comment

Choose a reason for hiding this comment

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

@gbradley Looks perfect! Now we have the getSiteLink fully test covered! 🙌

@mehrancodes mehrancodes merged commit 81cc502 into mehrancodes:main Apr 5, 2024
1 check passed
@shawnhooper
Copy link
Contributor

Test coverage!! 🥳

Thanks @gbradley.

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.

Environment URL points to http:// even when SSL is configured; wait_on_ssl not currently used?
3 participants