Commit Graph

172 Commits (77daebd3f8547cb1504171fad66d06bd185ca7d5)

Author SHA1 Message Date
Chris S. Kim 4f4112662e Fix nil pointer
2 years ago
Chris S. Kim b0a4c5c563 Include stream-related information in peering endpoints
2 years ago
Freddy 4abad02abd
Merge pull request #14796 from hashicorp/peering/use-connect-ca
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
DanStough 77ab28c5c7 feat: xDS updates for peerings control plane through mesh gw
2 years ago
Eric Haberkorn 1b565444be
Rename `PeerName` to `Peer` on prepared queries and exported services (#14854)
2 years ago
freddygv 4ff9d475b0 Return mesh gateway addrs if peering through mgw
2 years ago
Eric Haberkorn 80e51ff907
Add exported services event to cluster peering replication. (#14797)
2 years ago
malizz 84b0f408fa
Support Stale Queries for Trust Bundle Lookups (#14724)
2 years ago
Gabriel Santos e53af28bd7
Middleware: `RequestRecorder` reports calls below 1ms as decimal value (#12905)
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
Dan Upton 1c2c975b0b
xDS Load Balancing (#14397)
2 years ago
freddygv 650e48624d Allow terminated peerings to be deleted
2 years ago
Chris S. Kim 6ddcc04613
Replace ring buffer with async version (#14314)
2 years ago
freddygv c04515a844 Use proto message for each secrets write op
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
Luke Kysow 988e1fd35d
peering: default to false (#13963)
2 years ago
Matt Keeler f74d0cef7a
Implement/Utilize secrets for Peering Replication Stream (#13977)
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
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 3530d3782d
peering: read endpoints can now return failing status (#13849)
2 years ago
Chris S. Kim 73a84f256f
Preserve PeeringState on upsert (#13666)
2 years ago
freddygv b544ce6485 Add ACL enforcement to peering endpoints
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
Nitya Dhanushkodi f47319b7c6
update generate token endpoint to take external addresses (#13844)
2 years ago
alex de5a991d8c
peering: refactor reconcile, cleanup (#13795)
2 years ago
alex a9ae2ff4fa
peering: track exported services (#13784)
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
Dan Upton b9e525d689
grpc: rename public/private directories to external/internal (#13721)
2 years ago
R.B. Boyer af04851637
peering: move peer replication to the external gRPC port (#13698)
2 years ago
Chris S. Kim f07132dacc
Revise possible states for a peering. (#13661)
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
alex beb8b03e8a
peering: reconcile/ hint active state for list (#13619)
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
R.B. Boyer e8ea3d7c3b
state: peering ID assignment cannot happen inside of the state store (#13525)
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
freddygv f3843809da Avoid deleting peerings marked as terminated.
2 years ago
freddygv 6453375ab2 Add leader routine to clean up peerings
2 years ago
freddygv 6c8ab1bbac Fixup stream tear-down steps.
2 years ago
freddygv cc921a9c78 Update peering state and RPC for deferred deletion
2 years ago
Freddy 71b254522e
Clean up imported nodes/services/checks as needed (#13367)
2 years ago
Chris S. Kim a02e9abcc1
Update RBAC to handle imported services (#13404)
2 years ago
R.B. Boyer 7001e1151c
peering: rename initiate to establish in the context of the APIs (#13419)
2 years ago
R.B. Boyer bba3eb8cdd
peering: mesh gateways are required for cross-peer service mesh communication (#13410)
3 years ago
R.B. Boyer 7423886136
peering: allow protobuf requests to populate the default partition or namespace (#13398)
3 years ago
R.B. Boyer ab758b7b32
peering: allow mesh gateways to proxy L4 peered traffic (#13339)
3 years ago
alex bbbc50815a
peering: send leader addr (#13342)
3 years ago
R.B. Boyer 019aeaa57d
peering: update how cross-peer upstreams and represented in proxycfg and rendered in xds (#13362)
3 years ago
freddygv 647c57a416 Add agent cache-type for TrustBundleListByService
3 years ago
freddygv 8b58fa8afe Update assumptions around exported-service config
3 years ago
freddygv 870e7c72d7 Return SPIFFE ID for connect proxies in PeerMeta
3 years ago
Freddy 9427700270
[OSS] Add grpc endpoint to fetch a specific trust bundle (#13292)
3 years ago
alex fd7a403e11
monitor leadership in peering service (#13257)
3 years ago
Chris S. Kim 6d3bea7129
Add support for streaming CA roots to peers (#13260)
3 years ago
R.B. Boyer 1a8834e1c8
peering: replicate expected SNI, SPIFFE, and service protocol to peers (#13218)
3 years ago
R.B. Boyer be631ebdce
peering: disable requirement for mesh gateways initially (#13213)
3 years ago
alex 876f3bb971
peering: expose IsLeader, hung up on dialer if follower (#13164)
3 years ago
R.B. Boyer 2e72f44fda
peering: accept replication stream of discovery chain information at the importing side (#13151)
3 years ago
R.B. Boyer 3e4a522882 peering: replicate discovery chains information to importing peers
3 years ago
R.B. Boyer 5a03536040 prefactor some functions out of the monolithic file
3 years ago
Freddy b38be4c0ed
Patches to peering initiation for POC demo (#13076)
3 years ago
Freddy e874b860c0
Actually block when syncing subscriptions (#13066)
3 years ago
Evan Culver 0fa5e7be5a
peering: add TrustBundleListByService endpoint (#13048)
3 years ago
Freddy 4e215dc411
[OSS] Add upsert handling for receiving CheckServiceNode (#13061)
3 years ago
R.B. Boyer cc15a11f9c
test: ensure this package uses freeport for port allocation (#13036)
3 years ago
R.B. Boyer 901fd4dd68
remove remaining shim runStep functions (#13015)
3 years ago
R.B. Boyer 0d6d16ddfb
add general runstep test helper instead of copying it all over the place (#13013)
3 years ago
FFMMM 37a1e33834
expose meta tags for peering (#12964)
3 years ago
R.B. Boyer f507f62f3c
peering: initial sync (#12842)
3 years ago
FFMMM a46bbe892d
add more labels to RequestRecorder (#12727)
3 years ago
FFMMM 5245251bbf
[rpc/middleware][consul] plumb intercept off, add server level happy test (#12692)
3 years ago
FFMMM 7ed356b338
lower log to trace (#12708)
3 years ago
FFMMM 1adfd7b94c
polish rpc.service.call metric behavior (#12624)
3 years ago
FFMMM c39854de78
fix bad oss sync, use gauges not counters (#12611)
3 years ago
FFMMM a7e5ee005a
factor out recording func, add unit tests (#12585)
3 years ago
Dan Upton 7298967070
Restructure gRPC server setup (#12586)
3 years ago
FFMMM e5ebc47a94
pre register new rpc metric, rename metric (#12582)
3 years ago
FFMMM db27ea3484
[sync oss] add net/rpc interceptor implementation (#12573)
3 years ago
Dan Upton fdfe079674
streaming: split event buffer by key (#12080)
3 years ago
Giulio Micheloni af7b7b5693
Merge branch 'main' into serve-panic-recovery
3 years ago
Daniel Nephin 8ba760a2fc acl: remove id and revision from Policy constructors
3 years ago
Daniel Nephin aea4cc5a6d acl: remove legacy arg to store.ACLTokenSet
3 years ago
Giulio Micheloni 0c78ddacde Merge branch 'main' of https://github.com/hashicorp/consul into hashicorp-main
3 years ago
R.B. Boyer 706fc8bcd0
grpc: strip local ACL tokens from RPCs during forwarding if crossing datacenters (#11099)
3 years ago
Giulio Micheloni 655da1fc42
Merge branch 'main' into serve-panic-recovery
3 years ago
Giulio Micheloni 4b0eaa4bff grpc, xds: recovery middleware to return and log error in case of panic
3 years ago
R.B. Boyer 097e1645e3
agent: ensure that most agent behavior correctly respects partition configuration (#10880)
3 years ago
R.B. Boyer 310e775a8a
state: partition nodes and coordinates in the state store (#10859)
3 years ago
Daniel Nephin f497d5ab30 acl: remove many instances of authz == nil
3 years ago
R.B. Boyer fc9b1a277d
sync changes to oss files made in enterprise (#10670)
3 years ago
R.B. Boyer 188e8dc51f
agent/structs: add a bunch more EnterpriseMeta helper functions to help with partitioning (#10669)
3 years ago