-
Notifications
You must be signed in to change notification settings - Fork 986
RFC0055 Identity-Aware Routing #3758
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 37 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
e5b6b18
Enhance add-access-rule command UX with intuitive name-based flags
rkoster f14301a
Remove access rule names per RFC updates
rkoster 25a55f9
Refine access-rules output to show separate host, domain, and path co…
rkoster 6121923
Rebrand RFC terminology: access rules → route policies, selector → so…
rkoster 1df8f98
Add name-based source flags to remove-route-policy
rkoster 6108fec
Add CAPI version check for route policy commands
rkoster 08f4b62
Add route policies column to cf domains output
rkoster fed4288
Add cf/cli to .gitignore to prevent binary commits
rkoster 3afb795
Add unit tests for route policy commands, actor, and ccv3 client
rkoster cc26579
Fix: reject --source-org with --source-app when --source-space is mis…
rkoster 504b0ea
test: add scope/enforce coverage for CreatePrivateDomain in domain_te…
rkoster 9125dd3
refactor: consolidate Add/RemoveRoutePolicyArgs into single RoutePoli…
rkoster e8fdbb3
test: add dedicated tests for route_policy_source_flags and create-pr…
rkoster 2375f4d
test: add --enforce-route-policies and --scope coverage to create-sha…
rkoster 64d47d4
refactor: extract shared --enforce-route-policies / --scope test beha…
rkoster 59f8468
chore: remove devbox.json and devbox.lock from tracked files
rkoster cd4b60f
Remove whitespace-only changes from unrelated files
rkoster 7dfb878
fix: guard AddRoutePolicy against non-enforcing domains
rkoster 316c9af
refactor: move GetRoutesByDomain to route.go
rkoster 9adda5d
refactor: simplify GetRoutesByDomain — drop redundant copy loop
rkoster ab71adf
feat: add -n short flag for --hostname on route policy commands
rkoster 0d8afe7
refactor: extract resolveOrgGUID/resolveSpaceGUID to eliminate duplic…
rkoster f73911a
refactor: convert source flags test to package v7_test with v7fakes
rkoster cb0db1b
perf: use ?include=source to resolve policy source names in one API call
rkoster 1ee6df8
refactor: filter routes slice before map, pre-populate domain cache, …
rkoster b8a3568
feat: register PATCH /v3/route_policies/:guid in CAPI metadata client
rkoster c727417
feat: add RoutePolicyAmbiguityError for route-policy label disambigua…
rkoster 557a1a8
feat: implement GetRoutePolicyLabels and UpdateRoutePolicyLabels acto…
rkoster fd5563e
feat: add route-policy methods to Actor/SetLabelActor interfaces, reg…
rkoster a1224ca
feat: add route-policy support to labels command and label updater
rkoster e7fee02
feat: add route-policy support to cf labels command
rkoster 396be1e
feat: add --source flag to set-label and unset-label commands
rkoster 49d6eed
fix: refactor testForResourceType helper to take explicit plural URI …
rkoster 467dd5c
fix: remove orphaned comment fragment in route_policy_source_flags_te…
rkoster a5d7829
test: document that route-policy ResourceName is passed as-is to labe…
rkoster e74021d
test: document that route-policy ResourceName is passed as-is to labe…
rkoster 6deeb07
fix: remove duplicate RunSpecs in route_policy_resource_test.go
rkoster 4ba1b4f
refactor: move resolveRoutePolicyGUID to route_policy.go
rkoster 37374a1
refactor: collapse resolveSource into a single org->space->app cascade
rkoster dbccb8c
fix: list route-policy in set-label and unset-label resource help
rkoster b4fcb44
feat: add -p short flag for --path on add/remove-route-policy
rkoster 4a2beeb
Merge branch 'main' into enhance-add-access-rule-ux
anujc25 bf74b55
Fix create-private-domain integration test SEE ALSO expectation
rkoster 1dda5f2
Merge branch 'main' into enhance-add-access-rule-ux
rkoster 60b892f
Set MinVersionRoutePolicies to the released CAPI version 3.224.0
rkoster 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
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 |
|---|---|---|
|
|
@@ -26,6 +26,7 @@ _testmain.go | |
| # Built binaries | ||
| *.exe | ||
| /cli | ||
| /cf/cli | ||
|
|
||
| out/ | ||
| release/* | ||
|
|
||
13 changes: 13 additions & 0 deletions
13
actor/actionerror/domain_not_enforcing_route_policies_error.go
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,13 @@ | ||
| package actionerror | ||
|
|
||
| import "fmt" | ||
|
|
||
| // DomainNotEnforcingRoutePoliciesError is returned when a user attempts to | ||
| // add a route policy to a domain that does not have enforce_route_policies enabled. | ||
| type DomainNotEnforcingRoutePoliciesError struct { | ||
| Name string | ||
| } | ||
|
|
||
| func (e DomainNotEnforcingRoutePoliciesError) Error() string { | ||
| return fmt.Sprintf("Domain '%s' does not have route policy enforcement enabled.", e.Name) | ||
| } |
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,17 @@ | ||
| package actionerror | ||
|
|
||
| import "fmt" | ||
|
|
||
| // RoutePolicyAmbiguityError is returned when a route has multiple policies | ||
| // and no --source flag was given to disambiguate. | ||
| type RoutePolicyAmbiguityError struct { | ||
| RouteURL string | ||
| Count int | ||
| } | ||
|
|
||
| func (e RoutePolicyAmbiguityError) Error() string { | ||
| return fmt.Sprintf( | ||
| "Route '%s' has %d policies. Specify one with --source.", | ||
| e.RouteURL, e.Count, | ||
| ) | ||
| } |
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,11 @@ | ||
| package actionerror | ||
|
|
||
| import "fmt" | ||
|
|
||
| type RoutePolicyNotFoundError struct { | ||
| Source string | ||
| } | ||
|
|
||
| func (e RoutePolicyNotFoundError) Error() string { | ||
| return fmt.Sprintf("Route policy with source '%s' not found.", e.Source) | ||
| } |
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
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.