Repository navigation
docs: warn that ip() groups and _method override are not access controls - #10
Merged
Merged
Conversation
- Document that the client IP comes from `Client-IP` / `X-Forwarded-For` before `REMOTE_ADDR` and must not be used for access control; replace the `/debug` and `/internal` examples; correct the Upgrading and Health Checks pages - Document that `variable_method` also applies to `GET` and that state-changing routes need a CSRF token; mirror both in the README
- Warn that port() and domain() read the client-supplied Host header - Replace the /metrics port example - Put the CSRF token in the main _method form, show the check, and widen the README note
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Documentation-only change: examples that could be copied into an application in an unsafe form are corrected.
Client-IP/X-Forwarded-ForbeforeREMOTE_ADDRand must not be used for access control; replace the/debugand/internalexamples; correct the Upgrading and Health Checks pagesvariable_methodalso applies toGETand that state-changing routes need a CSRF token; mirror both in the READMENotes
docs/andREADME.mdchange;src/, tests and CI are untouched, and library behavior is unchanged.wiki-sync.sh --check docspasses.