Skip to content

quant rules: code-managed edge rules (6.3.0) - #284

Merged
stooit merged 1 commit into
mainfrom
release/6.3.0
Oct 2, 2026
Merged

stooit merged 1 commit into
mainfrom
release/6.3.0

Conversation

@stooit

@stooit stooit commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Adds quant rules for template edge rules, deployed through the portal rules API (POST /api/v2/organizations/{org}/projects/{project}/rules/deploy).

  • Separate project-scoped credential (QUANT_API_TOKEN, QUANT_BASE_URL); never the content token or upload endpoint; no redirects.
  • Function ids give stable per-project function UUIDs, so rules reference functions with function_ref. Duplicate ids fail before any upload.
  • Managed rules: when a rule changed outside code, the portal answers 409 and the CLI lists the changed fields (values only for matchers and weight; action_config never, as it can hold credentials). --force overwrites drift; a rule-id collision is never overridden.
  • Accepts the portal's forced status.
  • Tests use a temporary home so they never overwrite saved credentials.

Portal side: quantcdn/portal develop 2842d09d6 (managed-rule lock, drift 409, force).

- 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.
@stooit
stooit merged commit 65b4bdd into main Oct 2, 2026
6 checks passed
@stooit
stooit deleted the release/6.3.0 branch October 2, 2026 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant