The files of /admin count against the pre-authentication rate limit
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 74/100
Rechercherichtung
Start with src/FluentCMS.Core/Api/Common/PreAuthRateLimitMiddleware.cs and trace how requests are classified, then inspect the admin surface’s static file routes and the related host configuration docs. Add or adjust coverage for 40 cold admin loads while confirming API and hosted page requests remain limited. Update docs/host-configuration.md to describe what the pre-authentication limit covers.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Problem
Every request to the host passes the pre-authentication limiter, by address (src/FluentCMS.Core/Api/Common/PreAuthRateLimitMiddleware.cs, lines 53 to 67), and the endpoints of the admin are FluentCMS endpoints, so they count. A cold load of the admin is about 230 requests against 6000 a minute per address (#3178, measured in the review of #3191; not measured again). An office behind one address meets 429 when some thirty people load the admin within a minute after a deploy. A-47 turns the admin on by default.
Proposal
Leave the static files of a surface out of the pre-authentication limit, or give them a limit of their own: a fingerprinted file is cached for good after the first load, and it reads nothing of the instance. index.html and config.json may stay under the limit.
Acceptance
- Forty cold loads of the admin from one address within a minute answer no 429
- A request to the APIs and to the hosted pages is limited as before
-
docs/host-configuration.mdsays what is limited
From the review of #3191 (#3178). A-46 documents FluentCms:RateLimits:PreAuth:PermitLimit until it is merged. Size: S.
- Vorherrschende Sprache
- C#
- Sterne
- 567
- Forks
- 107
- Ø Merge
- 1 Std. 19 Min.
- Gemergte PRs (30 T.)
- 353
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus fluentcms/FluentCMS
-
area:localization plugin type:bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
area:storage type:bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
Maintainer antworten meist innerhalb von 1 Tag
-
area:testing type:bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
area:api area:publishing type:feature
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
fluentcms/FluentCMS#3473 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:storage plugin type:bug
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in fluentcms/FluentCMS
Ähnliche Issues
-
worldInstancedOccluderNode reads its appendix count as one byte, but it is a VLQEvtl. vergeben @spuddeh hat das heute übernommen. Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
fix(ocr): compile the Tesseract-free pipeline with Tokio runtimeEvtl. vergeben @Goldziher hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
priority:P2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
-
lompotc silently drops Java/C# class members past 128 instead of erroring, as its header claimsOffenbug sev-5 vm
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100