Commit Graph

20035 Commits (3663a048946da43db55b5243a9c3a6f82a7b84f7)

Author SHA1 Message Date
hc-github-team-consul-core 3663a04894
Backport of [NET-6842] splitting go version on different lines into release/1.15.x (#19889)
backport of commit 2e594e15a9

Co-authored-by: Ronald Ekambi <ronekambi@gmail.com>
2023-12-11 16:30:57 +00:00
hc-github-team-consul-core 4c0f70e80c
Backport of Fix xDS missing endpoint race condition. into release/1.15.x (#19872)
Fix xDS missing endpoint race condition.

This fixes the following race condition:
- Send update endpoints
- Send update cluster
- Recv ACK endpoints
- Recv ACK cluster

Prior to this fix, it would have resulted in the endpoints NOT existing in
Envoy. This occurred because the cluster update implicitly clears the endpoints
in Envoy, but we would never re-send the endpoint data to compensate for the
loss, because we would incorrectly ACK the invalid old endpoint hash. Since the
endpoint's hash did not actually change, they would not be resent.

The fix for this is to effectively clear out the invalid pending ACKs for child
resources whenever the parent changes. This ensures that we do not store the
child's hash as accepted when the race occurs.

An escape-hatch environment variable `XDS_PROTOCOL_LEGACY_CHILD_RESEND` was
added so that users can revert back to the old legacy behavior in the event
that this produces unknown side-effects.

This bug report and fix was mostly implemented by @ksmiley with some minor
tweaks.

Co-authored-by: Derek Menteer <derek.menteer@hashicorp.com>
Co-authored-by: Keith Smiley <ksmiley@salesforce.com>
2023-12-08 12:40:51 -06:00
hc-github-team-consul-core 24241e3d69
Backport of Add CE version of Gateway Upstream Disambiguation into release/1.15.x (#19862)
Add CE version of Gateway Upstream Disambiguation

Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2023-12-08 11:34:13 -05:00
hc-github-team-consul-core 48c7d76284
Backport of parse config protocol on write to optimize disco-chain compilation into release/1.15.x (#19857)
* parse config protocol on write to optimize disco-chain compilation (#19829)

* parse config protocol on write to optimize disco-chain compilation

* add changelog

* add test fixes from PR

* gofmt'd

* adding missing config field

* Revert "gofmt'd"

This reverts commit edbb472e7f.

* go fmt agent/structs/config_entry.go

---------

Co-authored-by: Dhia Ayachi <dhia@hashicorp.com>
2023-12-07 16:11:58 -05:00
Michael Zalimeni aafb84a98f
chore: update version and changelog post-1.15.7 (#19854)
chore: update version to 1.15.8-dev
2023-12-07 17:33:15 +00:00
hc-github-team-consul-core 63db5dbf5f
Backport of [NET-6650] Bump go version to 1.20.12 into release/1.15.x (#19844)
backport of commit af6045cdf1

Co-authored-by: Ronald Ekambi <ronekambi@gmail.com>
Co-authored-by: Ronald <roncodingenthusiast@users.noreply.github.com>
2023-12-07 15:01:44 +00:00
John Buonassisi 427cfbdae1
Backport/stats flush interval 1.15.x (#19850)
changes from backport
2023-12-06 14:08:39 -08:00
hc-github-team-consul-core 84236a85a6
Backport of improve client RPC metrics consistency into release/1.15.x (#19841)
* backport of commit 06507fe053

* backport of commit 14e160573d

* backport of commit 088ec70f90

---------

Co-authored-by: Jared Kirschner <85913323+jkirschner-hashicorp@users.noreply.github.com>
2023-12-06 14:04:53 -05:00
Ashesh Vidyut e2f2e49558
NET-3860 - [Supportability] consul troubleshoot CLI for verifying ports (#19835)
* cherry pick commit

* fix merge conf

* del import alias

* fix go mod

* fix go mod and licence
2023-12-06 15:26:50 +05:30
Matt Keeler d1bc9fbbf3
Pin version of lint-consul-retry (#19775)
v1.3.0 was before the linter became more accurate. All the issues the linter found have been applied to main but are not being backported.
2023-11-29 21:35:48 +00:00
John Maguire 7cc019f9c8
[NET-5688] APIGateway UI Topology Fixes (#19657) (#19764)
* [NET-5688] APIGateway UI Topology Fixes (#19657)

* Update catalog and ui endpoints to show APIGateway in gateway service
topology view

* Added initial implementation for service view

* updated ui

* Fix topology view for gateways

* Adding tests for gw controller

* remove unused args

* Undo formatting changes

* Fix call sites for upstream/downstream gw changes

* Add config entry tests

* Fix function calls again

* Move from ServiceKey to ServiceName, cleanup from PR review

* Add additional check for length of services in bound apigateway for
IsSame comparison

* fix formatting for proto

* gofmt

* Add DeepCopy for retrieved BoundAPIGateway

* gofmt

* gofmt

* Rename function to be more consistent

* Remove BUSL license

* Fix import
2023-11-29 11:23:15 -05:00
Michael Zalimeni 8874f1fceb
Revert "[NET-6232] docs: Update consul-k8s Helm chart docs (1.1.x) (#19699) (#19749)
Revert "[NET-6232] docs: Update consul-k8s Helm chart docs (1.1.x) (#19699)"

This reverts commit c4b3ca81d5.
2023-11-27 23:05:37 +00:00
Michael Zalimeni c4b3ca81d5
[NET-6232] docs: Update consul-k8s Helm chart docs (1.1.x) (#19699)
docs: Update consul-k8s Helm chart docs (1.1.x)

Sync docs for recent changes to the Helm chart from `consul-k8s`.
2023-11-27 14:15:25 -08:00
hc-github-team-consul-core 218dca12c1
Backport of ci: Run `go mod tidy` check on submodules into release/1.15.x (#19746)
backport of commit 5316676bb6

Co-authored-by: Michael Zalimeni <michael.zalimeni@hashicorp.com>
2023-11-27 21:42:20 +00:00
Dhia Ayachi 567417dfba
[1.15.x backport] Fix panic policy delete (#19733)
fix a panic in the CLI when deleting an acl policy with an unknown name (#19679)

* fix a panic in the CLI when deleting an acl policy with an unknown name

* add changelog
2023-11-27 12:30:49 -05:00
hc-github-team-consul-core 88227e4507
Backport of [NET-6617] security: Bump github.com/golang-jwt/jwt/v4 to 4.5.0 into release/1.15.x (#19739)
backport of commit fbb8be55f5

Co-authored-by: Michael Zalimeni <michael.zalimeni@hashicorp.com>
2023-11-27 16:17:19 +00:00
Valeriia Ruban b4f36881cd
Backport/UI/net 438 add ent version suffix/privately inspired wolf self (#19712)
* chore: add suffix to consul version in sidenav
2023-11-21 21:16:21 -07:00
Valeriia Ruban 407a41e07e
Backport/UI/feature/make global read only policy non editable/instantly hardy chamois 2 (#19623)
* feat: Change global-read-only policy to non editable
(downgraded styles of alerts)
2023-11-14 12:02:44 -08:00
hc-github-team-consul-core 789affd7af
Backport of [Docs] Update admin-partitions.mdx into release/1.15.x (#19630)
* backport of commit 54ecfa6b93

* backport of commit a5bc545f95

---------

Co-authored-by: am-ak <114914687+am-ak@users.noreply.github.com>
2023-11-14 09:28:01 -08:00
hc-github-team-consul-core 02c14601fa
Backport of Fix parts of admin-partitions guide into release/1.15.x (#19624)
backport of commit d4ba678e65

Co-authored-by: Joshua Timmons <joshua.timmons1@gmail.com>
2023-11-14 14:47:45 +00:00
hc-github-team-consul-core e7c5029b31
Backport of increasing unit tests timeout from 10m to 30m into release/1.15.x (#19424)
backport of commit 26cb1f6acf

Co-authored-by: John Murret <john.murret@hashicorp.com>
2023-11-09 19:06:06 +00:00
hc-github-team-consul-core d79540b0b0
Backport of test: update certs for 10 year expiry into release/1.15.x (#19559)
backport of commit d6283a9352

Co-authored-by: DanStough <dan.stough@hashicorp.com>
2023-11-07 20:13:02 +00:00
hc-github-team-consul-core 9195cd691e
Backport of Fix more test flakes into release/1.15.x (#19544)
* backport of commit 5cb614ed73

* Fix flaky metrics tests.

---------

Co-authored-by: Derek Menteer <derek.menteer@hashicorp.com>
2023-11-07 10:49:29 -06:00
hc-github-team-consul-core 502a4257b6
Backport of [NET-6459] Fix issue with wanfed lan ip conflicts. into release/1.15.x (#19521)
backport of commit a47995f72d

Co-authored-by: Derek Menteer <derek.menteer@hashicorp.com>
2023-11-06 14:58:25 +00:00
hc-github-team-consul-core 4d648c8355
Backport of Shuffle CICD tests to spread worker load. into release/1.15.x (#19518)
backport of commit b8a18c4fac

Co-authored-by: Derek Menteer <derek.menteer@hashicorp.com>
2023-11-06 14:40:31 +00:00
Tyler Wendlandt d477441046
ui: 1.15.x back to hcp link conditions (#19444)
Only show back to hcp link if CONSUL_HCP_URL is present
2023-11-03 15:51:34 -06:00
Ronald 64b689711c
helm docs for Consul k8s release 1.1.7 (#19498)
* Consul k8s release 1.1.7

* fix typos
2023-11-02 19:03:32 -04:00
hc-github-team-consul-core cd54946c90
Backport of build: ensure we pull through the hashicorp proxy instead of going directly to the docker hub into release/1.15.x (#19484)
backport of commit 5ab1e9888e

Co-authored-by: R.B. Boyer <rb@hashicorp.com>
2023-11-02 18:17:34 +00:00
hc-github-team-consul-core 9f17bf7fcf
Backport of Regen expired test certs into release/1.15.x (#19477)
backport of commit d399654096

Co-authored-by: Semir Patel <semir.patel@hashicorp.com>
2023-11-02 15:43:14 +00:00
hc-github-team-consul-core b22a770b3f
Backport of added redirect for conf entries 1.8.x into release/1.15.x (#19464)
* no-op commit due to failed cherry-picking

* added redirect for conf entries 1.8.x (#19460)

fixed merge conflicts in redirect

---------

Co-authored-by: temp <temp@hashicorp.com>
Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>
2023-11-01 16:31:30 -07:00
hc-github-team-consul-core a0a9e4ff1d
Backport of NET-5186 Add NET_BIND_SERVICE capability to consul-dataplane requirements into release/1.15.x (#19450)
Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>
2023-11-01 18:09:52 +00:00
Blake Covarrubias 8c7c3cc6c2
Backport of docs: Fix Kubernetes CRD example configs into release/1.15.x (#19439)
docs: Fix Kubernetes CRD example configs (#18878)

Fixes configuration examples for several Consul Kubernetes CRDs. The
CRDs were missing required fields such as `apiVersion`, `metadata`,
and `spec`.

Co-authored-by: Tu Nguyen <im2nguyen@gmail.com>
2023-10-31 09:03:27 -04:00
Michael Zalimeni 5f0212bbfc
Backport of [NET-6138] security: Bump google.golang.org/grpc to 1.56.3 (CVE-2023-44487) to release/1.15.x (#19421)
Bump google.golang.org/grpc to 1.56.3

This resolves [CVE-2023-44487](https://nvd.nist.gov/vuln/detail/CVE-2023-44487).

Also includes various fixes from later release versions required for
tests and linters to pass. See 77f44fa878
for the majority of these changes.

Co-authored-by: Chris Thain <chris.m.thain@gmail.com>
2023-10-30 10:51:34 -04:00
hc-github-team-consul-core 53a355be90
Backport of Fix casing in example yaml config into release/1.15.x (#19406)
Backport of Fix casing in example yaml config to release/1.15.x

Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>
2023-10-27 19:03:16 +00:00
hc-github-team-consul-core ece48dc09f
Backport of Use strict DNS for mesh gateways with hostnames into release/1.15.x (#19394)
Use strict DNS for mesh gateways with hostnames

Co-authored-by: Andrew Stucki <andrew.stucki@hashicorp.com>
2023-10-27 12:29:50 -04:00
hc-github-team-consul-core a83ff94c68
Backport of Add note about service upstream env var dot broken into release/1.15.x (#19397)
backport of commit 8a0896d379

Co-authored-by: Tu Nguyen <im2nguyen@gmail.com>
2023-10-26 20:50:40 +00:00
hc-github-team-consul-core 8cbbf0d691
Backport of chor: update rule to run frontend github tasks when changes are made … into release/1.15.x (#19064) 2023-10-26 12:34:54 -07:00
hc-github-team-consul-core d6ce6135c7
Backport of Golden File Tests for TermGW w/ Cluster Peering into release/1.15.x (#19191)
backport of commit 1fffd233b3

Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2023-10-26 15:31:47 -04:00
Derek Menteer d0fea44be0
Backport of Add grpc keepalive configuration into release/1.15.x (#19… (#19347)
Backport of Add grpc keepalive configuration into release/1.15.x (#19339)

Add grpc keepalive configuration. (#19339)

Prior to the introduction of this configuration, grpc keepalive messages were
sent after 2 hours of inactivity on the stream. This posed issues in various
scenarios where the server-side xds connection balancing was unaware that envoy
instances were uncleanly killed / force-closed, since the connections would
only be cleaned up after ~5 minutes of TCP timeouts occurred. Setting this
config to a 30 second interval with a 20 second timeout ensures that at most,
it should take up to 50 seconds for a dead xds connection to be closed.
2023-10-24 08:52:16 -05:00
Chris S. Kim bb4ea08e60
[1.15.x] Vault CA bugfixes (#19285) (#19337)
Vault CA bugfixes (#19285)

* Re-add retry logic to Vault token renewal

* Fix goroutine leak

* Add test for detecting goroutine leak

* Add changelog

* Rename tests

* Add comment
2023-10-23 14:16:23 +00:00
Chris Thain bcafb66a98
release/1.15.x - Update supported Envoy versions (#19272) 2023-10-19 14:45:06 -07:00
hc-github-team-consul-core 1bc046c26f
Backport of build(docker): always publish full and minor version tags for dev images into release/1.15.x (#19280)
Backport of build(docker): always publish full and minor version tags for dev images into release/1.17.x (#19282)

backport of commit c6bb4a5341

Co-authored-by: DanStough <dan.stough@hashicorp.com>
2023-10-18 17:07:42 -04:00
Chris Hut a06ddfcffd
Downgrading node on CI to support v1.15.X (#19249) 2023-10-17 09:54:02 -07:00
hc-github-team-consul-core c33ef90dde
Backport of [NET-5944] security: Update Go version to 1.20.10 and `x/net` to 0.17.0 into release/1.15.x (#19233)
* backport of commit d7d9de9564

* backport of commit 0794b1ce74

---------

Co-authored-by: Michael Zalimeni <michael.zalimeni@hashicorp.com>
2023-10-17 00:17:36 +00:00
hc-github-team-consul-core 2f54aff813
Backport of Fix BUSL license checker to skip >= 1.17.x target branches (#19152) into release/1.15.x (#19156)
backport of commit 02bfe1dd83

Co-authored-by: Semir Patel <semir.patel@hashicorp.com>
2023-10-11 22:37:11 +00:00
Chris Thain d91e61f46a
release/1.15.x: Manual backport of #19095 (#19147) 2023-10-11 13:54:22 -07:00
hc-github-team-consul-core 737213fc15
Backport of Replace `hub` with `gh` for member roles on JIRA sync checks into release/1.15.x (#19121)
backport of commit ff451f3897

Co-authored-by: David Yu <dyu@hashicorp.com>
2023-10-09 17:38:22 +00:00
Ashesh Vidyut 7b45148f13
Backport NET-4135 - Fix NodeMeta filtering Catalog List Services API (#18322) (#19116)
NET-4135 - Fix NodeMeta filtering Catalog List Services API (#18322)

* logs for debugging

* Init

* white spaces fix

* added change log

* Fix tests

* fix typo

* using queryoptionfilter to populate args.filter

* tests

* fix test

* fix tests

* fix tests

* fix tests

* fix tests

* fix variable name

* fix tests

* fix tests

* fix tests

* Update .changelog/18322.txt



* fix change log

* address nits

* removed unused line

* doing join only when filter has nodemeta

* fix tests

* fix tests

* Update agent/consul/catalog_endpoint.go



* fix tests

* removed unwanted code

---------

Co-authored-by: Ganesh S <ganesh.seetharaman@hashicorp.com>
Co-authored-by: R.B. Boyer <4903+rboyer@users.noreply.github.com>
2023-10-09 06:21:03 +00:00
hc-github-team-consul-core 661f0805b5
Backport of Allow connections through Terminating Gateways from peered clusters NET-3463 into release/1.15.x (#19091)
Allow connections through Terminating Gateways from peered clusters NET-3463 (#18959)

* Add InboundPeerTrustBundle maps to Terminating Gateway

* Add notify and cancelation of watch for inbound peer trust bundles

* Pass peer trust bundles to the RBAC creation function

* Regenerate Golden Files

* add changelog, also adds another spot that needed peeredTrustBundles

* Add basic test for terminating gateway with peer trust bundle

* Add intention to cluster peered golden test

* rerun codegen

* update changelog

* really update the changelog

---------

Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
Co-authored-by: Melisa Griffin <melisa.griffin@hashicorp.com>
2023-10-05 22:24:25 +00:00
hc-github-team-consul-core e2b44ebbc2
Backport of docs: clarify the requriment for cross-partition network into release/1.15.x (#19079)
backport of commit 1ef51ad9af

Co-authored-by: cskh <hui.kang@hashicorp.com>
2023-10-05 13:19:12 -04:00