Beschikbaarheidspoort laat publieke site-endpoints door en 429 geeft Retry-After met ProblemDetails
Nieuwe marker [PublicSiteEndpoint] (deny-by-default): alleen GET /offerings blijft bereikbaar als het CMS uit staat of in onderhoud is; alle andere acties, adminroutes inbegrepen, blijven 503. OnRejected zet Retry-After en schrijft application/problem+json met alleen type, title en status. Op master zijn de limiet-policies nog globale buckets: de contactroutes mogen pas live na de per-client-partitionering van de ASF-branch. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -69,6 +69,15 @@ public class AvailabilityMiddleware
|
||||
return;
|
||||
}
|
||||
|
||||
// Public site functionality (e.g. the offerings list the website shows) stays reachable
|
||||
// whatever the status: the statuses only stop the CMS. Deny-by-default: only an endpoint
|
||||
// that explicitly carries the marker passes here.
|
||||
if (context.GetEndpoint()?.Metadata.GetMetadata<PublicSiteEndpointAttribute>() is not null)
|
||||
{
|
||||
await _next(context);
|
||||
return;
|
||||
}
|
||||
|
||||
var admin = CheckAdmin(context);
|
||||
if (admin.IsVerifiedAdmin)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user