quant rules: code-managed edge rules (6.3.0) - #284
Merged
Merged
Conversation
- quant rules deploys edge-rules.json through the portal rules API with a separate project-scoped token (QUANT_API_TOKEN, QUANT_BASE_URL); it never uses the content token or upload endpoint and does not follow redirects. - Function ids give stable per-project function UUIDs, so rules can reference functions by function_ref; duplicate ids fail before upload. - Managed rules: a 409 lists each rule that changed outside code (field names, values only for matchers and weight) or collides; --force overwrites drift and never takes over a rule the manifest did not create. - Tests run with a temporary home so they never overwrite saved credentials.
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.
Adds
quant rulesfor template edge rules, deployed through the portal rules API (POST /api/v2/organizations/{org}/projects/{project}/rules/deploy).QUANT_API_TOKEN,QUANT_BASE_URL); never the content token or upload endpoint; no redirects.ids give stable per-project function UUIDs, so rules reference functions withfunction_ref. Duplicate ids fail before any upload.action_confignever, as it can hold credentials).--forceoverwrites drift; a rule-id collision is never overridden.forcedstatus.Portal side: quantcdn/portal develop 2842d09d6 (managed-rule lock, drift 409, force).