Skip to content

Return non-error results for TrustBundleList fetching when peering is disabled#13986

Closed
mkeeler wants to merge 1 commit intomainfrom
mkeeler/mgw-peering-disabled
Closed

Return non-error results for TrustBundleList fetching when peering is disabled#13986
mkeeler wants to merge 1 commit intomainfrom
mkeeler/mgw-peering-disabled

Conversation

@mkeeler
Copy link
Copy Markdown
Member

@mkeeler mkeeler commented Aug 1, 2022

Description

When peering is disabled the gRPC endpoints return FailedPrecondition errors. This commit modifies the TrustBundleList cache-type to handle that error and synthesize and empty response.

This is necessary so that mesh gateway configuration can proceed on client agents when peering is disabled.

Testing & Reproduction steps

  • You could modify some of the envoy integration tests for gateways to have a config that disables peering and then verify the integ tests work. I did this locally and things worked. peering: default to false #13963 is disabling peering by default which is what surfaced this bug.

PR Checklist

  • updated test coverage
  • external facing docs updated
  • not a security concern

… disabled

When peering is disabled the gRPC endpoints return FailedPrecondition errors. This commit modifies the TrustBundleList cache-type to handle that error and synthesize and empty response.

This is necessary so that mesh gateway configuration can proceed on client agents when peering is disabled.
@mkeeler mkeeler requested a review from freddygv August 1, 2022 18:57
@mkeeler mkeeler added pr/no-changelog PR does not need a corresponding .changelog entry backport/1.13 labels Aug 1, 2022
@mkeeler mkeeler mentioned this pull request Aug 1, 2022
3 tasks
@mkeeler mkeeler closed this Aug 1, 2022
@mkeeler mkeeler deleted the mkeeler/mgw-peering-disabled branch December 8, 2023 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr/no-changelog PR does not need a corresponding .changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant