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

feat: asenna sovelluspalomuuri (AWS WAF) edustalle. Käytä WAF:ia huoltotaukojen kytkemiseen päälle/pois. #538

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

haapamakim
Copy link
Contributor

@haapamakim haapamakim commented Jan 13, 2023

Toteutuksen idea:

  • yksi WAF per account. Se asennetaan "npm run deploy:waf:dev"-komennolla
  • WAF:ssa on yksi sääntö jokaista WAF:lla suojattavaa ympäristöä kohden. Säännöllä mätsätään host-headerin arvoon
  • Jokaista sääntöä kohden on yksi regexp pattern set. Sen päivittäminen APIn kautta on nopeaa. Regex normaalisti ei osu host-headeriin, mutta jos halutaan kytkeä huoltokatko päälle, regex asetetaan mätsäämään kyseisen ympäristön host-headerin arvoon
  • kytkentä päälle/pois tapahtuu "npm run maintenancemode set" ja "npm run maintenancemode clear"-komennoilla
  • huoltokatkon aikana sivusto palauttaa http 503 statusta
  • kytkennän jälkeen varmistetaan, että sivustolta tulee/ei tule 503 kuten pitää

@haapamakim haapamakim force-pushed the feature/waf branch 2 times, most recently from a1ae931 to e8d068d Compare January 20, 2023 09:03
Copy link
Contributor

@tkork tkork left a comment

Choose a reason for hiding this comment

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

Hyvältä näyttää

@haapamakim haapamakim merged commit 47dd8f7 into main Jan 24, 2023
@haapamakim haapamakim deleted the feature/waf branch January 24, 2023 12:00
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