Commit Graph

4951 Commits (ce6e278d9bb316cc0b41f17504ec605220a38387)

Author SHA1 Message Date
Derek Menteer 74b11c416c
Fix incorrect protocol check on discovery chains with peer targets. (#15833)
2 years ago
Semir Patel 799b34f1a9
Map net/rpc endpoints to a read/write/exempt op for rate-limiting (#15825)
2 years ago
Nitya Dhanushkodi d382ca0aec
extensions: refactor serverless plugin to use extensions from config entry fields (#15817)
2 years ago
Chris S. Kim d44b23cb31
Break instead (#15844)
2 years ago
Chris S. Kim 831680d2c5
Add custom balancer to always remove subConns (#15701)
2 years ago
Andrew Stucki ab199a11b0
Add async reconciliation controller subpackage (#15534)
2 years ago
Dhia Ayachi f04f88e4b9
add missing code and fix enterprise specific code (#15375)
2 years ago
Dhia Ayachi 2d902b26ac
add log-drop package (#15670)
2 years ago
Paul Glass 619032cfcd
Deprecate -join and -join-wan (#15598)
2 years ago
Dhia Ayachi 6468e3e09c
Server side rate limiter: handle the race condition for limiters tree write in multilimiter (#15767)
2 years ago
Semir Patel bafa5c7156
Pass remote addr of incoming HTTP requests through to RPC(..) calls (#15700)
2 years ago
John Murret e027c94b52
adding config for request_limits (#15531)
2 years ago
Dan Stough 233dbcb67f
feat: add access logging API to proxy defaults (#15780)
2 years ago
cskh 04bf24c8c1
feat(ingress-gateway): support outlier detection of upstream service for ingress gateway (#15614)
2 years ago
Derek Menteer e87d35e313
Fix DialedDirectly configuration for Consul dataplane. (#15760)
2 years ago
Dan Upton c692802dec
grpc: add rate-limiting middleware (#15550)
2 years ago
Dan Upton eef38c2199
server: add placeholder glue for rate limit handler (#15539)
2 years ago
John Murret cd53120cd7
agent: Fix assignment of error when auto-reloading cert and key file changes. (#15769)
2 years ago
R.B. Boyer 4a32070210
test: remove variable shadowing in TestDNS_ServiceLookup_ARecordLimits (#15740)
2 years ago
Eric Haberkorn 4268c1c25c
Remove the `connect.enable_serverless_plugin` agent configuration option (#15710)
2 years ago
Dhia Ayachi 81e40c1fac
add multilimiter and tests (#15467)
2 years ago
cskh 3df68751f5
Flakiness test: case-cfg-splitter-peering-ingress-gateways (#15707)
2 years ago
Derek Menteer 97ec5279aa
Fix local mesh gateway with peering discovery chains. (#15690)
2 years ago
R.B. Boyer 5af94fb2a0
connect: use -dev-no-store-token for test vaults to reduce source of flakes (#15691)
2 years ago
R.B. Boyer 900584ca82
connect: ensure all vault connect CA tests use limited privilege tokens (#15669)
2 years ago
R.B. Boyer 4940a728ab
Detect Vault 1.11+ import in secondary datacenters and update default issuer (#15661)
2 years ago
Chris S. Kim c046d1a4d8
Add warn log when all ACL policies are filtered out (#15632)
2 years ago
cskh 36f05bc8fb
integ-test: test consul upgrade from the snapshot of a running cluster (#15595)
2 years ago
R.B. Boyer 11a277f372
peering: better represent non-passing states during peer check flattening (#15615)
2 years ago
Freddy 941f6da202
Remove log line about server mgmt token init (#15610)
2 years ago
James Oulman 7e78fb7818
Add support for configuring Envoys route idle_timeout (#14340)
2 years ago
Derek Menteer 95dc0c7b30
Add peering `.service` and `.node` DNS lookups. (#15596)
2 years ago
cskh 97c9432843
fix(peering): increase the gRPC limit to 8MB (#15503)
2 years ago
Chris S. Kim c9ec9fa320
Fix Vault managed intermediate PKI bug (#15525)
2 years ago
Chris S. Kim 27c53f6c82
Use backport-compatible assertion (#15546)
2 years ago
Chris S. Kim 386da5439a
Use rpcHoldTimeout to calculate blocking timeout (#15541)
2 years ago
Jared Kirschner 3e7e8ae9c5
Support RFC 2782 for prepared query DNS lookups (#14465)
2 years ago
Alexander Scheel 2b90307f6d
Detect Vault 1.11+ import, update default issuer (#15253)
2 years ago
cskh 435e16ecda
fix: clarifying error message when acquiring a lock in remote dc (#15394)
2 years ago
Kyle Havlovitz f4c3e54b11
auto-config: relax node name validation for JWT authorization (#15370)
2 years ago
Dhia Ayachi 225ae55e83
Leadership transfer cmd (#14132)
2 years ago
Freddy 706866fa00
Ensure that NodeDump imported nodes are filtered (#15356)
2 years ago
Freddy c58f86a00f
Fixup authz for data imported from peers (#15347)
2 years ago
Kyle Havlovitz dde5c524ad
connect: strip port from DNS SANs for ingress gateway leaf cert (#15320)
2 years ago
Derek Menteer 931cec42b3
Prevent serving TLS via ports.grpc (#15339)
2 years ago
Dan Stough 626249fbf5
[OSS] fix: wait and try longer to peer through mesh gw (#15328)
2 years ago
Kyle Schochenmaier bf0f61a878
removes ioutil usage everywhere which was deprecated in go1.16 (#15297)
2 years ago
malizz b51f0e25e9
update ACLs for cluster peering (#15317)
2 years ago
malizz b9a9e1219c
update config defaults, add docs (#15302)
2 years ago
Eric Haberkorn c340922991
Log Warnings When Peering With Mesh Gateway Mode None (#15304)
2 years ago
Derek Menteer 418bd62c44
Fix mesh gateway configuration with proxy-defaults (#15186)
2 years ago
Dan Upton 7b2d08d461
chore: remove unused argument from MergeNodeServiceWithCentralConfig (#15024)
2 years ago
Derek Menteer b64972d486
Bring back parameter ServerExternalAddresses in GenerateToken endpoint (#15267)
2 years ago
cskh a3f57cc5e8
fix(mesh-gateway): remove deregistered service from mesh gateway (#15272)
2 years ago
Freddy 7f5f7e9cf9
Avoid blocking child type updates on parent ack (#15083)
2 years ago
Derek Menteer c064ddf606
Backport test fix from ent. (#15279)
2 years ago
Chris S. Kim 985a4ee1b1
Update hcp-scada-provider to fix diamond dependency problem with go-msgpack (#15185)
2 years ago
Eric Haberkorn 1804b58799
Fix a bug in mesh gateway proxycfg where ACL tokens aren't passed. (#15273)
2 years ago
Dan Stough 553312ef61
fix: persist peering CA updates to dialing clusters (#15243)
2 years ago
Derek Menteer 18d6c338f4
Backport tests from ent. (#15260)
2 years ago
Derek Menteer 0834fe349b
Backport test from ENT: "Fix missing test fields" (#15258)
2 years ago
Derek Menteer f4cb2f82bf
Backport various fixes from ENT. (#15254)
2 years ago
malizz 617a5f2dc2
convert stream status time fields to pointers (#15252)
2 years ago
sarahalsmiller 436160e155
Added check for empty peeringsni in restrictPeeringEndpoints (#15239)
2 years ago
Derek Menteer bd1019fadb
Prevent peering acceptor from subscribing to addr updates. (#15214)
2 years ago
Dan Stough 05e93f7569
test: refactor testcontainers and add peering integ tests (#15084)
2 years ago
Derek Menteer fa5d87c116 Decrease retry time for failed peering connections.
2 years ago
R.B. Boyer 97b9fcbf48
test: fix flaky TestSubscribeBackend_IntegrationWithServer_DeliversAllMessages test (#15195)
2 years ago
Evan Culver 62d4517f9e
connect: Add Envoy 1.24 to integration tests, remove Envoy 1.20 (#15093)
2 years ago
Derek Menteer 693c8a4706 Allow peering endpoints to bypass verify_incoming.
2 years ago
Derek Menteer 2d4b62be3c Add tests.
2 years ago
Derek Menteer 1483c94531 Fix peered service protocols using proxy-defaults.
2 years ago
Eric Haberkorn cf50bdbe20
Fix peering metrics bug (#15178)
2 years ago
Chris S. Kim 0e176dd6aa
Allow consul debug on non-ACL consul servers (#15155)
2 years ago
cskh a9427e1310
fix(peering): nil pointer in calling handleUpdateService (#15160)
2 years ago
Eric Haberkorn 1bdad89026
fix bug that resulted in generating Envoy configs that use CDS with an EDS configuration (#15140)
2 years ago
Luke Kysow d3aa2bd9c5
ingress-gateways: don't log error when registering gateway (#15001)
2 years ago
Luke Kysow 9999672fd7
autoencrypt: helpful error for clients with wrong dc (#14832)
2 years ago
R.B. Boyer 3c44116a8f
cache: refactor agent cache fetching to prevent unnecessary fetches on error (#14956)
2 years ago
R.B. Boyer da70daba43
test: ensure that all dependencies in a test agent use the test logger (#14996)
2 years ago
Chris S. Kim 9f0ed81cfd Remove invalid 1xx HTTP codes
2 years ago
Chris S. Kim bde57c0dd0 Regenerate files according to 1.19.2 formatter
2 years ago
cskh db82ffe503
fix(peering): replicating wan address (#15108)
2 years ago
Iryna Shustava 176abb5ff2
proxycfg: watch service-defaults config entries (#15025)
2 years ago
Chris S. Kim b236e86030 Move oss-only test to its own file
2 years ago
R.B. Boyer d04cf25fa8
test: fix flaky TestHealthServiceNodes_NodeMetaFilter by waiting until the streaming subsystem has a valid grpc connection (#15019)
2 years ago
R.B. Boyer 300860412c
chore: update golangci-lint to v1.50.1 (#15022)
2 years ago
Venu Yanamandra efc813e92d
Update error message when restoring ENT snapshot in OSS (#15066)
2 years ago
freddygv d65e60de86 Return forbidden on permission denied
2 years ago
Chris S. Kim a7ea26192b Update expected encoding in test
2 years ago
freddygv 6d9be5fb15 Use plain TaggedAddressWAN
2 years ago
freddygv 8d211cc9cc Add unit test
2 years ago
cskh 058ee4fb84 fix: wan address isn't used by peering token
2 years ago
Nitya Dhanushkodi 5e156772f6
Remove ability to specify external addresses in GenerateToken endpoint (#14930)
2 years ago
Kyle Havlovitz 5c3427608b
Merge pull request #15035 from hashicorp/vault-ttl-update-warn
2 years ago
cskh d562d363fc
peering: skip registering duplicate node and check from the peer (#14994)
2 years ago
Chris S. Kim 29a297d3e9
Refactor client RPC timeouts (#14965)
2 years ago
Kyle Havlovitz d122108992 Warn instead of returning an error when intermediate mount tune permission is missing
2 years ago
R.B. Boyer 0cca4c088d
test: possibly fix flake in TestIntentionGetExact (#15021)
2 years ago
R.B. Boyer fe2d41ddad
cache: prevent goroutine leak in agent cache (#14908)
2 years ago
R.B. Boyer 02a858efa0
ca: fix a masked bug in leaf cert generation that would not be notified of root cert rotation after the first one (#15005)
2 years ago
Chris S. Kim 3d2dffff16
Merge pull request #13388 from deblasis/feature/health-checks_windows_service
2 years ago
Dan Upton f8b4b41205
proxycfg: fix goroutine leak when service is re-registered (#14988)
2 years ago
Kyle Havlovitz aaf892a383 Extend tcp keepalive settings to work for terminating gateways as well
2 years ago
Kyle Havlovitz 2c569f6b9c Update docs and add tcp_keepalive_probes setting
2 years ago
Kyle Havlovitz 2242d1ec4a Add TCP keepalive settings to proxy config for mesh gateways
2 years ago
Derek Menteer 2a33d0ff96 Fix issue with incorrect method signature on test.
2 years ago
Freddy 24d0c8801a
Merge pull request #14981 from hashicorp/peering/dial-through-gateways
2 years ago
Dan Upton 328e3ff563
proxycfg: rate-limit delivery of config snapshots (#14960)
2 years ago
Derek Menteer 29ebcf5ff0 Add tests for peering state snapshots / restores.
2 years ago
Derek Menteer e3ff9912d0 Add test for ExportedServicesForAllPeersByName
2 years ago
Dan Upton e6b55d1d81
perf: remove expensive reflection from xDS hot path (#14934)
2 years ago
freddygv c77123a2aa Use split var in tests
2 years ago
freddygv bf51021c07 Use split wildcard partition name
2 years ago
Freddy ee4cdc4985
Merge pull request #14935 from hashicorp/fix/alias-leak
2 years ago
freddygv 573aa408a1 Lint
2 years ago
Derek Menteer 0f424e3cdf Reset wait on ensureServerAddrSubscription
2 years ago
freddygv 96fdd3728a Fix CA init error code
2 years ago
freddygv 2c99a21596 Update leader routine to maybe use gateways
2 years ago
freddygv e69bc727ec Update peering establishment to maybe use gateways
2 years ago
malizz b0b0cbb8ee
increase protobuf size limit for cluster peering (#14976)
2 years ago
Derek Menteer 4e140c98bc Address PR comments.
2 years ago
Derek Menteer 1e394da400 Disallow peering to the same cluster.
2 years ago
Derek Menteer 8742fbe14f Prevent consul peer-exports by discovery chain.
2 years ago
Derek Menteer f366edcb8d Prevent the "consul" service from being exported.
2 years ago
Derek Menteer caa1396255 Add remote peer partition and datacenter info.
2 years ago
Dan Upton cbb4a030c4
xds: properly merge central config for "agentless" services (#14962)
2 years ago
Dan Upton 0af9f16343
bug: fix goroutine leaks caused by incorrect usage of `WatchCh` (#14916)
2 years ago
Hans Hasselberg 0d5935ab83
adding configuration option cloud.scada_address (#14936)
2 years ago
Paul Glass bcda205f88
Add consul.xds.server.streamStart metric (#14957)
2 years ago
Riddhi Shah 345191a0df
Service http checks data source for agentless proxies (#14924)
2 years ago
Freddy 9ca8bb8ec4
Merge pull request #14958 from hashicorp/peering/nonce
2 years ago
freddygv 1b46b35041 Actually track nonce in test
2 years ago
Derek Menteer f330438a45 Fix incorrect backoff-wait logic.
2 years ago
freddygv 7f9a5d0f58 Add basic nonce management
2 years ago
Paul Glass d17af23641
gRPC server metrics (#14922)
2 years ago
cskh e0356e1502
fix(peering): add missing grpc_tls_port for server address reconciliation (#14944)
2 years ago
freddygv f4cc4577ca Fix alias check leak
2 years ago
James Oulman b8bd7a3058
Configure Envoy alpn_protocols based on service protocol (#14356)
2 years ago
freddygv bf72df7b0e Fixup test
2 years ago
Chris S. Kim 4f4112662e Fix nil pointer
2 years ago
Chris S. Kim b0a4c5c563 Include stream-related information in peering endpoints
2 years ago
Paul Glass c0c187f1c5
Merge central config for GetEnvoyBootstrapParams (#14869)
2 years ago
Freddy 4abad02abd
Merge pull request #14796 from hashicorp/peering/use-connect-ca
2 years ago
freddygv 7d4da6eb22 Fixup test
2 years ago
freddygv 3034df6a5c Require Connect and TLS to generate peering tokens
2 years ago
freddygv fac3ddc857 Use internal server certificate for peering TLS
2 years ago
freddygv 5f97223822 Simplify mgw watch mgmt
2 years ago
freddygv d54db25421 Use existing query options to build ctx
2 years ago
DanStough 77ab28c5c7 feat: xDS updates for peerings control plane through mesh gw
2 years ago
Eric Haberkorn 1633cf20ea
Make the mesh gateway changes to allow `local` mode for cluster peering data plane traffic (#14817)
2 years ago
cskh c1b5f34fb7
fix: missing UDP field in checkType (#14885)
2 years ago
Derek Menteer a279d2d329
Fix explicit tproxy listeners with discovery chains. (#14751)
2 years ago
Alex Oskotsky 13da2c5fad
Add the ability to retry on reset connection to service-routers (#12890)
2 years ago
John Murret 79a541fd7d
Upgrade serf to v0.10.1 and memberlist to v0.5.0 to get memberlist size metrics and broadcast queue depth metric (#14873)
2 years ago
Evan Culver a3be5a5a82
connect: Bump Envoy 1.20 to 1.20.7, 1.21 to 1.21.5 and 1.22 to 1.22.5 (#14831)
2 years ago
Eric Haberkorn 1b565444be
Rename `PeerName` to `Peer` on prepared queries and exported services (#14854)
2 years ago
Freddy d9fe3578ac
Merge pull request #14734 from hashicorp/NET-643-update-mesh-gateway-envoy-config-for-inbound-peering-control-plane-traffic
2 years ago
freddygv b15d41534f Update xds generation for peering over mesh gws
2 years ago
freddygv a8c4d6bc55 Share mgw addrs in peering stream if needed
2 years ago
freddygv 4ff9d475b0 Return mesh gateway addrs if peering through mgw
2 years ago
chappie ad7295e5d9
Merge pull request #14811 from hashicorp/chappie/dns
2 years ago
Chris Chapman d7b5351b66
Making suggested comments
2 years ago
Chris Chapman 46bea72212
Making suggested changes
2 years ago
Chris Chapman a05563b788
Update comment
2 years ago
DanStough 7f8971d77f chore: fix flakey scada provider test
2 years ago
Chris Chapman 81e267171b
Bind a dns mux handler to gRPC proxy
2 years ago
Chris Chapman 7bc9cad180
Adding grpc handler for dns proxy
2 years ago
Eric Haberkorn 80e51ff907
Add exported services event to cluster peering replication. (#14797)
2 years ago
Ashwin Venkatesh 4ba260958c
bug: watch local mesh gateways in non-default partitions with agentless (#14799)
2 years ago
cskh 69f40df548
feat(ingress gateway: support configuring limits in ingress-gateway c… (#14749)
2 years ago
malizz 84b0f408fa
Support Stale Queries for Trust Bundle Lookups (#14724)
2 years ago
Eric Haberkorn 6570d5f004
Enable outbound peered requests to go through local mesh gateway (#14763)
2 years ago
Nick Ethier 1c1b0994b8
add HCP integration component (#14723)
2 years ago
Derek Menteer aa4709ab74
Add envoy connection balancing. (#14616)
2 years ago
Chris S. Kim 2203cdc4db Add new internal endpoint to list exported services to a peer
2 years ago
freddygv d818d7b096 Manage local server watches depending on mesh cfg
2 years ago
Alessandro De Blasis 461b42ed48 fix(check): added missing OSService props
2 years ago
Alessandro De Blasis 5719fd6560 fix(checks): os_service OK message in output
2 years ago
Alessandro De Blasis f440966a38 fix(checks): os_service lifecycle bugfix
2 years ago
Alessandro De Blasis fc0dd92dcf fix(agent): uninitialized map panic error
2 years ago
malizz 1a0aa38a82
increase the size of txn to support vault (#14599)
2 years ago
freddygv 5fbb26525b Add awareness of server mode to TLS configurator
2 years ago
freddygv f30bc96239 Test fixes
2 years ago
freddygv 02d3ce1039 Add server certificate manager
2 years ago
freddygv 0e5131bd33 Generate ACL token for server management
2 years ago
freddygv 0ea3353537 Add handling in agent cache for server leaf certs
2 years ago
Kyle Havlovitz 0d9ae52643
Merge pull request #14598 from hashicorp/root-removal-fix
2 years ago
Kyle Havlovitz 6105a7fd9f connect/ca: don't discard old roots on primaryInitialize
2 years ago
Gabriel Santos e53af28bd7
Middleware: `RequestRecorder` reports calls below 1ms as decimal value (#12905)
2 years ago
Daniel Graña 8c98172f53
[BUGFIX] Do not use interval as timeout (#14619)
2 years ago
Evan Culver d0416f593c
connect: Bump latest Envoy to 1.23.1 in test matrix (#14573)
2 years ago
DanStough 485e1b5d4e fix(peering): generate token metrics only for leader
2 years ago
DanStough 2a2debee64 feat(peering): validate server name conflicts on establish
2 years ago
Kyle Havlovitz 60cee76746
Merge pull request #14516 from hashicorp/ca-ttl-fixes
2 years ago
Kyle Havlovitz d67bccd210 Update intermediate pki mount/role when reconfiguring Vault provider
2 years ago
Kyle Havlovitz f46955101a connect/ca: Clarify behavior around IntermediateCertTTL in CA config
2 years ago
DanStough 0150e88200 feat: add PeerThroughMeshGateways to mesh config
2 years ago
Derek Menteer 0aa13733a0
Add CSR check for number of URIs. (#14579)
2 years ago
Derek Menteer db83ff4fa6 Add input validation for auto-config JWT authorization checks.
2 years ago