[NET-9376] Fix Issue with multiple APIGW's roles/policy #4001
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.
Changes proposed in this PR
How I've tested this PR
kubectl
on your systemimageK8s
field in theconsul_values.yaml
file to behashicorp/consul-k8s-control-plane:1.3
start.sh
scriptapi-gateway-2
is in an error statehttps://localhost:8501
(you'll need to allow the insecure traffic to bypass the warning)CONSUL_HTTP_TOKEN
to your clipboard and use that to login to the UIroles
tab and view the role for theapi-gateway-2
and see the policy it is using is theapi-gateway-token-policy
which grants write access to the first gateway createdmake docker-dev
imageK8s
field to beconsul-k8s-control-plane:local
helm upgrade --install consul hashicorp/consul -f ./consul/consul_values.yaml -n consul --create-namespace --wait
kubectl port-forward service/consul-consul-ui 8501:443 -n consul &
in your terminal to re-establish the port-forward to the consul uiapi-gateway-2
then you should see it is using the specific policy for this gateway that grants it write access to itselfHow I expect reviewers to test this PR
read the code
run the above steps
Checklist