open-consul/agent/proxycfg-glue
Freddy e96c0e1dad
Fixup authz for data imported from peers (#15347)
There are a few changes that needed to be made to to handle authorizing
reads for imported data:

- If the data was imported from a peer we should not attempt to read the
  data using the traditional authz rules. This is because the name of
  services/nodes in a peer cluster are not equivalent to those of the
  importing cluster.

- If the data was imported from a peer we need to check whether the
  token corresponds to a service, meaning that it has service:write
  permissions, or to a local read only token that can read all
  nodes/services in a namespace.

This required changes at the policyAuthorizer level, since that is the
only view available to OSS Consul, and at the enterprise
partition/namespace level.
2022-11-14 11:36:27 -07:00
..
config_entry.go proxycfg: watch service-defaults config entries (#15025) 2022-10-24 12:50:28 -06:00
config_entry_test.go
discovery_chain.go
discovery_chain_test.go
exported_peered_services.go Fixup authz for data imported from peers (#15347) 2022-11-14 11:36:27 -07:00
exported_peered_services_test.go Prevent consul peer-exports by discovery chain. 2022-10-13 12:45:09 -05:00
federation_state_list_mesh_gateways.go
federation_state_list_mesh_gateways_test.go
gateway_services.go
gateway_services_test.go
glue.go Prevent consul peer-exports by discovery chain. 2022-10-13 12:45:09 -05:00
health.go
health_test.go
helpers_test.go
intention_upstreams.go proxycfg-glue: server-local implementation of IntentionUpstreamsDestination 2022-09-06 23:27:25 +01:00
intention_upstreams_test.go
intentions.go
intentions_ent_test.go
intentions_oss.go
intentions_test.go feat: xDS updates for peerings control plane through mesh gw 2022-10-07 08:46:42 -06:00
internal_service_dump.go Fixup authz for data imported from peers (#15347) 2022-11-14 11:36:27 -07:00
internal_service_dump_test.go proxycfg-glue: server-local implementation of InternalServiceDump 2022-09-06 23:27:25 +01:00
peered_upstreams.go
peered_upstreams_test.go
peering_list.go feat: xDS updates for peerings control plane through mesh gw 2022-10-07 08:46:42 -06:00
peering_list_test.go feat: xDS updates for peerings control plane through mesh gw 2022-10-07 08:46:42 -06:00
resolved_service_config.go proxycfg-glue: server-local implementation of ResolvedServiceConfig 2022-09-06 23:27:25 +01:00
resolved_service_config_test.go proxycfg-glue: server-local implementation of ResolvedServiceConfig 2022-09-06 23:27:25 +01:00
service_http_checks.go Service http checks data source for agentless proxies (#14924) 2022-10-12 07:49:56 -07:00
service_http_checks_test.go Service http checks data source for agentless proxies (#14924) 2022-10-12 07:49:56 -07:00
service_list.go
service_list_test.go
trust_bundle.go
trust_bundle_test.go fix: persist peering CA updates to dialing clusters (#15243) 2022-11-04 12:53:20 -04:00