-
Notifications
You must be signed in to change notification settings - Fork 0
Control Plane Enhancement: Complete Implementation #96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
b3224e0
[control-plane] Complete Phase 2: Real-time Communication
vansour 866e834
[control-plane] Complete Phase 3: Configuration Management
vansour 96bf90f
[control-plane] Complete Phase 4: Observability
vansour 6da0be6
[control-plane] Implement Phase 5: Advanced Features (Gradual Rollout…
vansour b648678
[control-plane] Complete Phase 5: Client SDK and OpenAPI Documentation
vansour 4cc4553
Fix rginx-sdk dependencies for reqwest 0.13
vansour f15010e
Clean up and consolidate Control Plane documentation
vansour a08b1d7
Apply rustfmt formatting to Control Plane code
vansour 83f6fc9
Fix deadlock in circuit breaker on_success method
vansour 037df79
Fix CI issues: Clippy warnings and rustfmt formatting
vansour 303b134
Update modularization baseline for control plane code
vansour File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| { | ||
| "keys": [ | ||
| { | ||
| "id": "admin-key-001", | ||
| "secret": "sk_live_admin_secret_key_change_me", | ||
| "scopes": [ | ||
| "runtime.read", | ||
| "runtime.reload", | ||
| "config.write", | ||
| "cache.write", | ||
| "metrics.read" | ||
| ], | ||
| "created_at": 1704067200000, | ||
| "expires_at": 1735689600000, | ||
| "allowed_ips": [ | ||
| "10.0.0.0/8", | ||
| "192.168.0.0/16" | ||
| ] | ||
| }, | ||
| { | ||
| "id": "readonly-key-001", | ||
| "secret": "sk_live_readonly_secret_key_change_me", | ||
| "scopes": [ | ||
| "runtime.read", | ||
| "metrics.read" | ||
| ], | ||
| "created_at": 1704067200000, | ||
| "expires_at": null, | ||
| "allowed_ips": [] | ||
| }, | ||
| { | ||
| "id": "monitoring-key-001", | ||
| "secret": "sk_live_monitoring_secret_key_change_me", | ||
| "scopes": [ | ||
| "metrics.read" | ||
| ], | ||
| "created_at": 1704067200000, | ||
| "expires_at": 1767225600000, | ||
| "allowed_ips": [ | ||
| "10.100.0.0/16" | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| // Example configuration for mTLS client certificate authentication | ||
| // This enables mutual TLS authentication for the control plane | ||
|
|
||
| Config( | ||
| control_plane: Some(ControlPlane( | ||
| enabled: Some(true), | ||
| listen: Some("0.0.0.0:9443"), | ||
|
|
||
| tls: Some(ControlPlaneTls( | ||
| // Server certificate and key | ||
| cert_path: "/etc/rginx/control-plane.crt", | ||
| key_path: "/etc/rginx/control-plane.key", | ||
|
|
||
| // Client CA certificate for verifying client certificates | ||
| client_ca_path: Some("/etc/rginx/client-ca.crt"), | ||
|
|
||
| // Whether to require client certificates (true) or make them optional (false) | ||
| // - true: All clients MUST present a valid certificate | ||
| // - false: Clients MAY present a certificate, but can also use API keys | ||
| require_client_cert: Some(false), | ||
| )), | ||
|
|
||
| // API keys file (still used when client cert is not provided) | ||
| api_keys_path: Some("/etc/rginx/control-plane-api-keys.json"), | ||
|
|
||
| // IP whitelist (optional) | ||
| allowed_cidrs: [ | ||
| "10.0.0.0/8", | ||
| "192.168.0.0/16", | ||
| ], | ||
|
|
||
| // Node identity | ||
| node_id: Some("edge-node-001"), | ||
| region: Some("us-west-2"), | ||
| pop: Some("sfo1"), | ||
|
|
||
| labels: { | ||
| "env": "production", | ||
| "tier": "edge", | ||
| }, | ||
| )), | ||
|
|
||
| // ... rest of your configuration ... | ||
| ) |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.