Commit Graph

4703 Commits (62688107affc75861a8d2f89caca9a982523beca)

Author SHA1 Message Date
Alessandro De Blasis c0d647d11e fix(agent): removed redundant check on prev. running check
2 years ago
Chris S. Kim def529edd3 Rename test
2 years ago
Chris S. Kim 93271f649c Fix test
2 years ago
Eric Haberkorn 1099665473
Update the structs and discovery chain for service resolver redirects to cluster peers. (#14366)
2 years ago
Alessandro De Blasis f3437eaf05 Merge remote-tracking branch 'hashicorp/main' into feature/health-checks_windows_service
2 years ago
Alessandro De Blasis f634e36811 fix(OSServiceCheck): fixes following code-review
2 years ago
Chris S. Kim 4d97e2f936 Adjust metrics reporting for peering tracker
2 years ago
freddygv 650e48624d Allow terminated peerings to be deleted
2 years ago
Chris S. Kim 937a8ec742 Fix casing
2 years ago
Chris S. Kim 87962b9713 Merge branch 'main' into catalog-service-list-filter
2 years ago
Chris S. Kim e2fe8b8d65 Fix tests for enterprise
2 years ago
Chris S. Kim 1c43a1a7b4 Merge branch 'main' into NET-638-push-server-address-updates-to-the-peer
2 years ago
Chris S. Kim 6ddcc04613
Replace ring buffer with async version (#14314)
2 years ago
alex 30ff2e9a35
peering: add peer health metric (#14004)
2 years ago
Chris S. Kim 181063cd23 Exit loop when context is cancelled
2 years ago
cskh 41aea65214
Fix: the inboundconnection limit filter should be placed in front of http co… (#14325)
2 years ago
Chris S. Kim 8c94d1a80c Update test comment
2 years ago
Chris S. Kim 5f2959329f Add check for zero-length server addresses
2 years ago
skpratt 919da33331
no-op: refactor usagemetrics tests for clarity and DRY cases (#14313)
2 years ago
Pablo Ruiz García 1f293e5244
Added new auto_encrypt.grpc_server_tls config option to control AutoTLS enabling of GRPC Server's TLS usage
2 years ago
Dan Upton 3b993f2da7
dataplane: update envoy bootstrap params for consul-dataplane (#14017)
2 years ago
Daniel Upton 13c04a13af proxycfg: terminate stream on irrecoverable errors
2 years ago
Chris S. Kim 81e965479b PR feedback to specify Node name in test mock
2 years ago
Eric Haberkorn 58901ad7df
Cluster peering failover disco chain changes (#14296)
2 years ago
Chris S. Kim cdc8b0634d Fix flakes
2 years ago
Chris S. Kim 03e92826aa Increase heartbeat rate to reduce test flakes
2 years ago
Chris S. Kim 06ba9775ee Remove check for ResponseNonce
2 years ago
Chris S. Kim 547fb9570e Add missing mock assertions
2 years ago
Chris S. Kim adff2eef16 Fix data race
2 years ago
cskh 060531a29a
Fix: add missing ent meta for test (#14289)
2 years ago
Chris S. Kim 4e40e1d222 Handle server addresses update as client
2 years ago
Chris S. Kim 584d3409c4 Send server addresses on update from server
2 years ago
Chris S. Kim c9d8ad3939 Add new subscription for server addresses
2 years ago
Chris S. Kim 028b87d51f Cleanup unused logger
2 years ago
Chris S. Kim df951bd601 Expose external gRPC port in autopilot
2 years ago
cskh 527ebd068a
fix: missing MaxInboundConnections field in service-defaults config entry (#14072)
2 years ago
cskh e84e4b8868
Fix: upgrade pkg imdario/merg to prevent merge config panic (#14237)
2 years ago
James Hartig f92883bbce Use the maximum jitter when calculating the timeout
2 years ago
Eric Haberkorn 1a73b0ca20
Add `Targets` field to service resolver failovers. (#14162)
2 years ago
Alessandro De Blasis 5dee555888 Merge remote-tracking branch 'hashicorp/main' into feature/health-checks_windows_service
2 years ago
Alessandro De Blasis ab611eabc3 Merge remote-tracking branch 'hashicorp/main' into feature/health-checks_windows_service
2 years ago
cskh d46b515b64
fix: missing segment and partition (#14194)
2 years ago
Eric Haberkorn ebd5513d4b
Refactor failover code to use Envoy's aggregate clusters (#14178)
2 years ago
cskh 81931e52c3
feat(telemetry): add labels to serf and memberlist metrics (#14161)
2 years ago
Chris S. Kim 4c928cb2f7
Handle breaking change for ServiceVirtualIP restore (#14149)
2 years ago
Chris S. Kim 3926009405 Add test to verify forwarding
2 years ago
Chris S. Kim 1ef22360c3 Register peerStreamServer internally to enable RPC forwarding
2 years ago
Chris S. Kim de73171202 Handle wrapped errors in isFailedPreconditionErr
2 years ago
Daniel Kimsey 3c4fa9b468 Add support for filtering the 'List Services' API
2 years ago
cskh 11e7a0d547
fix: shadowed err in retryJoin() (#14112)
2 years ago
skpratt 79c23a7cd2
Merge pull request #14056 from hashicorp/proxy-register-port-race
2 years ago
skpratt aa77559819 Merge branch 'main' into proxy-register-port-race
2 years ago
Chris S. Kim e3046120b3 Close active listeners on error
2 years ago
Chris S. Kim 6311c651de Add retry in TestAgentConnectCALeafCert_good
2 years ago
Kyle Havlovitz 6938b8c755
Merge pull request #13958 from hashicorp/gateway-wildcard-fix
2 years ago
Kyle Havlovitz fe1fcea34f Add some extra handling for destination deletes
2 years ago
freddygv d421e18172 Update snapshot test
2 years ago
freddygv 1031ffc3c7 Re-validate existing secrets at state store
2 years ago
freddygv 0ea4bfae94 Test fixes
2 years ago
freddygv c04515a844 Use proto message for each secrets write op
2 years ago
Kyle Havlovitz 6580566c3b Update ingress/terminating wildcard logic and handle destinations
2 years ago
freddygv 8067890787 Inherit active secret when exchanging
2 years ago
freddygv 60d6e28c97 Pass explicit signal with op for secrets write
2 years ago
freddygv 9ca687bc7c Avoid deleting peering secret UUIDs at dialers
2 years ago
skpratt 58eed6b049
Merge pull request #13906 from skpratt/validate-port-agent-split
2 years ago
Dhia Ayachi 7154367892
add token to the request when creating a cacheIntentions query (#14005)
2 years ago
Kyle Havlovitz 499211f907 Fix wildcard picking up services it shouldn't for ingress/terminating gateways
2 years ago
Daniel Upton 6452118c15 proxycfg-sources: fix hot loop when service not found in catalog
2 years ago
Freddy 42996411cc
Various peering fixes (#13979)
2 years ago
DanStough 169ff71132 fix: ipv4 destination dns resolution
2 years ago
Luke Kysow 988e1fd35d
peering: default to false (#13963)
2 years ago
Freddy dacf703d20
Merge branch 'main' into fix-kv_entries-metric
2 years ago
Freddy 72b6d69652
Merge pull request #13499 from maxb/delete-unused-metric
2 years ago
Dhia Ayachi 6fd65a4a45
Tgtwy egress HTTP support (#13953)
2 years ago
Matt Keeler f74d0cef7a
Implement/Utilize secrets for Peering Replication Stream (#13977)
2 years ago
alex a45bb1f06b
block PeerName register requests (#13887)
2 years ago
Luke Kysow 95096e2c03
peering: retry establishing connection more quickly on certain errors (#13938)
2 years ago
Sarah Pratt 10a4999a87 Separate port and socket path requirement in case of local agent assignment
2 years ago
alex 92c615c35f
Merge pull request #13952 from hashicorp/sync-more-acl
2 years ago
Dhia Ayachi 256694b603
inject gateway addons to destination clusters (#13951)
2 years ago
acpana eae4e71492
sync more acl enforcement
2 years ago
alex 41f3343eac
Merge pull request #13929 from hashicorp/fix-validation
2 years ago
Sarah Pratt a3ef6f016e refactor sidecare_service method into parts
2 years ago
Ashwin Venkatesh eef9edaed9
Add peer counts to emitted metrics. (#13930)
2 years ago
Luke Kysow 465a9801e1
Merge pull request #13924 from hashicorp/lkysow/util-metric-peering
2 years ago
acpana 6033584349
use EqualPartitions
2 years ago
acpana 0351ca5136
better fix
2 years ago
acpana 8b2ef80336
sync w ent
2 years ago
Chris S. Kim 0999e05a7d Reduce arm64 flakes for TestConnectCA_ConfigurationSet_ChangeKeyConfig_Primary
2 years ago
Chris S. Kim 8ead1caf53 Retry checks for virtual IP metadata
2 years ago
Chris S. Kim 62ed0250c3 Sort slice of ServiceNames deterministically
2 years ago
Sarah Pratt f520f6dd0f Separate port and socket path requirement in case of local agent assignment
2 years ago
Luke Kysow 740d54e730 peering: don't track imported services/nodes in usage
2 years ago
cskh 4e292b7b72
chore: clarify the error message: service.service must not be empty (#13907)
2 years ago
cskh 59e81a728e
chore: removed unused method AddService (#13905)
2 years ago
Luke Kysow 021b00e321 Remove duplicate comment
2 years ago
alex 437a28d18a
peering: prevent peering in same partition (#13851)
2 years ago
Nitya Dhanushkodi 27bd895ac8
peering: remove validation that forces peering token server addresses to be an IP, allow hostname based addresses (#13874)
2 years ago
Luke Kysow 8c5b70d227
Rename receive to recv in tracker (#13896)
2 years ago
Luke Kysow 3530d3782d
peering: read endpoints can now return failing status (#13849)
2 years ago
Kyle Havlovitz 93de25f87c
Merge pull request #13872 from hashicorp/remove-upstream-log
2 years ago
Chris S. Kim 73a84f256f
Preserve PeeringState on upsert (#13666)
2 years ago
Chris S. Kim 8ed49ea4d0
Update envoy metrics label extraction for peered clusters and listeners (#13818)
2 years ago
DanStough 2da8949d78 feat: convert destination address to slice
2 years ago
Freddy f03cca7576
[OSS] Add ACL enforcement to peering endpoints (#13878)
2 years ago
Matt Keeler 58e4d8235b
Enable/Disable Peering Support in the UI (#13816)
2 years ago
freddygv b544ce6485 Add ACL enforcement to peering endpoints
2 years ago
Kyle Havlovitz 016f963e7e Remove excess debug log from ingress upstream shutdown
2 years ago
alex 279d458e6e
peering: use ShouldDial to validate peer role (#13823)
2 years ago
Luke Kysow a1e6d69454
peering: add config to enable/disable peering (#13867)
2 years ago
Kyle Havlovitz 0786517b56
Merge pull request #13847 from hashicorp/gateway-goroutine-leak
2 years ago
Freddy f99df57840
[OSS] Add new peering ACL rule (#13848)
2 years ago
alex 927cee692b
peering: emit exported services count metric (#13811)
2 years ago
Daniel Upton a8df87f574 proxycfg-glue: server-local implementation of `ExportedPeeredServices`
2 years ago
Eric Haberkorn 501089292e
Add Cluster Peering Failover Support to Prepared Queries (#13835)
2 years ago
Nitya Dhanushkodi f47319b7c6
update generate token endpoint to take external addresses (#13844)
2 years ago
acpana 12b773ab02
Rename peering internal to ~
2 years ago
Luke Kysow 0c87be0845
peering: Add heartbeating to peering streams (#13806)
2 years ago
Daniel Upton 3655802fdc proxycfg-glue: server-local implementation of `PeeredUpstreams`
2 years ago
Luke Kysow c411e6b326
Add send mutex to protect against concurrent sends (#13805)
2 years ago
Kyle Havlovitz 0be7d923dc Cancel upstream watches when the discovery chain has been removed
2 years ago
Kyle Havlovitz 31318d7049 Fix duplicate Notify calls for discovery chains in ingress gateways
2 years ago
Evan Culver 4116537b83
connect: Add support for Envoy 1.23, remove 1.19 (#13807)
2 years ago
Paul Glass 77afe0e76e
Extract AWS auth implementation out of Consul (#13760)
2 years ago
Chris S. Kim 495936300e
Make envoy resources for inferred peered upstreams (#13758)
2 years ago
alex de5a991d8c
peering: refactor reconcile, cleanup (#13795)
2 years ago
Luke Kysow e8d965e56f
peerstream: set keepalive enforcement to 15s (#13796)
2 years ago
alex a9ae2ff4fa
peering: track exported services (#13784)
2 years ago
R.B. Boyer cd513aeead
peerstream: require a resource subscription to receive updates of that type (#13767)
2 years ago
R.B. Boyer c737301093
peerstream: fix test assertions (#13780)
2 years ago
Luke Kysow 46381b1a7f
Add docs for peerStreamServer vs peeringServer. (#13781)
2 years ago
Luke Kysow ca3d7c964c
peerstream: dialer should reconnect when stream closes (#13745)
2 years ago
R.B. Boyer bb4d4040fb
server: ensure peer replication can successfully use TLS over external gRPC (#13733)
2 years ago
alex adb5ffa1a6
peering: track imported services (#13718)
2 years ago
Matt Keeler 257f88d4df
Use Node Name for peering healthSnapshot instead of ID (#13773)
2 years ago
Matt Keeler 05b5e7e2ca
Enable partition support for peering establishment (#13772)
2 years ago
Dan Stough 49f3dadb8f feat: connect proxy xDS for destinations
2 years ago
Daniel Upton 3d74efa8ad proxycfg-glue: server-local implementation of `FederationStateListMeshGateways`
2 years ago
Daniel Upton ccc672013e proxycfg-glue: server-local implementation of `GatewayServices`
2 years ago
Daniel Upton 15a319dbfe proxycfg-glue: server-local implementation of `TrustBundle` and `TrustBundleList`
2 years ago
Daniel Upton 673d02d30f proxycfg-glue: server-local implementation of the `Health` interface
2 years ago
Daniel Upton 3c533ceea8 proxycfg-glue: server-local implementation of `ServiceList`
2 years ago
Daniel Upton fbf88d3b19 proxycfg-glue: server-local compiled discovery chain data source
2 years ago
Chris S. Kim f56810132f Check if an upstream is implicit from either intentions or peered services
2 years ago
Chris S. Kim 02cff2394d Use new maps for proxycfg peered data
2 years ago
Chris S. Kim 7f32cba735 Add new watch.Map type to refactor proxycfg
2 years ago
Chris S. Kim b4ffa9ae0c Scrub VirtualIPs before exporting
2 years ago
Kyle Havlovitz 9097e2b0f0
Merge pull request #13699 from hashicorp/tgate-http2-upstream
2 years ago
Dan Upton b9e525d689
grpc: rename public/private directories to external/internal (#13721)
2 years ago
R.B. Boyer 30fffd0c90
peerstream: some cosmetic refactors to make this easier to follow (#13732)
2 years ago
Kyle Havlovitz 7d0c692374 Use protocol from resolved config entry, not gateway service
2 years ago
Kyle Havlovitz 7162e3bde2 Enable http2 options for grpc protocol
2 years ago
R.B. Boyer c5c216008d
peering: always send the mesh gateway SpiffeID even for tcp services (#13728)
2 years ago
R.B. Boyer f0e6e4e697
state: prohibit changing an exported tcp discovery chain in a way that would break SAN validation (#13727)
2 years ago
R.B. Boyer 2317f37b4d
state: prohibit exported discovery chains to have cross-datacenter or cross-partition references (#13726)
2 years ago
Chris S. Kim a6634db4a5
Return error if ServerAddresses is empty (#13714)
2 years ago
Kyle Havlovitz 439eccdd80 Respect http2 protocol for upstreams of terminating gateways
2 years ago
R.B. Boyer af04851637
peering: move peer replication to the external gRPC port (#13698)
2 years ago
R.B. Boyer ea58f235f5
server: broadcast the public grpc port using lan serf and update the consul service in the catalog with the same data (#13687)
2 years ago
Freddy 3542138e4d
Parse peer name for virtual IP DNS queries (#13602)
2 years ago
R.B. Boyer 2a945facec
test: update mockery use to put mocks into test files (#13656)
2 years ago
Chris S. Kim f07132dacc
Revise possible states for a peering. (#13661)
2 years ago
Daniel Upton 45886848b4 proxycfg: server-local intention upstreams data source
2 years ago
Daniel Upton 37ccbd2826 proxycfg: server-local intentions data source
2 years ago
Daniel Upton 653b8c4f9d proxycfg: server-local config entry data sources
2 years ago
alex cd9ca4290a
peering: add imported/exported counts to peering (#13644)
2 years ago
Chris S. Kim b186731a2e
Fix ENT drift in files (#13647)
2 years ago
Chris S. Kim d8b7940e40
Add internal endpoint to fetch peered upstream candidates from VirtualIP table (#13642)
2 years ago
Eric Haberkorn 653cb42944
Fix spelling mistake in serverless patcher (#13607)
2 years ago
alex 07bc22e405
no 1.9 style metrics (#13532)
2 years ago
alex beb8b03e8a
peering: reconcile/ hint active state for list (#13619)
2 years ago
R.B. Boyer 31b95c747b
xds: modify rbac rules to use the XFCC header for peered L7 enforcement (#13629)
2 years ago
R.B. Boyer de0f9ac519
xds: have mesh gateways forward peered SpiffeIDs using the XFCC header (#13625)
2 years ago
R.B. Boyer 1a9c86ea8f
xds: mesh gateways now correctly load up peer-exported discovery chains using L7 protocols (#13624)
2 years ago
R.B. Boyer 0fa828db76
peering: replicate all SpiffeID values necessary for the importing side to do SAN validation (#13612)
2 years ago
Max Bowsher ef4b9e541f
Merge branch 'main' into fix-kv_entries-metric
2 years ago
alex 53f0cf5835
peering, internal: support UIServices, UINodes, UINodeInfo (#13577)
2 years ago
Chris S. Kim 2e4cb6f77d
Add new index for PeeredServiceName and ServiceVirtualIP (#13582)
2 years ago
alex 20ecf0febd
Merge pull request #13570 from hashicorp/acpance/peering-oss-intentions
2 years ago
Will Jordan 34ecbc1d71
Add per-node max indexes (#12399)
2 years ago
Chris S. Kim ba89a7d9b0
Make memdb indexers generic (#13558)
2 years ago
Matt Keeler 7a4d13b0b2
Port over the index 0 -> 1 code that lived in the old rpc setQueryMeta function. (#13561)
2 years ago
acpana 99c2e11328
oss: peering, http: get peer service intentions (#2098)
2 years ago
R.B. Boyer e8ea3d7c3b
state: peering ID assignment cannot happen inside of the state store (#13525)
2 years ago
Matt Keeler cb01702cd2
Add server local blocking queries and watches (#13438)
2 years ago
Chris S. Kim fb5eb20563
Pass trust domain to RBAC to validate and fix use of wrong peer trust bundles (#13508)
2 years ago
Max Bowsher 7b97b8abd2 Delete definition of metric `consul.acl.blocked.node.registration`
2 years ago
Max Bowsher 7c19c701e1 Fix incorrect name and doc for kv_entries metric
2 years ago
Dan Upton e00e3a0bc3
Move ACLResolveResult into acl/resolver package (#13467)
2 years ago
DanStough 4b402e3119 feat: tgtwy xDS generation for destinations
2 years ago
alex bd4ddb3720
peering: block Intention.Apply ops (#13451)
2 years ago
alex b3e99784a6
peering, state: account for peer intentions (#13443)
2 years ago
R.B. Boyer da8cea58c9
xds: begin refactor to always pass test snapshots through all xDS types (#13461)
2 years ago
R.B. Boyer 201d1458c3
xds: mesh gateways now have their own leaf certificate when involved in a peering (#13460)
2 years ago
Riddhi Shah 411edc876b
[OSS] Support merge-central-config option in node services list API (#13450)
2 years ago
Evan Culver 7f8c650d61
connect: Use Envoy 1.22.2 instead of 1.22.1 (#13444)
2 years ago
freddygv f3843809da Avoid deleting peerings marked as terminated.
2 years ago
freddygv 6453375ab2 Add leader routine to clean up peerings
2 years ago
Evan Culver ba6136eb42
connect: Update Envoy support matrix to latest patch releases (#13431)
2 years ago
alex a0a49ce2a6
peering: intentions list test (#13435)
2 years ago