Commit Graph

4737 Commits (dbd8fa042ba5db19c19a0af93e54d45e33142c69)

Author SHA1 Message Date
Daniel Upton a31738f76f proxycfg-glue: server-local implementation of ResolvedServiceConfig
2 years ago
Derek Menteer bf769daae4 Merge branch 'main' of github.com:hashicorp/consul into derekm/split-grpc-ports
2 years ago
Derek Menteer 02ae66bda8 Add kv txn get-not-exists operation.
2 years ago
Chris S. Kim 953808e899 PR feedback on terminated state checking
2 years ago
Chris S. Kim ddb9375cb6 Add testcase for parsing grpc_port
2 years ago
Kyle Havlovitz d97ccccdd5
Merge pull request #14429 from hashicorp/ca-prune-intermediates
2 years ago
cskh 0f7d4efac3
fix(txn api): missing proxy config in registering proxy service (#14471)
2 years ago
Chris S. Kim ec36755cc0 Properly assert for ServerAddresses replication request
2 years ago
Chris S. Kim d1d9dbff8e Fix terminate not returning early
2 years ago
Derek Menteer f64771c707 Address PR comments.
2 years ago
Kyle Havlovitz 0c2fb7252d Prune intermediates before appending new one
2 years ago
Luke Kysow 81d7cc41dc
Use proxy address for default check (#14433)
2 years ago
malizz f1054dada9
fix TestProxyConfigEntry (#14435)
2 years ago
malizz b3ac8f48ca
Add additional parameters to envoy passive health check config (#14238)
2 years ago
Chris S. Kim f2b147e575 Add Internal.ServiceDump support for querying by PeerName
2 years ago
Chris S. Kim e62f830fa8
Merge pull request #13998 from jorgemarey/f-new-tracing-envoy
2 years ago
Derek Menteer cf7f24a6ec Change serf-tag references to field references.
2 years ago
malizz a80e0bcd00
validate args before deleting proxy defaults (#14290)
2 years ago
Kyle Havlovitz 113454645d Prune old expired intermediate certs when appending a new one
2 years ago
Alessandro De Blasis 60c7c831c6 Merge remote-tracking branch 'hashicorp/main' into feature/health-checks_windows_service
2 years ago
Eric Haberkorn 3726a0ab7a
Finish up cluster peering failover (#14396)
2 years ago
Chris S. Kim 560d410c6d Merge branch 'main' into NET-638-push-server-address-updates-to-the-peer
2 years ago
Jorge Marey 3f3bb8831e Fix typos. Add test. Add documentation
2 years ago
Jorge Marey ed7b34128f Add new tracing configuration
2 years ago
Freddy 97d1db759f
Merge pull request #13496 from maxb/fix-kv_entries-metric
2 years ago
Freddy 829a2a8722
Merge pull request #14364 from hashicorp/peering/term-delete
2 years ago
Max Bowsher decc9231ee Merge branch 'main' into fix-kv_entries-metric
2 years ago
Chris S. Kim 5010fa5c03
Merge pull request #14371 from hashicorp/kisunji/peering-metrics-update
2 years ago
Chris S. Kim 74ddf040dd Add heartbeat timeout grace period when accounting for peering health
2 years ago
Derek Menteer 0ceec9017b Expose `grpc_tls` via serf for cluster peering.
2 years ago
Derek Menteer 1255a8a20d Add separate grpc_tls port.
2 years ago
freddygv 310608fb19 Add validation to prevent switching dialing mode
2 years ago
Eric Haberkorn 72f90754ae
Update max_ejection_percent on outlier detection for peered clusters to 100% (#14373)
2 years ago
Alessandro De Blasis 26cc56bc68 fix(agent): removed redundant code in docker check as well
2 years ago
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