Commit Graph

20127 Commits (6a7d3c4315fb78a6d57d265888954b266c52be69)

Author SHA1 Message Date
hc-github-team-consul-core d2952ff6a1
Backport of Add docs for k8s liveness / startup probes. into release/1.15.x (#20225)
Add docs for k8s liveness / startup probes. (#20213)

* Add docs for k8s liveness / startup probes.

* Update website/content/docs/k8s/helm.mdx



---------

Co-authored-by: Derek Menteer <105233703+hashi-derek@users.noreply.github.com>
Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com>
2024-01-16 21:19:52 +00:00
Michael Zalimeni 8247195884
Backport of chore: improve CI backports by backporting new workflows into release/1.15.x (#20218)
* chore: improve CI backports by backporting new workflows

Even though these files aren't used, adding them prevents backport
failures for common changes that are backported n-2 versions.

* chore: improve CI backports by backporting new workflows (1.16)

Even though these files aren't used, adding them prevents backport
failures for common changes that are backported n-2 versions.
2024-01-16 12:36:12 -05:00
hc-github-team-consul-core eb1c319774
Backport of agent: remove data race in agent config into release/1.15.x (#20201)
[1.15.x] agent: remove data race in agent config (#20200)

To fix an issue displaying the current reloaded config in the
v1/agent/self endpoint #18681 caused the agent's internal
config struct member to be deepcopied and replaced on reload.

This is not safe because the field is not protected by a lock, nor
should it be due to how it is accessed by the rest of the system.

This PR does the same deepcopy, but into a new field solely for
the point of capturing the current reloaded values for display
purposes. If there has been no reload then the original config is used.

Co-authored-by: R.B. Boyer <4903+rboyer@users.noreply.github.com>
2024-01-16 11:11:32 -06:00
hc-github-team-consul-core 0d433a4f83
Backport of Various race condition and test fixes. into release/1.15.x (#20214)
* backport of commit fead597130

* Various test fixes.

* Fix race condition in reconcilePeering.

This resolves an issue where a peering object in the state store was
incorrectly mutated by a function, resulting in the test being flagged as
failing when the -race flag was used.

---------

Co-authored-by: Derek Menteer <derek.menteer@hashicorp.com>
2024-01-16 10:32:17 -06:00
hc-github-team-consul-core c7dabc928a
Backport of compliance: license checker to enforce MPL pre-EOY 2023 no longer necessary into release/1.15.x (#20183)
* no-op commit due to failed cherry-picking

* backport MPL license checker removal (PR #20175)

---------

Co-authored-by: temp <temp@hashicorp.com>
Co-authored-by: Semir Patel <semir.patel@hashicorp.com>
2024-01-12 10:27:35 -06:00
hc-github-team-consul-core c5dd828369
Backport of [NET-4968] Upgrade Go to 1.21 into release/1.15.x (#20180)
* backport of commit 01ca961e04

* backport of commit e71ae3aed8

---------

Co-authored-by: Michael Zalimeni <michael.zalimeni@hashicorp.com>
2024-01-12 15:28:03 +00:00
Michael Zalimeni 977b2dcf3d
Backport of ci: Single source of truth for Go version in CI and Dockerfile into release/1.15.x (#20162)
* backport of commit ea888cd278

* ci: fix pull request labeler check
2024-01-11 15:49:08 -05:00
hc-github-team-consul-core 9c7f964100
Backport of Fix broken link into release/1.15.x (#20153)
backport of commit 58991eddb1

Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>
2024-01-10 15:04:09 -05:00
Semir Patel 19e293bff4
license: MPL'ify proto-public (manual backport for 1.15.x) (#20157) 2024-01-10 14:00:54 -06:00
hc-github-team-consul-core a4a7cbbb99
Backport of [NET-6593] agent: check for minimum RSA key size into release/1.15.x (#20140)
* backport of commit 0e36f636a4

* manual backport

---------

Co-authored-by: Dan Bond <danbond@protonmail.com>
2024-01-10 13:14:18 +00:00
hc-github-team-consul-core e29f868c4e
Backport of Fix broken tests. into release/1.15.x (#20131)
* backport of commit 7a91738824

* Fix broken test.

---------

Co-authored-by: Derek Menteer <derek.menteer@hashicorp.com>
2024-01-09 14:29:07 -06:00
Krastin Krastev 04f12b2ae8
Backport of docs/consul: rename the Vault secret engine for Consul integration into release/1.15.x (#20094)
docs/consul: rename the Vault secret engine for Consul integration (#20049)

* rename the KV secret engine

* update WAN federation guide

* update snapshot-agent doc

* update replication doc

* update partition doc

* update gossip doc

* update ent-license doc

* update bootstrap-token doc

* update index doc

* fix license kv path

* vault kv path explanation for /data/

* Update website/content/docs/k8s/deployment-configurations/vault/data-integration/index.mdx



---------

Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com>
2024-01-08 16:06:15 +02:00
hc-github-team-consul-core 7da6c9f27d
Backport of Use safeio to write server metadata file into release/1.15.x (#20104)
* backport of commit 0956e061b6

* backport of commit ed9709a578

---------

Co-authored-by: cskh <hui.kang@hashicorp.com>
2024-01-05 15:50:16 -05:00
hc-github-team-consul-core f616d3b4c3
Backport of agent: prevent empty server_metadata.json into release/1.15.x (#20018)
backport of commit 9fc0fc3dcc

Co-authored-by: cskh <hui.kang@hashicorp.com>
2024-01-05 14:42:14 -05:00
John Murret d88efe9128
Revert Envoy deprecation remediation changes (#20102)
* Revert "Backport into 1.15 of NET-6944 - Replace usage of deprecated Envoy field envoy.extensions.filters.http.lua.v3.Lua.inline_code (#20052)"

This reverts commit d99c27b355.

* Revert "Backport of NET-4774 - replace usage of deprecated Envoy field match_subject_alt_names into release/1.15.x (#20055)"

This reverts commit dbc87ca992.

* Revert "Backport of NET-6942 - Replace usage of deprecated Envoy field envoy.config.cluster.v3.Cluster.http_protocol_options. into release/1.15.x (#20031)"

This reverts commit 3b70b66ecf.

* Revert "Backport of NET-6317 - update usage of deprecated fields: http2_protocol_options and access_log_path into release/1.15.x (#19951)"

This reverts commit 1268d067c8.
2024-01-05 12:02:23 -07:00
hc-github-team-consul-core 182ed3afeb
Backport of docs: remove unsupported critical flag from DNS weights into release/1.15.x (#20097)
backport of commit e6b60f5f5e

Co-authored-by: DanStough <dan.stough@hashicorp.com>
2024-01-05 10:49:11 -05:00
John Murret aeb39b8804
Revert "Backport of NET-6943 - Replace usage of deprecated Envoy field envoy.config.router.v3.WeightedCluster.total_weight. into release/1.15.x (#20059) (#20083)
Revert "Backport of NET-6943 - Replace usage of deprecated Envoy field envoy.config.router.v3.WeightedCluster.total_weight. into release/1.15.x (#20059)"

This reverts commit ca07c058b6.
2024-01-04 14:24:59 -07:00
John Murret d99c27b355
Backport into 1.15 of NET-6944 - Replace usage of deprecated Envoy field envoy.extensions.filters.http.lua.v3.Lua.inline_code (#20052)
NET-6944 - Replace usage of deprecated Envoy field envoy.extensions.filters.http.lua.v3.Lua.inline_code (#20012)
2024-01-02 23:01:56 +00:00
hc-github-team-consul-core dbc87ca992
Backport of NET-4774 - replace usage of deprecated Envoy field match_subject_alt_names into release/1.15.x (#20055)
* NET-4774 - replace usage of deprecated Envoy field match_subject_alt_names (#19954)

* Delete agent/xdsv2/listener_resources.go

* fix golden tests

---------

Co-authored-by: John Murret <john.murret@hashicorp.com>
2024-01-02 13:28:17 -07:00
hc-github-team-consul-core 9a75c62717
Backport of ci: increase runner size for security scans into release/1.15.x (#20069)
backport of commit e84dd20cb4

Co-authored-by: Michael Zalimeni <michael.zalimeni@hashicorp.com>
2024-01-02 13:14:03 -05:00
hc-github-team-consul-core ca07c058b6
Backport of NET-6943 - Replace usage of deprecated Envoy field envoy.config.router.v3.WeightedCluster.total_weight. into release/1.15.x (#20059)
NET-6943 - Replace usage of deprecated Envoy field envoy.config.router.v3.WeightedCluster.total_weight. (#20011)

Co-authored-by: John Murret <john.murret@hashicorp.com>
2024-01-02 17:32:30 +00:00
hc-github-team-es-release-engineering e13a4c2e09
[DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
hc-github-team-consul-core 3b70b66ecf
Backport of NET-6942 - Replace usage of deprecated Envoy field envoy.config.cluster.v3.Cluster.http_protocol_options. into release/1.15.x (#20031)
fix formatting issue in envoy bootstrapping

Co-authored-by: John Murret <john.murret@hashicorp.com>
2023-12-21 23:19:17 +00:00
David Yu c56fcacbb2
Dockerfile: backport of #20014 for 1.15.x (#20034)
* Update Dockerfile

* Create 20014.txt
2023-12-21 13:22:57 -08:00
hc-github-team-consul-core c32f33b671
Backport of [NET-7009] security: update x/crypto to 0.17.0 into release/1.15.x (#20027)
backport of commit d8a33b4e72

Co-authored-by: Michael Zalimeni <michael.zalimeni@hashicorp.com>
2023-12-21 20:30:49 +00:00
hc-github-team-consul-core 425ba3c52d
Backport of [NET-6969] security: Re-enable Go Module + secrets security scans for release branches into release/1.15.x (#20019)
* backport of commit 63030c8bb6

* backport of commit f40a132a83

* fix license for backport

---------

Co-authored-by: Michael Zalimeni <michael.zalimeni@hashicorp.com>
2023-12-21 15:39:40 +00:00
Thomas Eckert 002504fda0
Update Helm Documenation with changes from release 1.1.8 (#20002) 2023-12-19 17:13:32 -05:00
David Yu cc737fbb45
docs: Update network segments in compat matrix for Enterprise features (#19994)
Update index.mdx
2023-12-19 08:03:29 -08:00
hc-github-team-consul-core ed0e613943
Backport of NET 6409 into release/1.15.x (#19985)
NET 6409 (#19515)

* Update website/content/docs/k8s/k8s-cli.mdx



* Update website/content/docs/k8s/k8s-cli.mdx



* fix doc

* Update website/content/docs/k8s/k8s-cli.mdx



---------

Co-authored-by: Ashesh Vidyut <134911583+absolutelightning@users.noreply.github.com>
Co-authored-by: David Yu <dyu@hashicorp.com>
2023-12-19 07:18:42 +00:00
hc-github-team-consul-core bc804ee4d7
Backport of Net 6603 into release/1.15.x (#19979)
* no-op commit due to failed cherry-picking

* Net 6603 (#19718)

* Update docs for NET-6603

* json format

* json caps

* Update website/content/docs/k8s/k8s-cli.mdx

Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>

---------

Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>

---------

Co-authored-by: temp <temp@hashicorp.com>
Co-authored-by: Ashesh Vidyut <134911583+absolutelightning@users.noreply.github.com>
Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>
2023-12-19 06:49:49 +00:00
hc-github-team-consul-core e568904ad2
Backport of ci: upload test results to DataDog on test failure into release/1.15.x (#19962)
backport of commit 0085e75996

Co-authored-by: Michael Zalimeni <michael.zalimeni@hashicorp.com>
2023-12-18 15:04:21 +00:00
hc-github-team-consul-core cb398384b0
Backport of Fix typo in service-defaults documentation into release/1.15.x (#19959)
backport of commit ce3277570c

Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>
2023-12-15 13:58:07 -05:00
wangxinyi7 13e0ede398
update changelog and version (#19969) 2023-12-15 10:03:29 -08:00
hc-github-team-consul-core 1268d067c8
Backport of NET-6317 - update usage of deprecated fields: http2_protocol_options and access_log_path into release/1.15.x (#19951)
NET-6317 - update usage of deprecated fields: http2_protocol_options and access_log_path

Co-authored-by: John Murret <john.murret@hashicorp.com>
2023-12-14 14:57:12 -07:00
hc-github-team-consul-core ae6a9f195f
Backport of Update telemetry.mdx RPC Metrics into release/1.15.x (#19947)
* backport of commit ea114971a3

* backport of commit 8df9c6f3ba

* backport of commit e2a3294b00

---------

Co-authored-by: natemollica-dev <57850649+natemollica-nm@users.noreply.github.com>
2023-12-14 11:15:46 -08:00
hc-github-team-consul-core 45d710bc1e
Backport of NET-6785: updating peering docs to include stream status and remote data into release/1.15.x (#19936)
backport of commit a785cbf3d1

Co-authored-by: Tauhid <tauhidanjum@gmail.com>
2023-12-14 12:28:58 +05:30
Tyler Wendlandt 9f779bf80f
Backport of fix: token list in Role details page is updated with tokens linked to… into release/1.15.x (#19921)
fix: token list in Role details page is updated with tokens linked to… (#19912)

Co-authored-by: Valeriia Ruban <valeriia.ruban@hashicorp.com>
2023-12-12 11:06:42 -08:00
hc-github-team-consul-core d62bf2c06a
Backport of Hash based config entry replication into release/1.15.x (#19914)
add hash based config entry replication

Co-authored-by: Dhia Ayachi <dhia@hashicorp.com>
2023-12-12 13:35:47 -05:00
hc-github-team-consul-core 2c6d620439
Backport of Remove warning for consul 1.17 deprecation into release/1.15.x (#19903)
backport of commit 8d43647ed9

Co-authored-by: Ronald Ekambi <ronekambi@gmail.com>
2023-12-12 09:43:02 -05:00
hc-github-team-consul-core ff25f835f0
Backport of fix: remove test to unblock CI into release/1.15.x (#19909)
backport of commit de839085b9

Co-authored-by: valeriia-ruban <valeriia.ruban@hashicorp.com>
2023-12-11 20:20:50 -08:00
hc-github-team-consul-core 300e58c605
Backport of Add documentation for proxy-config-map and xds_fetch_timeout_ms. into release/1.15.x (#19894)
backport of commit 85e942475a

Co-authored-by: Derek Menteer <derek.menteer@hashicorp.com>
2023-12-11 15:58:23 -06:00
Derek Menteer 0d7cade9d3
Backport of: Fix ClusterLoadAssignment timeouts dropping endpoints. into 1.15 (#19886)
Fix ClusterLoadAssignment timeouts dropping endpoints.

When a large number of upstreams are configured on a single envoy
proxy, there was a chance that it would timeout when waiting for
ClusterLoadAssignments. While this doesn't always immediately cause
issues, consul-dataplane instances appear to consistently drop
endpoints from their configurations after an xDS connection is
re-established (the server dies, random disconnect, etc).

This commit adds an `xds_fetch_timeout_ms` config to service registrations
so that users can set the value higher for large instances that have
many upstreams. The timeout can be disabled by setting a value of `0`.

This configuration was introduced to reduce the risk of causing a
breaking change for users if there is ever a scenario where endpoints
would never be received. Rather than just always blocking indefinitely
or for a significantly longer period of time, this config will affect
only the service instance associated with it.
2023-12-11 12:05:07 -06:00
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