Skip to content

Conversation

@AdamJHall
Copy link
Contributor

Description of the proposed changes
This PR updates the maintenance mode plugin to check the host header, and the IP allow list against the sites and allow list in maintenance file.

REF: aligent/cdk-constructs#1487

Notes to PR author

⚠️ Please make sure the changes adhere to the guidelines mentioned here

Notes to reviewers

🛈 When you've finished leaving feedback, please add a final comment to the PR tagging the author, letting them know that you have finished leaving feedback

…PI that allow multiple sites to be placed in / out of maintenance mode
@AdamJHall AdamJHall requested a review from a team as a code owner May 23, 2025 04:37
@AdamJHall AdamJHall requested a review from tvhees May 23, 2025 04:37
@tvhees
Copy link

tvhees commented May 26, 2025

Looks fine @AdamJHall

Just checking we don't need more handling around the presence/contents of the maintenance file? I assume if this code is running we're confident the maintenance file exists?

@tvhees
Copy link

tvhees commented May 26, 2025

Also this repo really needs some time put in to it to get the builds working again :(

@AdamJHall
Copy link
Contributor Author

Looks fine @AdamJHall

Just checking we don't need more handling around the presence/contents of the maintenance file? I assume if this code is running we're confident the maintenance file exists?

We do check for it's existence, for the content side we're relying on the fact that it's created via an API and code we control and validated on that end. We could add some more basic validation in the future.

@AdamJHall AdamJHall merged commit f37df5e into main May 26, 2025
1 of 4 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.

3 participants