[Policy Hub] Policy Contribution Flow #412
DakshithaS
started this conversation in
General
Replies: 2 comments 1 reply
-
|
Workflow looks good to me. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Do we actually need GitHub releases for this, given that the main branch is always production-ready? Also, what does a GitHub tag like v1.0.12 really represent in this context—major, minor, or patch? If we add a new policy or fix a bug, should that be considered a patch-level update in the policies repository? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Overview
This discussion outlines the Policy Contribution Flow for the Policy Hub, detailing how policies are contributed, validated, and published through an automated CI/CD pipeline.
sequenceDiagram participant Dev as Developer participant GH as GitHub Repo (Policy Hub) participant Maint as WSO2 Maintainers participant WF as GitHub Workflows participant S3 as Artifact Storage participant Hub as Policy Hub Note over Dev: Developer creates a new policy locally Dev->>Dev: Implement policy + run local validation alt Local validation passes Dev->>GH: Submit changes (open PR) else Validation fails Dev->>Dev: Fix issues and retry end GH-->>Maint: Notify maintainers of new PR Maint->>GH: Review PR and validate quality alt PR approved Maint->>GH: Merge PR into main branch else PR rejected GH-->>Dev: PR closed without merging end Note over GH,WF: After merge, automation begins GH->>WF: Trigger GitHub CI workflows WF->>WF: Detect new policy versions WF->>WF: Validate merged policy version alt Validation succeeds WF->>S3: Upload policy artifact S3-->>WF: Artifact stored successfully WF->>Hub: Register policy in Policy Hub Hub-->>WF: Policy successfully added WF->>GH: ✓ Workflow successful else Validation fails WF->>GH: ✗ Workflow failed GH-->>Maint: Notify maintainers of validation failure end🎯 Current Architecture
Repository Structure
🔄 Policy Contribution Flow
Phase 1: Policy Development
Contributor Actions:
./scripts/validate-policy.sh {policy-name} v{version}Phase 2: Pull Request Submission
Automated Validation Triggers:
policies/**Validation Steps:
Phase 3: Pre-Release Validation
Release Trigger:
v1.2.3)Batch Release Workflow (
batch-release.yml):Release Process:
Discussion Points
Beta Was this translation helpful? Give feedback.
All reactions