hc-github-team-consul-core
c896ae06bf
Backport of Bring back parameter ServerExternalAddresses in GenerateToken endpoint into release/1.14.x ( #15296 )
...
* backport of commit 4199a7c30a
* backport of commit 53be93fb90
* backport of commit 1b0ce4e96c
* backport of commit 1b4ee792cb
* backport of commit 98f3d5aa51
* backport of commit 1f3b30b768
* Fix gomod for merging.
Co-authored-by: Nitya Dhanushkodi <nitya@hashicorp.com>
Co-authored-by: Derek Menteer <derek.menteer@hashicorp.com>
2022-11-08 15:31:17 -06:00
Chris S. Kim
fb7b645b29
Update hcp-scada-provider to fix diamond dependency problem with go-msgpack ( #15185 ) ( #15277 )
2022-11-07 12:09:18 -05:00
hc-github-team-consul-core
904a4c3836
Backport of Backport tests from ent. into release/1.14.x ( #15262 )
...
This pull request was automerged via backport-assistant
2022-11-04 11:19:44 -04:00
hc-github-team-consul-core
953e104c3e
Backport of Backport various fixes from ENT. into release/1.14.x ( #15257 )
...
This pull request was automerged via backport-assistant
2022-11-03 17:35:21 -04:00
hc-github-team-consul-core
6ea60aa363
backport of commit cf9244fb73
( #15232 )
...
This pull request was automerged via backport-assistant
2022-11-02 08:57:19 -04:00
hc-github-team-consul-core
8e7e929875
Backport of fix(peering): nil pointer in calling handleUpdateService into release/1.14.x ( #15162 )
...
This pull request was automerged via backport-assistant
2022-10-26 11:50:55 -04:00
hc-github-team-consul-core
0602b98a06
Backport of fix(peering): replicating wan address into release/1.14.x ( #15138 )
...
This pull request was automerged via backport-assistant
2022-10-24 15:45:27 -04:00
hc-github-team-consul-core
14569eaa43
backport of commit 2ac78eae03
( #15124 )
...
This pull request was automerged via backport-assistant
2022-10-24 12:48:24 -04:00
cskh
d562d363fc
peering: skip registering duplicate node and check from the peer ( #14994 )
...
* peering: skip register duplicate node and check from the peer
* Prebuilt the nodes map and checks map to avoid repeated for loop
* use key type to struct: node id, service id, and check id
2022-10-18 16:19:24 -04:00
Freddy
24d0c8801a
Merge pull request #14981 from hashicorp/peering/dial-through-gateways
2022-10-14 09:44:56 -06:00
Derek Menteer
0f424e3cdf
Reset wait on ensureServerAddrSubscription
2022-10-13 15:58:26 -05:00
freddygv
96fdd3728a
Fix CA init error code
2022-10-13 14:58:11 -06:00
malizz
b0b0cbb8ee
increase protobuf size limit for cluster peering ( #14976 )
2022-10-13 13:46:51 -07:00
Derek Menteer
8742fbe14f
Prevent consul peer-exports by discovery chain.
2022-10-13 12:45:09 -05:00
Derek Menteer
f366edcb8d
Prevent the "consul" service from being exported.
2022-10-13 12:45:09 -05:00
Derek Menteer
caa1396255
Add remote peer partition and datacenter info.
2022-10-13 10:37:41 -05:00
Freddy
9ca8bb8ec4
Merge pull request #14958 from hashicorp/peering/nonce
2022-10-12 08:18:15 -06:00
freddygv
1b46b35041
Actually track nonce in test
2022-10-12 07:50:17 -06:00
Derek Menteer
f330438a45
Fix incorrect backoff-wait logic.
2022-10-12 08:01:10 -05:00
freddygv
7f9a5d0f58
Add basic nonce management
...
This commit adds a monotonically increasing nonce to include in peering
replication response messages. Every ack/nack from the peer handling a
response will include this nonce, allowing to correlate the ack/nack
with a specific resource.
At the moment nothing is done with the nonce when it is received. In the
future we may want to add functionality such as retries on NACKs,
depending on the class of error.
2022-10-11 19:02:04 -06:00
freddygv
bf72df7b0e
Fixup test
2022-10-10 13:20:14 -06:00
Chris S. Kim
b0a4c5c563
Include stream-related information in peering endpoints
2022-10-10 13:20:14 -06:00
Paul Glass
c0c187f1c5
Merge central config for GetEnvoyBootstrapParams ( #14869 )
...
This fixes GetEnvoyBootstrapParams to merge in proxy-defaults and service-defaults.
Co-authored-by: Dan Upton <daniel@floppy.co>
2022-10-10 12:40:27 -05:00
freddygv
3034df6a5c
Require Connect and TLS to generate peering tokens
...
By requiring Connect and a gRPC TLS listener we can automatically
configure TLS for all peering control-plane traffic.
2022-10-07 09:06:29 -06:00
Eric Haberkorn
1b565444be
Rename `PeerName` to `Peer` on prepared queries and exported services ( #14854 )
2022-10-04 14:46:15 -04:00
freddygv
a8c4d6bc55
Share mgw addrs in peering stream if needed
...
This commit adds handling so that the replication stream considers
whether the user intends to peer through mesh gateways.
The subscription will return server or mesh gateway addresses depending
on the mesh configuration setting. These watches can be updated at
runtime by modifying the mesh config entry.
2022-10-03 11:42:20 -06:00
Chris Chapman
d7b5351b66
Making suggested comments
2022-09-30 15:03:33 -07:00
Chris Chapman
46bea72212
Making suggested changes
2022-09-30 14:51:12 -07:00
Chris Chapman
a05563b788
Update comment
2022-09-30 09:35:01 -07:00
Chris Chapman
7bc9cad180
Adding grpc handler for dns proxy
2022-09-29 21:19:51 -07:00
Eric Haberkorn
80e51ff907
Add exported services event to cluster peering replication. ( #14797 )
2022-09-29 15:37:19 -04:00
malizz
84b0f408fa
Support Stale Queries for Trust Bundle Lookups ( #14724 )
...
* initial commit
* add tags, add conversations
* add test for query options utility functions
* update previous tests
* fix test
* don't error out on empty context
* add changelog
* update decode config
2022-09-28 09:56:59 -07:00
Chris S. Kim
953808e899
PR feedback on terminated state checking
2022-09-06 10:28:20 -04:00
Chris S. Kim
ec36755cc0
Properly assert for ServerAddresses replication request
2022-09-02 11:44:54 -04:00
Chris S. Kim
d1d9dbff8e
Fix terminate not returning early
2022-09-02 11:44:38 -04:00
Chris S. Kim
560d410c6d
Merge branch 'main' into NET-638-push-server-address-updates-to-the-peer
...
# Conflicts:
# agent/grpc-external/services/peerstream/stream_test.go
2022-08-30 11:09:25 -04:00
Chris S. Kim
74ddf040dd
Add heartbeat timeout grace period when accounting for peering health
2022-08-29 16:32:26 -04:00
Chris S. Kim
def529edd3
Rename test
2022-08-29 10:34:50 -04:00
Chris S. Kim
93271f649c
Fix test
2022-08-29 10:20:30 -04:00
Chris S. Kim
4d97e2f936
Adjust metrics reporting for peering tracker
2022-08-26 17:34:17 -04:00
Chris S. Kim
937a8ec742
Fix casing
2022-08-26 11:56:26 -04:00
Chris S. Kim
1c43a1a7b4
Merge branch 'main' into NET-638-push-server-address-updates-to-the-peer
...
# Conflicts:
# agent/grpc-external/services/peerstream/stream_test.go
2022-08-26 10:43:56 -04:00
alex
30ff2e9a35
peering: add peer health metric ( #14004 )
...
Signed-off-by: acpana <8968914+acpana@users.noreply.github.com>
2022-08-25 16:32:59 -07:00
Chris S. Kim
8c94d1a80c
Update test comment
2022-08-24 13:50:24 -04:00
Chris S. Kim
5f2959329f
Add check for zero-length server addresses
2022-08-24 13:30:52 -04:00
Dan Upton
3b993f2da7
dataplane: update envoy bootstrap params for consul-dataplane ( #14017 )
...
Contains 2 changes to the GetEnvoyBootstrapParams response to support
consul-dataplane.
Exposing node_name and node_id:
consul-dataplane will support providing either the node_id or node_name in its
configuration. Unfortunately, supporting both in the xDS meta adds a fair amount
of complexity (partly because most tables are currently indexed on node_name)
so for now we're going to return them both from the bootstrap params endpoint,
allowing consul-dataplane to exchange a node_id for a node_name (which it will
supply in the xDS meta).
Properly setting service for gateways:
To avoid the need to special case gateways in consul-dataplane, service will now
either be the destination service name for connect proxies, or the gateway
service name. This means it can be used as-is in Envoy configuration (i.e. as a
cluster name or in metric tags).
2022-08-24 12:03:15 +01:00
Chris S. Kim
cdc8b0634d
Fix flakes
2022-08-22 14:45:31 -04:00
Chris S. Kim
03e92826aa
Increase heartbeat rate to reduce test flakes
2022-08-22 14:24:05 -04:00
Chris S. Kim
06ba9775ee
Remove check for ResponseNonce
2022-08-22 13:55:01 -04:00
Chris S. Kim
adff2eef16
Fix data race
...
newMockSnapshotHandler has an assertion on t.Cleanup which gets called before the event publisher is cancelled. This commit reorders the context.WithCancel so it properly gets cancelled before the assertion is made.
2022-08-22 13:55:01 -04:00