Fix: Fixed multi service openapi bugs and added multi service global …#41
Merged
Fix: Fixed multi service openapi bugs and added multi service global …#41
Conversation
370a56b to
74f204b
Compare
74f204b to
398f42c
Compare
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.
Per-service maintenance (
engine.enable_service_maintenance): puts all routes of one service into maintenance mode at once without affecting other services. SDK clients with a matchingapp_idreceive the sentinel over SSE and treat every request as if their own global maintenance were enabled. Supportsreason,exempt_paths, andinclude_force_active, the same parameters as all-services global maintenance. Controllable via the newshield smCLI command group (status,enable,disable), the REST API (POST /api/services/{service}/maintenance/enable|disable), and the dashboard Routes page (service maintenance card, shown when a service filter is active). Audit log actions:service_maintenance_onandservice_maintenance_off.Per-service global rate limit (
engine.set_service_rate_limit): a rate limit policy scoped to a single service name that applies to all routes of that service. Sits between the all-services global rate limit and per-route limits in the enforcement chain, requests are checked in order: global maintenance, service maintenance, global rate limit, service rate limit, per-route rate limit. Configurable from the dashboard Rate Limits page (service RL card, shown when a service filter is active) and the newshield srlCLI command group (get,set,delete,reset,enable,disable). UsesGlobalRateLimitPolicy— the same model as the all-services global rate limit. Persisted in the backend via a sentinel key so the policy survives Shield Server restarts.