Commit Graph

19358 Commits (299ed9c35d7b2b7e9f5a8418435e182b4896a10d)

Author SHA1 Message Date
claire labry 299ed9c35d
[Manual Backport]: add prepare and bump version workflows for 1.14.x (#16417)
* add prepare and bump version workflows for 1.14.x

* test VBA

* Update VERSION
2023-03-09 17:05:26 -06:00
hc-github-team-consul-core 64a79650ab
Backport of added a backport-checker GitHub action into release/1.14.x (#16583)
* backport of commit 15c255a2e8

* backport of commit 49b5184871

---------

Co-authored-by: Michael Wilkerson <mwilkerson@hashicorp.com>
Co-authored-by: Michael Wilkerson <62034708+wilkermichael@users.noreply.github.com>
2023-03-09 12:40:29 -08:00
Semir Patel 89e5da08b5 Bump version for next release 2023-03-08 13:29:08 -06:00
Semir Patel a3548a243d Update changelog for 1.14.5 patch release 2023-03-08 13:18:29 -06:00
hc-github-team-consul-core 84cb618db2
Backport of Fix Peering Service Cleanup Bug into release/1.14.x (#16572)
* backport of commit e5172b9b35

* add peer service string function

---------

Co-authored-by: Eric <eric@haberkorn.co>
2023-03-08 16:58:32 +00:00
Andrew Stucki 673653caa0
Manual Backport of Add ServiceResolver RequestTimeout for route timeouts to make TerminatingGateway upstream timeouts configurable into release/1.14.x (#16561)
* Leverage ServiceResolver ConnectTimeout for route timeouts to make TerminatingGateway upstream timeouts configurable

* Regenerate golden files

* Add RequestTimeout field

* Add changelog entry
2023-03-07 16:27:06 -05:00
Andrew Stucki f38cefb2a0
Manual Backport of Fix resolution of service resolvers with subsets for external upstreams into release/1.14.x (#16560)
* Fix resolution of service resolvers with subsets for external upstreams

* Add tests

* Add changelog entry

* Update view filter logic
2023-03-07 15:34:12 -05:00
Andrew Stucki 89cee200ec
Manual Backport of Fix issue where terminating gateway service resolvers weren't properly cleaned up into release/1.14.x (#16558)
* Fix issue where terminating gateway service resolvers weren't properly cleaned up

* Add integration test for cleaning up resolvers

* Add changelog entry

* Use state test and drop integration test
2023-03-07 15:29:00 -05:00
hc-github-team-consul-core 38701d9954
Backport of Update docs to reflect functionality into release/1.14.x (#16554)
* backport of commit 0d101f0e17

* backport of commit 140d609194

---------

Co-authored-by: Tu Nguyen <im2nguyen@gmail.com>
2023-03-07 11:22:02 -05:00
hc-github-team-consul-core cf3485ded0
backport of commit 5dca39b813 (#16535)
Co-authored-by: trujillo-adam <ajosetru@gmail.com>
2023-03-03 23:04:41 +00:00
hc-github-team-consul-core 9102716ba2
backport of commit 39a967064c (#16526)
Co-authored-by: trujillo-adam <ajosetru@gmail.com>
2023-03-03 11:29:29 -08:00
hc-github-team-consul-core 83583e01f1
Backport of Remove merge conflict leftovers on Consul at Scale page into release/1.14.x (#16514)
* merge conflict

---------
Co-authored-by: Michael Hofer <karras@users.noreply.github.com>
2023-03-02 13:34:44 -08:00
hc-github-team-consul-core 173811a03d
docs: clarify license expiration upgrade and termination behavior (#16473) 2023-03-02 10:39:06 -06:00
hc-github-team-consul-core 5b3960d004
Backport of update services nav titles into release/1.14.x (#16487)
* backport of commit 6f5afe38f5

* backport of commit dca8a4a34c

---------

Co-authored-by: trujillo-adam <ajosetru@gmail.com>
2023-03-01 19:52:53 +00:00
hc-github-team-consul-core 2ef873e989
Backport of Changed titles for services pages to sentence style cap into release/1.14.x (#16478)
* backport of commit 239ee7db9b

* backport of commit 1293731516

---------

Co-authored-by: trujillo-adam <ajosetru@gmail.com>
2023-02-28 22:56:53 -05:00
hc-github-team-consul-core 3fae1086a4
Backport of Docs/services refactor docs day 122022 into release/1.14.x (#16469)
* no-op commit due to failed cherry-picking

* Docs/services refactor docs day 122022 (#16103)

* converted main services page to services overview page

* set up services usage dirs

* added Define Services usage page

* converted health checks everything page to Define Health Checks usage page

* added Register Services and Nodes usage page

* converted Query with DNS to Discover Services and Nodes Overview page

* added Configure DNS Behavior usage page

* added Enable Static DNS Lookups usage page

* added the Enable Dynamic Queries DNS Queries usage page

* added the Configuration dir and overview page - may not need the overview, tho

* fixed the nav from previous commit

* added the Services Configuration Reference page

* added Health Checks Configuration Reference page

* updated service defaults configuraiton entry to new configuration ref format

* fixed some bad links found by checker

* more bad links found by checker

* another bad link found by checker

* converted main services page to services overview page

* set up services usage dirs

* added Define Services usage page

* converted health checks everything page to Define Health Checks usage page

* added Register Services and Nodes usage page

* converted Query with DNS to Discover Services and Nodes Overview page

* added Configure DNS Behavior usage page

* added Enable Static DNS Lookups usage page

* added the Enable Dynamic Queries DNS Queries usage page

* added the Configuration dir and overview page - may not need the overview, tho

* fixed the nav from previous commit

* added the Services Configuration Reference page

* added Health Checks Configuration Reference page

* updated service defaults configuraiton entry to new configuration ref format

* fixed some bad links found by checker

* more bad links found by checker

* another bad link found by checker

* fixed cross-links between new topics

* updated links to the new services pages

* fixed bad links in scale file

* tweaks to titles and phrasing

* fixed typo in checks.mdx

* started updating the conf ref to latest template

* update SD conf ref to match latest CT standard

* Apply suggestions from code review

Co-authored-by: Eddie Rowe <74205376+eddie-rowe@users.noreply.github.com>

* remove previous version of the checks page

* fixed cross-links

* Apply suggestions from code review

manual cherrypick

Co-authored-by: Eddie Rowe <74205376+eddie-rowe@users.noreply.github.com>

---------

Co-authored-by: Eddie Rowe <74205376+eddie-rowe@users.noreply.github.com>

* fixing merge conflict lines

* fixing merge conflict lines

* Docs/services refactor docs day 122022 (#16103)

* converted main services page to services overview page

* set up services usage dirs

* added Define Services usage page

* converted health checks everything page to Define Health Checks usage page

* added Register Services and Nodes usage page

* converted Query with DNS to Discover Services and Nodes Overview page

* added Configure DNS Behavior usage page

* added Enable Static DNS Lookups usage page

* added the Enable Dynamic Queries DNS Queries usage page

* added the Configuration dir and overview page - may not need the overview, tho

* fixed the nav from previous commit

* added the Services Configuration Reference page

* added Health Checks Configuration Reference page

* updated service defaults configuraiton entry to new configuration ref format

* fixed some bad links found by checker

* more bad links found by checker

* another bad link found by checker

* converted main services page to services overview page

* set up services usage dirs

* added Define Services usage page

* converted health checks everything page to Define Health Checks usage page

* added Register Services and Nodes usage page

* converted Query with DNS to Discover Services and Nodes Overview page

* added Configure DNS Behavior usage page

* added Enable Static DNS Lookups usage page

* added the Enable Dynamic Queries DNS Queries usage page

* added the Configuration dir and overview page - may not need the overview, tho

* fixed the nav from previous commit

* added the Services Configuration Reference page

* added Health Checks Configuration Reference page

* updated service defaults configuraiton entry to new configuration ref format

* fixed some bad links found by checker

* more bad links found by checker

* another bad link found by checker

* fixed cross-links between new topics

* updated links to the new services pages

* fixed bad links in scale file

* tweaks to titles and phrasing

* fixed typo in checks.mdx

* started updating the conf ref to latest template

* update SD conf ref to match latest CT standard

* Apply suggestions from code review

Co-authored-by: Eddie Rowe <74205376+eddie-rowe@users.noreply.github.com>

* remove previous version of the checks page

* fixed cross-links

* Apply suggestions from code review

Co-authored-by: Eddie Rowe <74205376+eddie-rowe@users.noreply.github.com>

---------

Co-authored-by: Eddie Rowe <74205376+eddie-rowe@users.noreply.github.com>

* delete deprecated pages

---------

Co-authored-by: temp <temp@hashicorp.com>
Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>
Co-authored-by: Eddie Rowe <74205376+eddie-rowe@users.noreply.github.com>
Co-authored-by: trujillo-adam <ajosetru@gmail.com>
Co-authored-by: Tu Nguyen <im2nguyen@gmail.com>
2023-02-28 16:48:25 -08:00
hc-github-team-consul-core cc29508740
Backport of Docs/cluster peering 1.15 updates into release/1.14.x (#16397)
* backport of commit e878d2d3e4

* backport of commit 5a378f5794

* backport of commit 1f7e812d85

* Docs/cluster peering 1.15 updates (#16291)

* initial commit

* initial commit

* Overview updates

* Overview page improvements

* More Overview improvements

* improvements

* Small fixes/updates

* Updates

* Overview updates

* Nav data

* More nav updates

* Fix

* updates

* Updates + tip test

* Directory test

* refining

* Create restructure w/ k8s

* Single usage page

* Technical Specification

* k8s pages

* typo

* L7 traffic management

* Manage connections

* k8s page fix

* Create page tab corrections

* link to k8s

* intentions

* corrections

* Add-on intention descriptions

* adjustments

* Missing </CodeTabs>

* Diagram improvements

* Final diagram update

* Apply suggestions from code review

Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>
Co-authored-by: Tu Nguyen <im2nguyen@users.noreply.github.com>
Co-authored-by: David Yu <dyu@hashicorp.com>

* diagram name fix

* Fixes

* Updates to index.mdx

* Tech specs page corrections

* Tech specs page rename

* update link to tech specs

* K8s - new pages + tech specs

* k8s - manage peering connections

* k8s L7 traffic management

* Separated establish connection pages

* Directory fixes

* Usage clean up

* k8s docs edits

* Updated nav data

* CodeBlock Component fix

* filename

* CodeBlockConfig removal

* Redirects

* Update k8s filenames

* Reshuffle k8s tech specs for clarity, fmt yaml files

* Update general cluster peering docs, reorder CLI > API > UI, cross link to kubernetes

* Fix config rendering in k8s usage docs, cross link to general usage from k8s docs

* fix legacy link

* update k8s docs

* fix nested list rendering

* redirect fix

* page error

---------

Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>
Co-authored-by: Tu Nguyen <im2nguyen@users.noreply.github.com>
Co-authored-by: David Yu <dyu@hashicorp.com>
Co-authored-by: Tu Nguyen <im2nguyen@gmail.com>

---------

Co-authored-by: boruszak <jeffrey.boruszak@hashicorp.com>
Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com>
Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>
Co-authored-by: Tu Nguyen <im2nguyen@users.noreply.github.com>
Co-authored-by: David Yu <dyu@hashicorp.com>
Co-authored-by: Tu Nguyen <im2nguyen@gmail.com>
2023-02-23 12:52:26 -06:00
hc-github-team-consul-core ff2c9275e9
backport of commit a0598b81a3 (#16362)
Co-authored-by: Derek Menteer <derek.menteer@hashicorp.com>
2023-02-22 16:52:41 +00:00
hc-github-team-consul-core c375dd2a79
backport of commit 817d85df12 (#16343)
Co-authored-by: Derek Menteer <derek.menteer@hashicorp.com>
2023-02-21 20:10:52 +00:00
hc-github-team-consul-core 0a29abcdec
backport of commit 8c0b70c161 (#16337)
Co-authored-by: cskh <hui.kang@hashicorp.com>
2023-02-21 18:00:29 +00:00
hc-github-team-consul-core e2ec1f9718
backport of commit 49f7423ab8 (#16335)
Co-authored-by: cskh <hui.kang@hashicorp.com>
2023-02-21 10:33:43 -05:00
hc-github-team-consul-core 27b02d5b08
fix: revert go mod compat for sdk,api to 1.19 (#16323) (#16327)
Co-authored-by: Dan Stough <dan.stough@hashicorp.com>
2023-02-18 15:12:36 -05:00
Dan Stough 0448e51cf5
Manual Backport of [OSS] security: update go to 1.20.1 into release/1.14.x (#16321)
* security: update go to 1.20.1 (#16263)

* changelog
2023-02-17 18:11:45 -05:00
hc-github-team-consul-core 0442ef1296
Backport of Fix mesh gateways incorrectly matching peer locality. into release/1.14.x (#16286)
* backport of commit 9bc7f6280a

* backport of commit 0c48c9a1e8

---------

Co-authored-by: Derek Menteer <derek.menteer@hashicorp.com>
2023-02-16 15:31:58 +00:00
Derek Menteer 6717f6c239
Fix nil-pointer panics from proxycfg package. (#16280)
Prior to this PR, servers / agents would panic and crash if an ingress
or api gateway were configured to use a discovery chain that both:

1. Referenced a peered service
2. Had a mesh gateway mode of local

This could occur, because code for handling upstream watches was shared
between both connect-proxy and the gateways. As a short-term fix, this
PR ensures that the maps are always initialized for these gateway services.

This PR also wraps the proxycfg execution and service
registration calls with recover statements to ensure that future issues
like this do not put the server into an unrecoverable state.
2023-02-15 12:30:17 -06:00
hc-github-team-consul-core 461a0f7312
Backport of Update index.mdx into release/1.14.x (#16250)
* backport of commit 54a573a7d5

* backport of commit 93109a2d30

---------

Co-authored-by: Nicholas Richu <105801716+nrichu-hcp@users.noreply.github.com>
2023-02-14 10:25:43 -05:00
hc-github-team-consul-core cc1c340484
Backport of Update index.mdx into release/1.14.x (#16249)
* backport of commit 54a573a7d5

* backport of commit 93109a2d30

---------

Co-authored-by: Nicholas Richu <105801716+nrichu-hcp@users.noreply.github.com>
2023-02-13 21:39:49 +00:00
Derek Menteer 49154850b5
Fix peering acceptors in secondary datacenters. (#16233)
Prior to this commit, secondary datacenters could not be initialized
as peering acceptors if ACLs were enabled. This is due to the fact that
internal server-to-server API calls would fail because the management
token was not generated. This PR makes it so that both primary and
secondary datacenters generate their own management token whenever
a leader is elected in their respective clusters.
2023-02-10 13:06:40 -06:00
hc-github-team-consul-core a5a99c9d4a
docs: update Nomad 1.14 upgrade note to detail additonal info. (#16079)
Co-authored-by: James Rasell <jrasell@hashicorp.com>
2023-02-09 10:04:33 +00:00
hc-github-team-consul-core faaa2c11f0
command: Fix logger not initializing properly in envoy command (#16148) (#16153)
Co-authored-by: Kyle Havlovitz <kylehav@gmail.com>
2023-02-08 12:55:43 -08:00
hc-github-team-consul-core 112235700d
backport of commit 25caeb0928 (#16186)
Co-authored-by: dttung2905 <ttdao.2015@accountancy.smu.edu.sg>
2023-02-07 03:13:33 +00:00
hc-github-team-consul-core 79c0cbfcd2
backport of commit d85f040200 (#16183)
Co-authored-by: Paul Glass <pglass@hashicorp.com>
2023-02-06 23:28:43 +00:00
hc-github-team-consul-core 577a07e821
Backport of docs(service-resolver): clarify the default time unit in service-resolver.ConnectTimeout into release/1.14.x (#16175)
* backport of commit 305403c4f1

* backport of commit 31540d3343

---------

Co-authored-by: cskh <hui.kang@hashicorp.com>
2023-02-06 19:07:59 +00:00
hc-github-team-consul-core f9af9a6b56
backport of commit 611c3591af (#16174)
Co-authored-by: Jared Kirschner <85913323+jkirschner-hashicorp@users.noreply.github.com>
2023-02-06 17:30:43 +00:00
hc-github-team-consul-core e8606d2028
Backport of Document how numRetries can't be set to 0 into release/1.14.x (#16168)
* backport of commit 55e197fad7

* backport of commit 1a6cf311c5

---------

Co-authored-by: Luke Kysow <1034429+lkysow@users.noreply.github.com>
2023-02-06 12:20:30 -05:00
hc-github-team-consul-core 6ca8b7491d
Backport of Update helm docs based on consul-k8s release/1.0.x branch into release/1.14.x (#16159)
Co-authored-by: Curt Bushko <cbushko@gmail.com>
Co-authored-by: david-yu <dyu@hashicorp.com>
2023-02-03 19:19:17 -08:00
hc-github-team-consul-core 166fdd105f
backport of commit 124f625eaf (#16151)
Co-authored-by: Ashwin Venkatesh <ashwin.what@gmail.com>
2023-02-03 15:04:38 -08:00
hc-github-team-consul-core 70c5a92a38
Backport of Docs: change connect to SM for mTLS page into release/1.14.x (#16137)
* backport of commit fa27ddb1d6

* backport of commit bf5a4ed6e3

---------

Co-authored-by: Nicholas Richu <105801716+nrichu-hcp@users.noreply.github.com>
2023-02-02 13:57:39 -05:00
hc-github-team-consul-core 757aab81be
Add a flag for enabling debug logs to the `connect envoy` command (#15988) (#16121)
* Add a flag for enabling debug logs to the `connect envoy` command

* Update website/content/commands/connect/envoy.mdx

* Add changelog note

* Add debug log note to envoy proxy doc page

* Update website/content/docs/connect/proxies/envoy.mdx

* Wording tweak in envoy bootstrap section

---------

Co-authored-by: Kyle Havlovitz <kylehav@gmail.com>
Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com>
Co-authored-by: Kendall Strautman <36613477+kendallstrautman@users.noreply.github.com>
2023-01-31 17:39:16 -08:00
Semir Patel ea9b104c7d Apply 1.14.4 changelog and prep for next release 2023-01-27 15:35:15 -06:00
hc-github-team-consul-core c15132acf4
Backport of docs: Consul at scale guide into release/1.14.x (#16084)
* backport of commit c57ff557db

* backport of commit 24756aa6ff

* backport of commit 7a850531cc

* backport of commit 036eb9f3c9

Co-authored-by: boruszak <jeffrey.boruszak@hashicorp.com>
2023-01-26 15:10:26 -06:00
hc-github-team-consul-core 9d2b958093
backport of commit 58b23a5515 (#16048)
Co-authored-by: Jared Kirschner <85913323+jkirschner-hashicorp@users.noreply.github.com>
2023-01-24 00:35:12 +00:00
hc-github-team-consul-core e076fbb8f5
Backport of Apply agent partition to load services and agent api into release/1.14.x (#16041)
* backport of commit a42e86ffd8

* backport of commit 4ad0f7aff4

Co-authored-by: cskh <hui.kang@hashicorp.com>
2023-01-23 16:41:26 +00:00
hc-github-team-consul-core 078e28f059
Backport of docs: clarify reloadable config option usage into release/1.14.x (#16037)
* backport of commit 745df8f313

* backport of commit c0329441be

* backport of commit dbd69ea28a

Co-authored-by: Jared Kirschner <85913323+jkirschner-hashicorp@users.noreply.github.com>
2023-01-20 18:43:09 -05:00
hc-github-team-consul-core 174d0763bd
backport of commit 8e54b4b5cf (#16032)
Co-authored-by: Luke Kysow <1034429+lkysow@users.noreply.github.com>
2023-01-20 15:11:39 -05:00
hc-github-team-consul-core 1ad9c29dfe
backport of commit e522044bb3 (#16027)
Co-authored-by: Derek Menteer <derek.menteer@hashicorp.com>
2023-01-20 17:37:05 +00:00
hc-github-team-consul-core c625d55ad2
Backport of docs: link fixes for Envoy proxy page into release/1.14.x (#16026)
* backport of commit 9ffd2063ba

* backport of commit 6b3344481c

* backport of commit 09ec40e48b

* backport of commit d3f1cf4eea

Co-authored-by: boruszak <jeffrey.boruszak@hashicorp.com>
2023-01-20 12:13:12 -05:00
Ashwin Venkatesh 085cb1a207
Add support for envoy readiness flags (#16015) (#16019)
* Add support for envoy readiness flags
- add flags 'envoy-ready-bind-port` and `envoy-ready-bind-addr` on consul connect envoy to create a ready listener on that address.
2023-01-19 17:09:55 -05:00
Derek Menteer 0379dabe4e
Fix configuration merging for implicit tproxy upstreams. (#16000) (#16007)
Fix configuration merging for implicit tproxy upstreams.

Change the merging logic so that the wildcard upstream has correct proxy-defaults
and service-defaults values combined into it. It did not previously merge all fields,
and the wildcard upstream did not exist unless service-defaults existed (it ignored
proxy-defaults, essentially).

Change the way we fetch upstream configuration in the xDS layer so that it falls back
to the wildcard when no matching upstream is found. This is what allows implicit peer
upstreams to have the correct "merged" config.

Change proxycfg to always watch local mesh gateway endpoints whenever a peer upstream
is found. This simplifies the logic so that we do not have to inspect the "merged"
configuration on peer upstreams to extract the mesh gateway mode.
2023-01-19 10:55:27 -06:00
hc-github-team-consul-core 3e3ab25f9b
xds: don't attempt to load-balance sessions for local proxies (#15789) (#16004)
Previously, we'd begin a session with the xDS concurrency limiter
regardless of whether the proxy was registered in the catalog or in
the server's local agent state.

This caused problems for users who run `consul connect envoy` directly
against a server rather than a client agent, as the server's locally
registered proxies wouldn't be included in the limiter's capacity.

Now, the `ConfigSource` is responsible for beginning the session and we
only do so for services in the catalog.

Fixes: https://github.com/hashicorp/consul/issues/15753

Co-authored-by: Dan Upton <daniel@floppy.co>
2023-01-19 10:34:01 +00:00