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

Configure hosts for application #1432

Merged
merged 1 commit into from
Oct 30, 2024
Merged

Configure hosts for application #1432

merged 1 commit into from
Oct 30, 2024

Conversation

KludgeKML
Copy link
Contributor

@KludgeKML KludgeKML commented Oct 22, 2024

  • the healthcheck endpoints are requested by IP, not domain, so we need to specifically exclude them from the protection.
  • internal API hostname is also necessary

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

https://trello.com/c/6lU4aUGt/366-configure-hosts-for-application

@ChrisBAshton
Copy link
Contributor

This fixed worked for a similar issue in Release (alphagov/release#1589) but did not work for a similar issue in Whitehall / Link Checker API: alphagov/whitehall#9542

Sharing just in case the latter trips you up like it did us. We have a card to revisit the latter fix.

@KludgeKML
Copy link
Contributor Author

Ah, interesting! Thanks @ChrisBAshton. I note that if I try to deploy this to integration it appears to fail on the healthcheck, despite that being explicitly excluded from this. Is that similar to what happened on Whitehall?

@ChrisBAshton
Copy link
Contributor

Latest PR @KludgeKML : alphagov/whitehall#9560

- the healthcheck endpoints are requested by IP, not domain, so we need to specifically exclude them from the protection.
- internal API hostname is also necessary
@KludgeKML KludgeKML force-pushed the hostname-config-redux branch from 8a9499c to 8cd11fd Compare October 30, 2024 09:54
@KludgeKML KludgeKML marked this pull request as ready for review October 30, 2024 11:53
@KludgeKML KludgeKML requested a review from leenagupte October 30, 2024 12:01
Copy link
Contributor

@leenagupte leenagupte left a comment

Choose a reason for hiding this comment

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

Looks ok to me 🤞

@KludgeKML KludgeKML merged commit d130f9c into main Oct 30, 2024
11 checks passed
@KludgeKML KludgeKML deleted the hostname-config-redux branch October 30, 2024 12:12
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