Commit Graph

19957 Commits (e0fa7742f6cedaf5d8bc043387f1b068251277d0)

Author SHA1 Message Date
hc-github-team-consul-core 3fc13681ff
Backport of go-tests: disable s390x into release/1.15.x (#18277)
backport of commit 785f10ed12

Co-authored-by: Dan Bond <danbond@protonmail.com>
2023-07-25 18:24:00 +00:00
trujillo-adam a3721a79b8
add auto lic usage docs for 1.15 (#18267)
* add auto lic usage docs for 1.15

* commit actual file

* fix usage and typos
2023-07-24 15:46:02 -07:00
hc-github-team-consul-core 606452e2fc
Backport of NET-4897 - update comment to include the current issue url from the go team. into release/1.15.x (#18265)
backport of commit 23f0cfc2d6

Co-authored-by: John Murret <john.murret@hashicorp.com>
2023-07-24 21:45:33 +00:00
hc-github-team-consul-core 3425e655b6
Backport of NET-1825: More new ACL token creation docs into release/1.15.x (#18256)
NET-1825: More new ACL token creation docs (#18063)

Co-authored-by: Paul Glass <pglass@hashicorp.com>
Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>
2023-07-24 18:41:44 +00:00
hc-github-team-consul-core 4130fb4996
Backport of Revert "NET-4996 - filter go-tests and test-integration workflows from running on docs only and ui only changes" into release/1.15.x (#18252)
backport of commit 029099a635

Co-authored-by: John Murret <john.murret@hashicorp.com>
2023-07-24 16:29:22 +00:00
hc-github-team-consul-core b2feff89c9
Backport of NET-4996 - filter go-tests and test-integration workflows from running on docs only and ui only changes into release/1.15.x (#18243)
backport of commit e0c0efe682

Co-authored-by: John Murret <john.murret@hashicorp.com>
2023-07-23 19:26:03 +00:00
hc-github-team-consul-core a153588c77
Backport of [NET-4122] Doc guidance for federation with externalServers into release/1.15.x (#18232)
backport of commit c5522ca0e9

Co-authored-by: Michael Zalimeni <michael.zalimeni@hashicorp.com>
2023-07-21 19:56:41 +00:00
hc-github-team-consul-core b59f512525
Backport of ci: don't verify s390x into release/1.15.x (#18225)
backport of commit 45700f1e89

Co-authored-by: Dan Bond <danbond@protonmail.com>
2023-07-21 17:20:54 +00:00
hc-github-team-consul-core 816e9116d3
Backport of Explicitly enable WebSocket upgrades into release/1.15.x (#18210)
This PR explicitly enables WebSocket upgrades in Envoy's UpgradeConfig for all
proxy types. (API Gateway, Ingress, and Sidecar.)

Fixes #8283

Co-authored-by: Blake Covarrubias <blake@covarrubi.as>
2023-07-20 14:57:48 -07:00
hc-github-team-consul-core 1ce20ea1dd
Backport of Fix Backport Assistant PR commenting into release/1.15.x (#18202)
Fix Backport Assistant PR commenting (#18200)

* Fix Backport Assistant failure PR commenting

For general comments on a PR, it looks like you have to use the `/issue`
endpoint rather than `/pulls`, which requires commit/other
review-specific target details.

This matches the endpoint used in `backport-reminder.yml`.

* Remove Backport Reminder workflow

This is noisy (even when adding multiple labels, individual comments per
label are generated), and likely no longer needed: we haven't had this
work in a long time due to an expired GH token, and we now have better
automation for backport PR assignment.

Manual backport of 1c7fcdf188.
2023-07-20 16:15:53 +00:00
hc-github-team-consul-core 22189b653e
Backport of [NET-4865] security: Update Go version to 1.20.6 into release/1.15.x (#18194)
backport of commit 93f3209a69

Co-authored-by: Michael Zalimeni <michael.zalimeni@hashicorp.com>
2023-07-19 21:27:16 +00:00
hc-github-team-consul-core a799176bf1
Backport of [NET-4865] Bump golang.org/x/net to 0.12.0 into release/1.15.x (#18188)
Backport of [NET-4865] Bump golang.org/x/net to 0.12.0 into release/1.16.x (#18189)

Bump golang.org/x/net to 0.12.0

While not necessary to directly address CVE-2023-29406 (which should be
handled by using a patched version of Go when building), an
accompanying change to HTTP/2 error handling does impact agent code.

See https://go-review.googlesource.com/c/net/+/506995 for the HTTP/2
change.

Bump this dependency across our submodules as well for the sake of
potential indirect consumers of `x/net/http`.

Manual backport of 84cbf09185.
2023-07-19 16:54:33 +00:00
hc-github-team-consul-core 7a10f95a22
Backport of chore: bump upgrade integrations tests to 1.15, 116 [NET-4743] into release/1.15.x (#18147)
Co-authored-by: Nick Irvine <115657443+nfi-hashicorp@users.noreply.github.com>
2023-07-18 10:03:41 -07:00
Dhia Ayachi c940dac2a3
Fix a bug that wrongly trims domains when there is an overlap with DC name 1.15.x (#18163)
Fix a bug that wrongly trims domains when there is an overlap with DC name (#17160)

* Fix a bug that wrongly trims domains when there is an overlap with DC name

Before this change, when DC name and domain/alt-domain overlap, the domain name incorrectly trimmed from the query.

Example:

Given: datacenter = dc-test, alt-domain = test.consul.
Querying for "test-node.node.dc-test.consul" will faile, because the
code was trimming "test.consul" instead of just ".consul"

This change, fixes the issue by adding dot (.) before trimming

* trimDomain: ensure domain trimmed without modyfing original domains

* update changelog

---------

Co-authored-by: Alex Simenduev <shamil.si@gmail.com>
2023-07-18 10:03:31 -04:00
hc-github-team-consul-core e17c8f7a9a
Backport of Change docs to say 168h instead of 7d for server_rejoin_age_max into release/1.15.x (#18155)
## Backport

This PR is auto-generated from #18154 to be assessed for backporting due
to the inclusion of the label backport/1.15.



The below text is copied from the body of the original PR.

---

### Description

Addresses
https://github.com/hashicorp/consul/pull/17171#issuecomment-1636930705
 
### Testing & Reproduction steps

<!--

* In the case of bugs, describe how to replicate
* If any manual tests were done, document the steps and the conditions
to replicate
* Call out any important/ relevant unit tests, e2e tests or integration
tests you have added or are adding

-->

### Links

<!--

Include any links here that might be helpful for people reviewing your
PR (Tickets, GH issues, API docs, external benchmarks, tools docs, etc).
If there are none, feel free to delete this section.

Please be mindful not to leak any customer or confidential information.
HashiCorp employees may want to use our internal URL shortener to
obfuscate links.

-->

### PR Checklist

* [ ] updated test coverage
* [ ] external facing docs updated
* [ ] appropriate backport labels added
* [ ] not a security concern


---

<details>
<summary> Overview of commits </summary>

  - f5a6411ce7 

</details>

Co-authored-by: David Yu <dyu@hashicorp.com>
2023-07-17 17:09:50 +00:00
hc-github-team-consul-core fbfe9c435f
Backport of [NET-4897] net/http host header is now verified and request.host that contains socked now error into release/1.15.x (#18144)
## Backport

This PR is auto-generated from #18129 to be assessed for backporting due
to the inclusion of the label backport/1.15.


🚨
>**Warning** automatic cherry-pick of commits failed. If the first
commit failed,
you will see a blank no-op commit below. If at least one commit
succeeded, you
will see the cherry-picked commits up to, _not including_, the commit
where
the merge conflict occurred.

The person who merged in the original PR is:
@jmurret
This person should manually cherry-pick the original PR into a new
backport PR,
and close this one when the manual backport PR is merged in.

> merge conflict error: POST
https://api.github.com/repos/hashicorp/consul/merges: 409 Merge conflict
[]



The below text is copied from the body of the original PR.

---

### Description

This is related to https://github.com/hashicorp/consul/pull/18124 where
we pinned the go versions in CI to 1.20.5 and 1.19.10.

go 1.20.6 and 1.19.11 now validate request host headers for validity,
including the hostname cannot be prefixed with slashes.

For local communications (npipe://, unix://), the hostname is not used,
but we need valid and meaningful hostname. Prior versions go Go would
clean the host header, and strip slashes in the process, but go1.20.6
and go1.19.11 no longer do, and reject the host header. Around the
community we are seeing that others are intercepting the req.host and if
it starts with a slash or ends with .sock, they changing the host to
localhost or another dummy value.

[client: define a "dummy" hostname to use for local connections by
thaJeztah · Pull Request #45942 ·
moby/moby](https://github.com/moby/moby/pull/45942)

### Testing & Reproduction steps

Check CI tests.

### Links
* [ ] updated test coverage
* [ ] external facing docs updated
* [ ] appropriate backport labels added
* [ ] not a security concern


---

<details>
<summary> Overview of commits </summary>

- 747195f7aa -
516492420b -
f4d6ca19f8 -
a47407115e -
8c03b36e00 -
c50b17c46e -
cc8eaf8213 -
ce10138d07 -
133c7ecbf5 -
b0bd440d8f -
8f223080c0 -
f8578b0749 -
4452224d6a -
19634a4b3b

</details>

---------

Co-authored-by: temp <temp@hashicorp.com>
Co-authored-by: John Murret <john.murret@hashicorp.com>
2023-07-17 09:36:51 -06:00
hc-github-team-consul-core af21077c8d
Backport of Docs: fix unmatched bracket for health checks page into release/1.15.x (#18136)
## Backport

This PR is auto-generated from #18134 to be assessed for backporting due
to the inclusion of the label backport/1.15.



The below text is copied from the body of the original PR.

---

### Description

- Fix unmatched bracket in the
[doc](https://developer.hashicorp.com/consul/docs/services/usage/checks#ttl-check-configuration)
(see the following screenshot of the page)

<img width="618" alt="Screenshot 2023-07-13 at 9 01 19 PM"
src="https://github.com/hashicorp/consul/assets/463631/20707735-906f-4b06-999d-44e6329a9fec">


### Testing & Reproduction steps

<!--

* In the case of bugs, describe how to replicate
* If any manual tests were done, document the steps and the conditions
to replicate
* Call out any important/ relevant unit tests, e2e tests or integration
tests you have added or are adding

-->

### Links



<!--

Include any links here that might be helpful for people reviewing your
PR (Tickets, GH issues, API docs, external benchmarks, tools docs, etc).
If there are none, feel free to delete this section.

Please be mindful not to leak any customer or confidential information.
HashiCorp employees may want to use our internal URL shortener to
obfuscate links.

-->

### PR Checklist

* [ ] updated test coverage
* [ ] external facing docs updated
* [ ] appropriate backport labels added
* [ ] not a security concern


---

<details>
<summary> Overview of commits </summary>

  - d40243b3a3 

</details>

Co-authored-by: cskh <hui.kang@hashicorp.com>
2023-07-14 14:13:59 +00:00
hc-github-team-consul-core 9bd4d342eb
Backport of [NET-4895] ci - api tests and consul container tests error because of dependency bugs with go 1.20.6. Pin go to 1.20.5. into release/1.15.x (#18127)
## Backport

This PR is auto-generated from #18124 to be assessed for backporting due
to the inclusion of the label backport/1.15.


🚨
>**Warning** automatic cherry-pick of commits failed. If the first
commit failed,
you will see a blank no-op commit below. If at least one commit
succeeded, you
will see the cherry-picked commits up to, _not including_, the commit
where
the merge conflict occurred.

The person who merged in the original PR is:
@jmurret
This person should manually cherry-pick the original PR into a new
backport PR,
and close this one when the manual backport PR is merged in.

> merge conflict error: POST
https://api.github.com/repos/hashicorp/consul/merges: 409 Merge conflict
[]



The below text is copied from the body of the original PR.

---

### Description
The following jobs started failing when go 1.20.6 was released:
- `go-test-api-1-19`
- `go-test-api-1-20`
- `compatibility-integration-tests`
- `upgrade-integration-tests`

`compatibility-integration-tests` and `compatibility-integration-tests`
to this testcontainers issue:
https://github.com/testcontainers/testcontainers-go/issues/1359. This
issue calls for testcontainers to release a new version when one of
their dependencies is fixed. When that is done, we will unpin the go
versions in `compatibility-integration-tests` and
`compatibility-integration-tests`.

### Testing & Reproduction steps

See these jobs broken in CI and then see them work with this PR.


---

<details>
<summary> Overview of commits </summary>

- 747195f7aa -
516492420b -
f4d6ca19f8 -
a47407115e -
8c03b36e00 -
c50b17c46e -
7b55f66218 -
93ce5fcc61

</details>

---------

Co-authored-by: temp <temp@hashicorp.com>
Co-authored-by: John Murret <john.murret@hashicorp.com>
Co-authored-by: Chris Thain <32781396+cthain@users.noreply.github.com>
2023-07-13 14:54:24 -06:00
hc-github-team-consul-core f8760eeacf
backport of commit 5403b62315 (#18122)
Co-authored-by: nv-hashi <80716011+nv-hashi@users.noreply.github.com>
2023-07-13 02:10:02 +00:00
hc-github-team-consul-core 4582260281
ci: build s390x (#18117)
Co-authored-by: Dan Bond <danbond@protonmail.com>
2023-07-12 17:00:18 -07:00
hc-github-team-consul-core 1bbf911e2c
backport of commit b9b58ec763 (#18109)
Co-authored-by: John Murret <john.murret@hashicorp.com>
2023-07-12 17:26:45 +00:00
hc-github-team-consul-core 3f475dedf7
Backport of Docs for dataplane upgrade on k8s into release/1.15.x (#18104)
* backport of commit 0d7bee8adc

* backport of commit 408cbe8ae0

* backport of commit a0854784dc

* backport of commit 71c4c6564f

* backport of commit 0c060fa2ba

---------

Co-authored-by: Luke Kysow <1034429+lkysow@users.noreply.github.com>
Co-authored-by: David Yu <dyu@hashicorp.com>
2023-07-12 17:11:54 +00:00
hc-github-team-consul-core 40fd64b60d
Backport of ci: use gotestsum v1.10.1 [NET-4042] into release/1.15.x (#18093)
Co-authored-by: Nick Irvine <115657443+nfi-hashicorp@users.noreply.github.com>
2023-07-12 09:57:56 -07:00
hc-github-team-consul-core c8a6121eba
Backport of Passes configured role name to Vault for AWS auth in Connect CA into release/1.15.x (#18098)
* backport of commit 4034bb2b3e

* backport of commit 9c4c3c50f0

* backport of commit 7282078993

---------

Co-authored-by: Tom Davies <thomas.23.davies@bt.com>
2023-07-12 16:36:28 +00:00
hc-github-team-consul-core 49f628359d
backport of commit 4669c09db2 (#18073)
Co-authored-by: Krastin Krastev <krastin@hashicorp.com>
2023-07-12 12:43:18 +03:00
hc-github-team-consul-core fc52598d55
Backport of Fix a couple typos in Agent Telemetry Metrics docs into release/1.15.x (#18083)
* backport of commit 58ef5fdd8f

* backport of commit 857427ae8c

---------

Co-authored-by: josh <josh.timmons@hashicorp.com>
2023-07-11 20:35:43 +00:00
hc-github-team-consul-core 9c4861bb93
Backport of [OSS] Fix initial_fetch_timeout to wait for all xDS resources into release/1.15.x (#18064)
* fix(connect): set initial_fetch_time to wait indefinitely

* changelog

* PR feedback 1

---------

Co-authored-by: DanStough <dan.stough@hashicorp.com>
2023-07-10 17:43:45 -04:00
David Yu e261d0a25a
docs - helm consul k8s 1.1.x helm chart reference (#18057)
* add helm chart changes
* ran again with updated values
Co-authored-by: Dan Stough <dan.stough@hashicorp.com>
2023-07-10 12:39:58 -07:00
hc-github-team-consul-core b7563515ce
Backport of Fix removed service-to-service peering links into release/1.15.x (#18018)
* no-op commit due to failed cherry-picking

* Fix removed service-to-service peering links (#17221)

* docs: fix removed service-to-service peering links

* docs: extend peering-via-mesh-gateways intro (thanks @trujillo-adam)

---------

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

---------

Co-authored-by: temp <temp@hashicorp.com>
Co-authored-by: Michael Hofer <karras@users.noreply.github.com>
Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>
2023-07-07 15:12:49 -07:00
hc-github-team-consul-core 2a6e0848cf
Backport of docs - add jobs use case for service mesh k8s into release/1.15.x (#18042)
* manually resolve conflicts
* remove extraneous heading
* address feedback

---------

Co-authored-by: temp <temp@hashicorp.com>
Co-authored-by: David Yu <dyu@hashicorp.com>
2023-07-07 10:26:56 -07:00
hc-github-team-consul-core 4d460a8b7d
Backport of docs - add service sync annotations and k8s service weight annotation into release/1.15.x (#18039)
* backport of commit e1bf428494

* backport of commit ddf214e638

* backport of commit e41bd9c4e3

* backport of commit b9cfc86e14

* backport of commit 0ddf013d6c

* backport of commit 1b0b513b05

* backport of commit 29442ad641

* backport of commit 5e7ddf5c7e

* backport of commit f2b6fa7b43

* backport of commit 83b84a985a

* backport of commit 56d81738cc

* backport of commit 0ab44f06c7

* backport of commit 69c99fbccb

* backport of commit b79e1245c1

* backport of commit fb1441976b

* backport of commit 3b7b2a0424

---------

Co-authored-by: David Yu <dyu@hashicorp.com>
2023-07-06 20:50:18 +00:00
hc-github-team-consul-core e1b6f23787
backport of commit 4b1ed38b41 (#18025)
Co-authored-by: J.C. Jones <jc@letsencrypt.org>
2023-07-05 15:24:17 -07:00
hc-github-team-consul-core a741e94173
Backport of [OSS] Improve Gateway Test Coverage of Catalog Health into release/1.15.x (#18013)
* backport of commit 954bd6ab1f

* backport of commit 85c32d8f2e

* backport of commit 7ea3d622d7

* backport of commit 127ae69c6d

* backport of commit e04099b6cd

* fix import

---------

Co-authored-by: DanStough <dan.stough@hashicorp.com>
2023-07-05 16:58:39 -04:00
Derek Menteer 77014793b4
Manual backport of #17894. (#18008) 2023-07-05 09:49:00 -05:00
hc-github-team-consul-core 3011885ad8
backport of commit f6df37444b (#17994)
Co-authored-by: Evan Phoenix <evan@phx.io>
2023-07-01 02:15:30 +00:00
hc-github-team-consul-core 0a465dd0d2
Backport of watch: support -filter for consul watch: checks, services, nodes, service into release/1.15.x (#17986)
* backport to 1.15.x

---------

Co-authored-by: cskh <hui.kang@hashicorp.com>
2023-06-30 13:26:31 -07:00
hc-github-team-consul-core 20b8427f8c
Backport of feature - [NET - 4005] - [Supportability] Reloadable Configuration - enable_debug into release/1.15.x (#17968)
* backport of commit 10f500e895

* merge conf resolved

* removed experiments

---------

Co-authored-by: Ashesh Vidyut <ashesh.vidyut@hashicorp.com>
Co-authored-by: Ashesh Vidyut <134911583+absolutelightning@users.noreply.github.com>
2023-06-30 14:07:17 +00:00
hc-github-team-consul-core 2831e1acdc
backport of commit ff6b620db7 (#17923)
Co-authored-by: natemollica-dev <57850649+natemollica-nm@users.noreply.github.com>
Co-authored-by: David Yu <dyu@hashicorp.com>
2023-06-30 03:11:01 +00:00
hc-github-team-consul-core c71d06733c
Backport of Fix streaming backend link into release/1.15.x (#17960)
* backport of commit 4f7d21da6c

* backport of commit d1ba0e877c

---------

Co-authored-by: David Yu <dyu@hashicorp.com>
2023-06-29 19:41:27 +00:00
hc-github-team-consul-core 7c3f4528ba
Backport of Fixes Secondary ConnectCA update into release/1.15.x (#17953)
* backport of commit afa1f42cc7

* backport of commit e0970025d4

* backport of commit 2f2aad545b

* backport of commit 4a5c9c181f

---------

Co-authored-by: Ranjandas <thejranjan@gmail.com>
Co-authored-by: Chris S. Kim <kisunji92@gmail.com>
2023-06-29 14:53:15 +00:00
hc-github-team-consul-core 4e3a2fd343
deps: coredns v1.10.1 (#17933)
Co-authored-by: Dan Bond <danbond@protonmail.com>
2023-06-28 17:02:29 +00:00
hc-github-team-consul-core c53d4051bb
Backport of Reference hashicorp/consul instead of consul for Docker image into release/1.15.x (#17919)
* backport of commit d490377d50

* Reference hashicorp/consul instead of consul for Docker image (#17914)

* Reference hashicorp/consul instead of consul for Docker image

* Update Make targets that pull consul directly

---------

Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>
2023-06-28 00:43:29 +00:00
John Murret 9d81853813
Include changes from v1.15.4 in 1.15.x (#17892) 2023-06-27 15:45:35 -06:00
hc-github-team-consul-core df552274c3
backport of commit a87f4e37b9 (#17906)
Co-authored-by: Luke Kysow <1034429+lkysow@users.noreply.github.com>
2023-06-27 17:52:41 +00:00
hc-github-team-consul-core e72edb4e49
Backport of Add emit_tags_as_labels to envoy bootstrap config when using Consul Telemetry Collector into release/1.15.x (#17900)
* backport of commit 94584cf540

* backport of commit aed6a00693

* backport of commit 2eb7a2a067

---------

Co-authored-by: josh <josh.timmons@hashicorp.com>
2023-06-27 17:04:35 +00:00
hc-github-team-consul-core 4894d99de2
backport of commit 38301b5ccc (#17898)
Co-authored-by: mr-miles <miles.waller@gmail.com>
2023-06-27 09:40:01 -07:00
hc-github-team-consul-core fa791fa7d0
deps: aws-sdk-go v1.44.289 (#17879)
Signed-off-by: Dan Bond <danbond@protonmail.com>
Co-authored-by: Dan Bond <danbond@protonmail.com>
2023-06-26 17:55:05 +00:00
hc-github-team-consul-core df7795ebd0
Backport of docs: update upgrade to consul-dataplane docs on k8s into release/1.15.x (#17864)
* backport of commit ad7cbd5c70

* backport of commit 122b50b088

* backport of commit fea8da7109

---------

Co-authored-by: Iryna Shustava <iryna@hashicorp.com>
2023-06-23 22:45:37 +00:00
hc-github-team-consul-core 93b152c82d
backport of commit 9e0e1160d5 (#17857)
Co-authored-by: V. K <cn007b@gmail.com>
2023-06-23 18:56:46 +00:00
hc-github-team-consul-core 65cc60e87f
Backport of APIGW Normalize Status Conditions into release/1.15.x (#17844)
* APIGW Normalize Status Conditions (#16994)

* normalize status conditions for gateways and routes

* Added tests for checking condition status and panic conditions for
validating combinations, added dummy code for fsm store

* get rid of unneeded gateway condition generator struct

* Remove unused file

* run go mod tidy

* Update tests, add conflicted gateway status

* put back removed status for test

* Fix linting violation, remove custom conflicted status

* Update fsm commands oss

* Fix incorrect combination of type/condition/status

* cleaning up from PR review

* Change "invalidCertificate" to be of accepted status

* Move status condition enums into api package

* Update gateways controller and generated code

* Update conditions in fsm oss tests

* run go mod tidy on consul-container module to fix linting

* Fix type for gateway endpoint test

* go mod tidy from changes to api

* go mod tidy on troubleshoot

* Fix route conflicted reason

* fix route conflict reason rename

* Fix text for gateway conflicted status

* Add valid certificate ref condition setting

* Revert change to resolved refs to be handled in future PR

* Resolve sneaky merge conflicts

---------

Co-authored-by: John Maguire <john.maguire@hashicorp.com>
Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>
2023-06-23 14:05:11 -04:00