proxy: stub the VPC config cache and invalidation code #10073
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.
This commit defines cache entries for projects:
the two "block public or VPC connections" booleans. This is implemented (for now) as a pair of
bools
because they are always delivered together from the project settings in cplane. The corresponding fields in the/get_endpoint_access_control
response areblock_public_connections
andblock_vpc_connections
.We will use the redis broadcast channel
/block_public_or_vpc_access_updated
for this. It will be notified when the project settings are changed in the control plane.the VPC endpoint ID list. The corresponding field in the
/get_endpoint_access_control
response isallowed_vpc_endpoint_ids
.We will use the 2 redis broadcast channels
/allowed_vpc_endpoint_ids_updated_for_projects
and/allowed_vpc_endpoint_ids_updated_for_org
for this. It will benotified when the VPC config service detects a configuration
change for the project or all projects under an org.
Informs https://github.com/neondatabase/cloud/issues/21426.