Commit Graph

20819 Commits (94737e0718cd38bcca02680e371e9a9dbbcf73d5)

Author SHA1 Message Date
hc-github-team-consul-core 94737e0718
Backport of NET-6317 - update usage of deprecated fields: http2_protocol_options and access_log_path into release/1.17.x (#19953)
* backport of commit 4d45c672b3

* backport of commit 1e8797522e

* backport of commit 691dab71bd

* backport of commit 924d61fc04

---------

Co-authored-by: John Murret <john.murret@hashicorp.com>
2023-12-14 14:10:25 -07:00
hc-github-team-consul-core e242648ba4
Backport of cli: Deprecate the `-admin-access-log-path` flag from `consul connect envoy` command in favor of: `-admin-access-log-config`. into release/1.17.x (#19955)
* backport of commit 9c1948362f

* backport of commit 23ae663d10

* backport of commit af2d64e077

---------

Co-authored-by: John Murret <john.murret@hashicorp.com>
2023-12-14 14:09:53 -07:00
hc-github-team-consul-core ed3ff29c4b
Backport of Update telemetry.mdx RPC Metrics into release/1.17.x (#19949)
* 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:01 -08:00
hc-github-team-consul-core 88d903731b
Backport of NET-6785: updating peering docs to include stream status and remote data into release/1.17.x (#19938)
backport of commit a785cbf3d1

Co-authored-by: Tauhid <tauhidanjum@gmail.com>
2023-12-14 12:27:23 +05:30
hc-github-team-consul-core a1b8cadb3b
Backport of docs: service rate limiting examples into release/1.17.x (#19926)
* backport of commit 8bbd7adc5c

* backport of commit 7540412043

---------

Co-authored-by: boruszak <jeffrey.boruszak@hashicorp.com>
2023-12-12 16:05:28 -08:00
Tyler Wendlandt 38074d08f7
Backport of fix: token list in Role details page is updated with tokens linked to… into release/1.17.x (#19923)
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:59 -08:00
hc-github-team-consul-core c4caa3147d
Backport of Hash based config entry replication into release/1.17.x (#19916)
add hash based config entry replication

Co-authored-by: Dhia Ayachi <dhia@hashicorp.com>
2023-12-12 13:36:07 -05:00
hc-github-team-consul-core 6c6d978634
Backport of Remove warning for consul 1.17 deprecation into release/1.17.x (#19905)
backport of commit 8d43647ed9

Co-authored-by: Ronald Ekambi <ronekambi@gmail.com>
2023-12-12 10:05:45 -05:00
hc-github-team-consul-core a896e58d93
Backport of NET-6900: stop reconciling services when peering is enabled into release/1.17.x (#19917)
backport of commit a406813631

Co-authored-by: wenincode <tyler.wendlandt@hashicorp.com>
2023-12-12 08:01:30 -07:00
hc-github-team-consul-core 9cb44f6222
Backport of fix: remove test to unblock CI into release/1.17.x (#19911)
backport of commit de839085b9

Co-authored-by: valeriia-ruban <valeriia.ruban@hashicorp.com>
2023-12-11 20:20:34 -08:00
hc-github-team-consul-core 1f7e42543e
Backport of docs: Updates to required ports into release/1.17.x (#19898)
* backport of commit 5a3c616f75

* backport of commit bf1e4681b1

* backport of commit a762adee3c

* backport of commit 8cb3f06ac9

* backport of commit c97e52b082

---------

Co-authored-by: boruszak <jeffrey.boruszak@hashicorp.com>
Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com>
2023-12-11 14:57:41 -08:00
hc-github-team-consul-core b11ccb9c27
Backport of Add documentation for proxy-config-map and xds_fetch_timeout_ms. into release/1.17.x (#19896)
backport of commit 85e942475a

Co-authored-by: Derek Menteer <derek.menteer@hashicorp.com>
2023-12-11 15:57:55 -06:00
hc-github-team-consul-core b24acb6fb3
Backport of [NET-6842] splitting go version on different lines into release/1.17.x (#19891)
backport of commit 2e594e15a9

Co-authored-by: Ronald Ekambi <ronekambi@gmail.com>
2023-12-11 16:32:47 +00:00
Derek Menteer 212485578c
Backport of: Fix ClusterLoadAssignment timeouts dropping endpoints. into 1.17 (#19884)
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 10:02:33 -06:00
hc-github-team-consul-core fed1b2142d
Backport of Fix a test flake where a retry timer was being reused causing tests after the first to exit early into release/1.17.x (#19869)
backport of commit 4362d06542

Co-authored-by: Matt Keeler <mjkeeler7@gmail.com>
2023-12-08 13:28:21 -05:00
hc-github-team-consul-core f80fc2b548
Backport of Fix xDS missing endpoint race condition. into release/1.17.x (#19874)
backport of commit 7d8764dc0e

Co-authored-by: Keith Smiley <ksmiley@salesforce.com>
Co-authored-by: Derek Menteer <derek.menteer@hashicorp.com>
2023-12-08 11:59:21 -06:00
hc-github-team-consul-core 94fd096bfc
Backport of Remove Duplicate UBI Tags into release/1.17.x (#19791)
backport of commit caf160b65d

Co-authored-by: emilymianeil <eneil@hashicorp.com>
Co-authored-by: emily neil <63985869+emilymianeil@users.noreply.github.com>
2023-12-08 17:27:48 +00:00
Andrew Stucki 880713a10b
[Backport 1.17.x] Add CE version of Gateway Upstream Disambiguation (#19868)
* Add CE version of Gateway Upstream Disambiguation

* Add range variable shadow

---------

Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2023-12-08 17:00:14 +00:00
hc-github-team-consul-core a34009b7c1
Backport of parse config protocol on write to optimize disco-chain compilation into release/1.17.x (#19859)
* 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

* adding missing config field

---------

Co-authored-by: Dhia Ayachi <dhia@hashicorp.com>
2023-12-07 15:35:26 -05:00
hc-github-team-consul-core 90638a4b6a
Backport of NET-6784: Adding cli command to list exported services to a peer into release/1.17.x (#19851)
* backport of commit 53f3d35d5f

* backport of commit f75f976006

* backport of commit f6c7fceafa

* backport of commit 6d956180fd

---------

Co-authored-by: Tauhid <tauhidanjum@gmail.com>
2023-12-07 13:40:42 +05:30
hc-github-team-consul-core 1eeae85806
Backport of Default "stats_flush_interval" to 1 minute for Consul Telemetry Collector into release/1.17.x (#19703)
* backport of commit 129d6bf20a

* backport of commit 5d597a3b53

* backport of commit a6e8c5a935

* backport of commit 00c720748f

* backport of commit 74e632ea57

* backport of commit 4a9a7a1f83

---------

Co-authored-by: Ashvitha Sridharan <ashvitha.sridharan@hashicorp.com>
Co-authored-by: John Buonassisi <john.buonassisi@hashicorp.com>
2023-12-06 13:18:15 -08:00
hc-github-team-consul-core dfc5542fac
Backport of [NET-6650] Bump go version to 1.20.12 into release/1.17.x (#19846)
backport of commit af6045cdf1

Co-authored-by: Ronald Ekambi <ronekambi@gmail.com>
2023-12-06 16:14:22 -05:00
hc-github-team-consul-core 1a5ace03f0
Backport of improve client RPC metrics consistency into release/1.17.x (#19843)
* 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:06:17 -05:00
hc-github-team-consul-core 44a5abac07
Backport of cli: add a string method to gvk struct into release/1.17.x (#19707)
backport of commit a94fcc7077

Co-authored-by: cskh <hui.kang@hashicorp.com>
2023-12-06 18:17:23 +00:00
hc-github-team-consul-core b1acee8f94
Backport of [NET-6251] Nomad client templated policy into release/1.17.x (#19839)
backport of commit 9a8d0c848b

Co-authored-by: Ronald Ekambi <ronekambi@gmail.com>
2023-12-06 11:18:33 -05:00
lornasong 81a22ae9b6
Manual Backport of [Cloud][CC-6925] Updates to pushing server state into release/1.17.x (#19810)
* [Cloud][CC-6925] Updates to pushing server state (#19682)

* Upgrade hcp-sdk-go to latest version v0.73

Changes:
- go get github.com/hashicorp/hcp-sdk-go
- go mod tidy

* From upgrade: regenerate protobufs for upgrade from 1.30 to 1.31

Ran: `make proto`

Slack: https://hashicorp.slack.com/archives/C0253EQ5B40/p1701105418579429

* From upgrade: fix mock interface implementation

After upgrading, there is the following compile error:

cannot use &mockHCPCfg{} (value of type *mockHCPCfg) as "github.com/hashicorp/hcp-sdk-go/config".HCPConfig value in return statement: *mockHCPCfg does not implement "github.com/hashicorp/hcp-sdk-go/config".HCPConfig (missing method Logout)

Solution: update the mock to have the missing Logout method

* From upgrade: Lint: remove usage of deprecated req.ServerState.TLS

Due to upgrade, linting is erroring due to usage of a newly deprecated field

22:47:56 [consul]: make lint
--> Running golangci-lint (.)
agent/hcp/testing.go:157:24: SA1019: req.ServerState.TLS is deprecated: use server_tls.internal_rpc instead. (staticcheck)
                time.Until(time.Time(req.ServerState.TLS.CertExpiry)).Hours()/24,
                                     ^

* From upgrade: adjust oidc error message

From the upgrade, this test started failing:

=== FAIL: internal/go-sso/oidcauth TestOIDC_ClaimsFromAuthCode/failed_code_exchange (re-run 2) (0.01s)
    oidc_test.go:393: unexpected error: Provider login failed: Error exchanging oidc code: oauth2: "invalid_grant" "unexpected auth code"

Prior to the upgrade, the error returned was:
```
Provider login failed: Error exchanging oidc code: oauth2: cannot fetch token: 401 Unauthorized\nResponse: {\"error\":\"invalid_grant\",\"error_description\":\"unexpected auth code\"}\n
```

Now the error returned is as below and does not contain "cannot fetch token"
```
Provider login failed: Error exchanging oidc code: oauth2: "invalid_grant" "unexpected auth code"

```

* Update AgentPushServerState structs with new fields

HCP-side changes for the new fields are in:
https://github.com/hashicorp/cloud-global-network-manager-service/pull/1195/files

* Minor refactor for hcpServerStatus to abstract tlsInfo into struct

This will make it easier to set the same tls-info information to both
 - status.TLS (deprecated field)
 - status.ServerTLSMetadata (new field to use instead)

* Update hcpServerStatus to parse out information for new fields

Changes:
 - Improve error message and handling (encountered some issues and was confused)
 - Set new field TLSInfo.CertIssuer
 - Collect certificate authority metadata and set on TLSInfo.CertificateAuthorities
 - Set TLSInfo on both server.TLS and server.ServerTLSMetadata.InternalRPC

* Update serverStatusToHCP to convert new fields to GNM rpc

* Add changelog

* Feedback: connect.ParseCert, caCerts

* Feedback: refactor and unit test server status

* Feedback: test to use expected struct

* Feedback: certificate with intermediate

* Feedback: catch no leaf, remove expectedErr

* Feedback: update todos with jira ticket

* Feedback: mock tlsConfigurator

* make proto for additional file in 1.17 not in main
2023-12-04 15:34:24 -05:00
hc-github-team-consul-core 45468ffe92
Backport of docs: improvements to v2 catalog explanation into release/1.17.x (#19802)
* backport of commit 425888af34

* backport of commit 93f981e702

---------

Co-authored-by: boruszak <jeffrey.boruszak@hashicorp.com>
2023-12-01 14:57:02 -08:00
Jeff Apple cfbc6282e4
Backport of Docs: FIPS - add cluster peering info (#19768) (#19792)
Docs: FIPS - add cluster peering info (#19768)

* Docs: FIPS - add cluster peering info

* Update website/content/docs/enterprise/fips.mdx



* Update website/content/docs/enterprise/fips.mdx



* Update website/content/docs/enterprise/fips.mdx



---------

Co-authored-by: David Yu <dyu@hashicorp.com>
Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com>
2023-12-01 08:19:23 -08:00
Matt Keeler b099833774
Pin lint-consul-retry to version 1.3.0 (#19776)
The new version finds more issues which are fixed on main and not being backported.
2023-11-29 21:39:32 +00:00
Michael Zalimeni f0bd34712e
Backport of [NET-6725] test: Address occasional flakes in sidecarproxy/controller_test.go into release/1.17.x (#19772)
backport of commit 5be0c8f89b
2023-11-29 17:42:08 +00:00
hc-github-team-consul-core c8b5dfba94
Backport of docs: Rename locality docs observe section to verification into release/1.17.x (#19771)
* backport of commit 6aed75aead

* backport of commit 92cbc56337

---------

Co-authored-by: Michael Zalimeni <michael.zalimeni@hashicorp.com>
2023-11-29 12:21:59 -05:00
John Maguire 71e2a0c986
[NET-5688] APIGateway UI Topology Fixes (#19657) (#19765)
* [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

* updated ui assets
2023-11-29 11:23:52 -05:00
Chris S. Kim 131098159b
[1.17.x] Move test setup out of subtest (#19754)
Move test setup out of subtest
2023-11-29 09:35:20 -05:00
David Yu 1549522513
LICENSE: manual backport of #19750 (#19759)
license backport
2023-11-28 20:44:28 +00:00
hc-github-team-consul-core 7c78aabd62
Backport of [NET-5916] docs: Add locality examples and troubleshooting into release/1.17.x (#19756)
backport of commit ae46ed0a8e

Co-authored-by: Michael Zalimeni <michael.zalimeni@hashicorp.com>
2023-11-28 19:21:46 +00:00
hc-github-team-consul-core 5354592dcf
Backport of ci: Run `go mod tidy` check on submodules into release/1.17.x (#19748)
backport of commit 5316676bb6

Co-authored-by: Michael Zalimeni <michael.zalimeni@hashicorp.com>
2023-11-27 21:46:00 +00:00
hc-github-team-consul-core 6ff06bd08d
Backport of [NET-6249] Add templated policies description into release/1.17.x (#19736)
backport of commit 5cf44bea20

Co-authored-by: Ronald Ekambi <ronekambi@gmail.com>
2023-11-27 16:43:14 -05:00
Michael Zalimeni 0225d57b88
chore: Run go mod tidy on consul-container (#19743)
This submodule has gotten out of sync and is causing downstream CI
failure.
2023-11-27 14:07:16 -05:00
Dhia Ayachi 89140dbdb8
[1.17.x backport] Fix panic policy delete (#19732)
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:31:03 -05:00
hc-github-team-consul-core f8feb094e6
Backport of [NET-6617] security: Bump github.com/golang-jwt/jwt/v4 to 4.5.0 into release/1.17.x (#19741)
backport of commit fbb8be55f5

Co-authored-by: Michael Zalimeni <michael.zalimeni@hashicorp.com>
2023-11-27 16:25:04 +00:00
hc-github-team-consul-core d974bf4028
Backport of NET-6251 API gateway templated policy into release/1.17.x (#19729)
backport of commit c4408eaae1

Co-authored-by: Ronald Ekambi <ronekambi@gmail.com>
2023-11-24 13:40:58 -05:00
hc-github-team-consul-core fdb67d6b0d
Backport of Add docs for identity acl rules into release/1.17.x (#19723) 2023-11-22 13:39:07 -05:00
hc-github-team-consul-core 441afa6c5a
Backport of chore: add suffix to consul version in sidenav into release/1.17.x (#19710)
backport of commit c57b97a2eb

Co-authored-by: valeriia-ruban <valeriia.ruban@hashicorp.com>
2023-11-21 10:12:11 -08:00
Michael Zalimeni f31b21d8ea Revert "docs: Update consul-k8s Helm chart docs (1.3.x)"
This reverts commit 6c324dc1f9.

This change was unintentionally pushed directly rather than to a feature
branch.
2023-11-20 15:19:55 -05:00
Michael Zalimeni 6c324dc1f9 docs: Update consul-k8s Helm chart docs (1.3.x)
Sync docs for several recent changes to the Helm chart from
`consul-k8s`.
2023-11-20 15:18:12 -05:00
hc-github-team-consul-core 8ecb642aa7
Backport of Integ test: enable upgrade test deployer 1.17 into release/1.17.x (#19670)
Integ test: enable upgrade test deployer 1.17 (#19669)

Co-authored-by: cskh <hui.kang@hashicorp.com>
2023-11-20 11:14:22 -05:00
hc-github-team-consul-core f5c430e13f
Backport of fix: remove 2 tests to unblock consul-enterprise merges into release/1.17.x (#19688)
backport of commit 2a1ea2d6f4

Co-authored-by: valeriia-ruban <valeriia.ruban@hashicorp.com>
2023-11-20 12:25:06 +00:00
hc-github-team-consul-core 3e6afea919
Backport of Update ECS compat matrix into release/1.17.x (#19685)
backport of commit e73438f6d9

Co-authored-by: Ganeshrockz <ganesh.seetharaman@hashicorp.com>
2023-11-19 15:13:14 +00:00
hc-github-team-consul-core df799dfc02
Backport of fix: temporary remove token policy test into release/1.17.x (#19684)
backport of commit 24fe092456

Co-authored-by: valeriia-ruban <valeriia.ruban@hashicorp.com>
2023-11-18 01:57:36 +00:00
hc-github-team-consul-core a5b8e504e9
Backport of integ-test: fix upgrade test for CE into release/1.17.x (#19676)
integ-test: fix upgrade test for CE (#19673)
2023-11-17 13:38:10 -05:00