Commit Graph

20142 Commits (400c6a8bdcd75c27c2cc0d7a7f6f2f7f8d210a6d)

Author SHA1 Message Date
hc-github-team-consul-core c2ef21fdc7
Backport of docs: admin partition and DNS clarification into release/1.15.x (#18632)
* backport of commit bd136d12dc

* backport of commit cb770fa67d

---------

Co-authored-by: Jared Kirschner <85913323+jkirschner-hashicorp@users.noreply.github.com>
2023-08-31 19:09:29 +00:00
Ashvitha 4f4a95d458
Manual Backport of [HCP Telemetry] Move first TelemetryConfig Fetch into the TelemetryConfigProvider into release/1.15.x (#18627)
* [HCP Telemetry] Move first TelemetryConfig Fetch into the TelemetryConfigProvider (#18318)

* Add Enabler interface to turn sink on/off

* Use h for hcpProviderImpl vars, fix PR feeback and fix errors

* Keep nil check in exporter and fix tests

* Clarify comment and fix function name

* Use disable instead of enable

* Fix errors nit in otlp_transform

* Add test for refreshInterval of updateConfig

* Add disabled field in MetricsConfig struct

* Fix PR feedback: improve comment and remove double colons

* Fix deps test which requires a maybe

* Update hcp-sdk-go to v0.61.0

* use disabled flag in telemetry_config.go

* Handle 4XX errors in telemetry_provider

* Fix deps test

* Check 4XX instead

* Run make go-mod-tidy

* Delete test-integ
2023-08-31 15:04:04 -04:00
Joshua Timmons fa456a9875
Reduce the frequency of metric exports to minutely (#18584) (#18599) 2023-08-28 20:38:27 +00:00
hc-github-team-consul-core 175a5d6c5d
Backport of NET-5382 & PLAT-1159: Do not trigger workflow if only doc files are in commit history into release/1.15.x (#18569)
backport of commit c833fcc365

Co-authored-by: NiniOak <anita.akaeze@hashicorp.com>
2023-08-23 19:37:51 +00:00
Semir Patel 83a2e726dc
[BACKPORT] 1.15.x manual backport of OSS->CE branch (#18552)
OSS -> CE (community edition) changes (#18517)
2023-08-23 11:55:18 -05:00
hc-github-team-consul-core d738be6aa8
Backport of bug: prevent go routine leakage due to existing DeferCheck into release/1.15.x (#18564)
* backport of commit 06d4c72f68

* backport of commit 42c37bb2c1

---------

Co-authored-by: cskh <hui.kang@hashicorp.com>
2023-08-23 14:59:25 +00:00
hc-github-team-consul-core 5c46e020b2
Backport of CI Split integration tests to run nightly and every PR into release/1.15.x (#18521)
CI Split integration tests to run nightly and every PR (#18518)

Co-authored-by: temp <temp@hashicorp.com>
2023-08-21 18:32:30 -04:00
hc-github-team-consul-core 31c928cefd
Backport of docs: Update K8s TGW tutorial to reliably obtain role ID into release/1.15.x (#18507)
backport of commit 1673852b39

Co-authored-by: Blake Covarrubias <blake@covarrubi.as>
2023-08-17 16:33:01 +00:00
hc-github-team-consul-core 8b5e10356b
Backport of NET-5371 License checker pt2 into release/1.15.x (#18494)
NET-5371 License checker pt2 (#18491)

* Update grep command to work on ubuntu

* Run license checker when new commits are pushed to PR

Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>
2023-08-16 21:33:44 +00:00
hc-github-team-consul-core 77b49df6a3
Backport of Add license-checker action that fails when any backported file contains BUSL header into release/1.15.x (#18487)
Add license-checker action that fails when any backported file contains BUSL header (#18485)

* Add license-checker action that fails when any backported file contains BUSL header

* Quote echoed variable to retain line breaks

* Add ticket to reference for more details

Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>
2023-08-16 15:09:47 -04:00
hc-github-team-consul-core bcf43ff537
Backport of docs: specify manual server metadata intervention into release/1.15.x (#18480)
docs: specify manual server metadata intervention

Co-authored-by: Dan Bond <danbond@protonmail.com>
2023-08-16 17:00:29 +00:00
Melisa Griffin 528688d072
Updates 1.15.x for changes to helm docs (#18468)
Updates Helm docs to better align with style
2023-08-15 13:08:43 -04:00
hc-github-team-consul-core a12708dc16
Backport of NET-5187: Upgrade test timeout due to log producer errors into release/1.15.x (#18471)
backport of commit 59bfc81d49

Co-authored-by: NiniOak <anita.akaeze@hashicorp.com>
2023-08-15 16:52:23 +00:00
Melisa Griffin 3e5ffe5602
Updates helm docs to include changes from consul-k8s 1.1.4 (#18441) 2023-08-10 22:01:09 -07:00
hc-github-team-consul-core 321780e87b
Backport of update ECS links into release/1.15.x (#18433)
backport of commit 0f355b0cd5

Co-authored-by: Eddie Rowe <74205376+eddie-rowe@users.noreply.github.com>
2023-08-10 08:27:14 -07:00
hc-github-team-consul-core bc5a3576cf
Backport of bump testcontainers-go from 0.22.0 and remove pinned go version in in… into release/1.15.x (#18407)
* bump version

* remove duplicate test file

---------


Co-authored-by: Hui Kang <hui.kang@hashicorp.com>
2023-08-08 21:53:11 -04:00
cskh 57cf6f0479
Backport 1.15.x Upgrade test: remove outdated test and disable log du… (#18416)
Backport 1.16.x Upgrade test: remove outdated test and disable log due to verbosity (… (#18413)

Upgrade test: remove outdated test and disable log due to verbosity (#18403)

* remove outdated test

* disable log since we have too many parallel tests
2023-08-08 22:47:04 +00:00
Poonam Jadhav cdfaf356c2
chore: changes from the 1.15.5 release (#18412) 2023-08-08 17:54:27 -04:00
hc-github-team-consul-core afc7cd1be4
Backport of Add redirects for mesh-gateway docs into release/1.15.x (#18379)
* no-op commit due to failed cherry-picking

* resolve merge conflicts

---------

Co-authored-by: temp <temp@hashicorp.com>
Co-authored-by: Tu Nguyen <im2nguyen@users.noreply.github.com>
2023-08-04 14:25:18 -06:00
hc-github-team-consul-core 6ba25f7678
Backport of docs: fix the description of client rpc into release/1.15.x (#18212)
backport of commit 4e8cdddb9f

Co-authored-by: cskh <hui.kang@hashicorp.com>
2023-08-03 22:54:33 +00:00
hc-github-team-consul-core fdffac5acc
Backport of add some initial CODEOWNERS into release/1.15.x (#18374)
backport of commit 7cd00e75d3

Co-authored-by: R.B. Boyer <rb@hashicorp.com>
2023-08-03 21:43:15 +00:00
hc-github-team-consul-core fae68445cb
Backport of Fix policy lookup to allow for slashes into release/1.15.x (#18371)
* backport of commit 1a9cded960

* backport of commit cfec746d8b

* backport of commit 8a9db4cffc

* backport of commit ac13bf16d6

---------

Co-authored-by: Jeremy Jacobson <jeremy.jacobson@hashicorp.com>
2023-08-03 20:45:15 +00:00
hc-github-team-consul-core 78f6df469c
Backport of [NET-5146] security: Update Go version to 1.20.7 and `x/net` to 0.13.0 into release/1.15.x (#18362)
backport of commit 905e371607

Co-authored-by: Michael Zalimeni <michael.zalimeni@hashicorp.com>
2023-08-02 19:05:45 +00:00
Ashvitha 1fcd7747d2
Backport of [HCP Telemetry] Periodic Refresh for Dynamic Telemetry Configuration into release/1.15.x (#18360)
[HCP Telemetry] Periodic Refresh for Dynamic Telemetry Configuration (#18168)

* OTElExporter now uses an EndpointProvider to discover the endpoint

* OTELSink uses a ConfigProvider to obtain filters and labels configuration

* improve tests for otel_sink

* Regex logic is moved into client for a method on the TelemetryConfig object

* Create a telemetry_config_provider and update deps to use it

* Fix conversion

* fix import newline

* Add logger to hcp client and move telemetry_config out of the client.go file

* Add a telemetry_config.go to refactor client.go

* Update deps

* update hcp deps test

* Modify telemetry_config_providers

* Check for nil filters

* PR review updates

* Fix comments and move around pieces

* Fix comments

* Remove context from client struct

* Moved ctx out of sink struct and fixed filters, added a test

* Remove named imports, use errors.New if not fformatting

* Remove HCP dependencies in telemetry package

* Add success metric and move lock only to grab the t.cfgHahs

* Update hash

* fix nits

* Create an equals method and add tests

* Improve telemetry_config_provider.go tests

* Add race test

* Add missing godoc

* Remove mock for MetricsClient

* Avoid goroutine test panics

* trying to kick CI lint issues by upgrading mod

* imprve test code and add hasher for testing

* Use structure logging for filters, fix error constants, and default to allow all regex

* removed hashin and modify logic to simplify

* Improve race test and fix PR feedback by removing hash equals and avoid testing the timer.Ticker logic, and instead unit test

* Ran make go-mod-tidy

* Use errtypes in the test

* Add changelog

* add safety check for exporter endpoint

* remove require.Contains by using error types, fix structure logging, and fix success metric typo in exporter

* Fixed race test to have changing config values

* Send success metric before modifying config

* Avoid the defer and move the success metric under
2023-08-02 13:38:00 -04:00
hc-github-team-consul-core 1f07e1bd26
Backport of NET-4240 - Snapshots are failing on Windows into release/1.15.x (#18355)
* backport of commit 7f0a3db505

* backport of commit ea350bff0d

* cherry-pick

* go mod tidy

---------

Co-authored-by: absolutelightning <ashesh.vidyut@hashicorp.com>
Co-authored-by: Ashesh Vidyut <134911583+absolutelightning@users.noreply.github.com>
2023-08-02 13:40:52 +05:30
hc-github-team-consul-core 30a16232e9
Backport of [CC-5719] Add support for builtin global-read-only policy into release/1.15.x (#18344)
[CC-5719] Add support for builtin global-read-only policy (#18319)

* [CC-5719] Add support for builtin global-read-only policy

* Add changelog

* Add read-only to docs

* Fix some minor issues.

* Change from ReplaceAll to Sprintf

* Change IsValidPolicy name to return an error instead of bool

* Fix PolicyList test

* Fix other tests

* Apply suggestions from code review



* Fix state store test for policy list.

* Fix naming issues

* Update acl/validation.go



* Update agent/consul/acl_endpoint.go

---------

Co-authored-by: Jeremy Jacobson <jjacobson93@users.noreply.github.com>
Co-authored-by: Paul Glass <pglass@hashicorp.com>
Co-authored-by: Chris Thain <32781396+cthain@users.noreply.github.com>
2023-08-01 21:42:12 +00:00
hc-github-team-consul-core 39ed6a77c5
Backport of fix typo in create a mesh token docs into release/1.15.x (#18340)
backport of commit ae87778947

Co-authored-by: Ronald Ekambi <ronekambi@gmail.com>
2023-08-01 14:37:42 +00:00
Michael Zalimeni 85e011531c
Fix utilization reporting docs sync (#18313)
Ensure that all release branches are aligned on content.

Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>
2023-07-27 14:14:53 -04:00
Jeremy Jacobson 1cdb1d5b61
Backport of [CC-5718] Remove HCP token requirement during bootstrap (#18288)
[CC-5718] Remove HCP token requirement during bootstrap
2023-07-27 09:28:25 -07:00
hc-github-team-consul-core 8dd9624352
Backport of [NET-4904] Update list of Envoy versions in docs into release/1.15.x (#18310)
Update list of Envoy versions in docs

Update supported Envoy versions across Consul release versions.

Co-authored-by: Michael Zalimeni <michael.zalimeni@hashicorp.com>
2023-07-27 16:26:47 +00:00
Michael Zalimeni a5734755fc
[NET-4904] Update list of Envoy versions on 1.15.x (#18304)
Update list of Envoy versions

Update supported envoy versions to 1.22.11, 1.23.12, 1.24.10, 1.25.9.
2023-07-27 15:45:40 +00:00
hc-github-team-consul-core 3980a286a0
Backport of NET-5049: subscribe to bound-api-gateway only after receiving api-gateway into release/1.15.x (#18294)
* backport of commit 972b20aee7

* backport of commit 2756817142

* backport of commit 72c8f1e4db

---------

Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>
2023-07-26 22:26:12 +00:00
hc-github-team-consul-core a359d25707
Backport of docs: Consul on Kubernetes specific upgrade info into release/1.15.x (#18286)
* backport of commit 9b02a4c147

* backport of commit 3cf5e283cc

* backport of commit ecec4c8caf

* backport of commit edee17705d

---------

Co-authored-by: boruszak <jeffrey.boruszak@hashicorp.com>
2023-07-26 14:28:13 -07:00
hc-github-team-consul-core 6ed91b70c9
Backport of Update K8s changelog to address cloud auto-join change in 1.0.0 into release/1.15.x (#18297)
backport of commit 1584728c3b

Co-authored-by: Paul Glass <pglass@hashicorp.com>
2023-07-26 21:09:14 +00:00
cskh e9615bfa59
Backport of member cli: add -filter expression to flags into release/1.15.x (#18279)
member cli: add -filter expression to flags
2023-07-25 16:23:22 -04:00
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