Skip to content

feat: support website-bound policy rules - #85

Merged
jerrynbc merged 1 commit into
mainfrom
feat/policy-rule-website-binding
Sep 29, 2026
Merged

jerrynbc merged 1 commit into
mainfrom
feat/policy-rule-website-binding

Conversation

@jerrynbc

Copy link
Copy Markdown
Collaborator

Summary

  • add --website-id support to safeline policy-rule create
  • create website-bound rules with is_global=false and websites
  • preserve global-rule behavior when no website ID is provided
  • validate and deduplicate website IDs

Verification

  • go test ./products/safeline/cmd/...
  • verified rule creation and cleanup on SafeLine 25.03
  • verified rule creation and cleanup on SafeLine 23.01

Resolves #83

@jerrynbc
jerrynbc merged commit 57aa888 into main Sep 29, 2026
3 checks passed
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.

cli不能在雷池上创建资产自定义规则

1 participant