Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
edcd855
Initialise release for consul 1.21 (#22195)
abhishek-hashicorp Mar 3, 2025
0e77b55
Upgrade go version to 1.23 (#22204)
abhishek-hashicorp Mar 6, 2025
7de8e29
security: Upgrade crypto, oauth, go-jose (#22207)
abhishek-hashicorp Mar 6, 2025
7665dd3
Add the missing Service TaggedAddresses and Check Type fields to Txn …
nitin-sachdev-29 Mar 13, 2025
d299ad0
[Feature] Invalidate session check if associated session is deleted (…
srahul3 Mar 20, 2025
8946d7d
build(deps): bump go version to go1.23.7 (#22237)
dduzgun-security Mar 26, 2025
3bd8e97
Fixes a couple of DNS token example commands (#22224)
nickwales Mar 26, 2025
9bd863d
Refactor Txn API to use AgentService and add TaggedAddresses support …
nitin-sachdev-29 Apr 2, 2025
616de64
Document Azure service principal auth in snapshot/agent.mdx (#21942)
SuyashHashiCorp Apr 3, 2025
1af00f7
Fix catalog service endpoint when querying for a peer service (#22189)
jorgemarey Apr 16, 2025
3b44455
Update lock.mdx (Node Health Check and TTL) (#22258)
natemollica-nm Apr 16, 2025
519fb0a
CVE Fix (#22268)
nitin-sachdev-29 Apr 17, 2025
570651a
Upgraded go to 1.23.8 (#22273)
nitin-sachdev-29 Apr 17, 2025
2e8f955
suppressing alpine CVEs as there is no fix yet (#22278)
nitin-sachdev-29 Apr 18, 2025
f3c5d71
feature: Adding configurable value to disable XDS Load balancing
Vikramarjuna Apr 29, 2025
9b63877
Go discover dependency upgrade (#22313)
nitin-sachdev-29 May 5, 2025
3485862
Update iframe to VideoEmbed (#22302)
im2nguyen May 5, 2025
9b9e3f9
Consul Documentation restructure according to IA & content strategy (…
boruszak May 5, 2025
4a3ae1e
feature: add LUA script Envoy extension support for API gateway (#22321)
Vikramarjuna May 9, 2025
1e46394
docs: Lua page fix (#22338)
boruszak May 13, 2025
1256aa5
update: remove 1.15 as LTS, remove1.20 as CE (#22341)
sreeram77 May 14, 2025
eef91f2
Update version compatibility matricies for v1.21.x (#22328)
boruszak May 15, 2025
d13c81f
cmd/tls: set explicit file permissions for generated certs (#22286)
sujay-hashicorp May 23, 2025
697c94f
update: changelog post-release of 1.21.1, 1.20.7, 1.19.9 (#22360)
sreeram77 May 26, 2025
cb84194
fix: updated grpc config for partition endpoint (#22361)
mrgupta7 May 28, 2025
6c4fda3
Fix IPv6 address handling in LAN <-> WAN join flooder (#22226)
tkren May 28, 2025
b8a92a7
Update supported Envoy versions in ENVOY_VERSIONS file (#22370)
nitin-sachdev-29 Jun 2, 2025
df28e84
fix: add lts flag for 1.21 in versions.hcl (#22372)
sreeram77 Jun 2, 2025
41b52ff
update: JIRA project to CSL in Jira Sync workflow (#22374)
sreeram77 Jun 3, 2025
8655438
fix: Added non default namespace and partition checks to ConnectCA CS…
kswap Jun 3, 2025
0ff1775
Use net.JoinHostPort for host:port formatting to handle IPv6 addresse…
krutibaraiya Jun 4, 2025
66d28ae
fix(config): Warn on invalid characters in `datacenter` property lead…
arnabkaycee Jun 5, 2025
35bc88c
enforce validation for missing service name in registration (#22381)
markcampv Jun 6, 2025
9036121
upgraded tj-actions/changed-files to v46.0.1 (#22388)
nitin-sachdev-29 Jun 6, 2025
38c25d2
update default testing deployer image versions (#22395)
sujay-hashicorp Jun 9, 2025
99a2b63
Fix Install Consul on Kubernetes button having localhost:3000 hard co…
Moose1301 Jun 9, 2025
6bc78bb
Update vm.mdx - syntax fix for warn link (#22394)
KleeKitz Jun 9, 2025
151ed4b
docs: Docker DNS resolution & missing k8s images (#22403)
boruszak Jun 12, 2025
1e7c7a8
docs: Add HCP Consul Dedicated EoL notice (#22406)
boruszak Jun 13, 2025
2262c66
upgrade ubi base image to fix CVEs (#22409)
sujay-hashicorp Jun 16, 2025
75945f8
revert suppression - to be added in point release (#22411)
sujay-hashicorp Jun 16, 2025
766ab74
upgrading go to 1.23.10 (#22412)
sujay-hashicorp Jun 17, 2025
60c29c3
Upgrade vulnerable UI packages (#22416)
suresh-hashicorp Jun 20, 2025
af2be68
fix(consul-ui): properly format ipv6 addresses (#22423)
krutibaraiya Jun 25, 2025
0b20fdc
fix: domain typo in readme (#22427)
dduzgun-security Jun 25, 2025
c84ede0
fix: skipping the coverage step for dependabot PRs also (#22432)
Vikramarjuna Jun 26, 2025
85ed470
build(deps): bump github.com/hashicorp/raft from 1.7.0 to 1.7.3 (#22238)
dependabot[bot] Jun 26, 2025
62d6129
build(deps): bump github.com/go-openapi/strfmt from 0.21.10 to 0.23.0…
dependabot[bot] Jun 26, 2025
f4422dd
build(deps): bump github.com/grpc-ecosystem/go-grpc-middleware from 1…
dependabot[bot] Jun 26, 2025
aea041c
build(deps): bump github.com/fatih/color from 1.16.0 to 1.18.0 (#22385)
dependabot[bot] Jun 26, 2025
000fea6
build(deps): bump golang.org/x/sync from 0.12.0 to 0.15.0 (#22413)
dependabot[bot] Jun 26, 2025
f35739d
build(deps): bump github.com/hashicorp/hcp-scada-provider from 0.2.4 …
dependabot[bot] Jun 26, 2025
4212498
build(deps-dev): bump prettier from 3.2.4 to 3.6.1 in /website (#22429)
dependabot[bot] Jun 26, 2025
10f2aa2
build(deps): bump github.com/mitchellh/go-testing-interface from 1.14…
dependabot[bot] Jun 27, 2025
aadff48
build(deps-dev): bump prettier from 3.6.1 to 3.6.2 in /website (#22448)
dependabot[bot] Jun 30, 2025
f266c46
Updating compatibility matrix of vault, nomad and envoy (#22436)
pajay-rao Jun 30, 2025
a565859
docs: add info for unbound k8s pvcs (#22384)
krastin Jul 1, 2025
879541a
update changelog for release/1.21.2 in main (#22461)
sujay-hashicorp Jul 2, 2025
b77fd6f
[Compliance] - PR Template Changes Required (#22454)
compliance-pr-automation-bot[bot] Jul 2, 2025
4bbbae4
Broken link fix (#22459)
boruszak Jul 2, 2025
6f87b06
fix(services): validate ip addresses before service registration (#22…
krutibaraiya Jul 8, 2025
667efed
Updating apline and debian docker images (#22480)
pajay-rao Jul 9, 2025
63d4cfe
[UI] format ipv6 address to collapsed form (#22468)
suresh-hashicorp Jul 10, 2025
c3b24ff
Updating dependency for security issues (#22486)
pajay-rao Jul 10, 2025
a1d59c6
Frb 585 supportability include consul cli command consul operator raf…
20sr20 Jul 11, 2025
ebc396e
docs: Consul version compatibility updates (#22492)
boruszak Jul 14, 2025
863d6ae
docs: CE-719 Clarify K8s target namespace (#22482)
krastin Jul 15, 2025
8bc2f42
docs: CE-913 update docker autoconf page (#22495)
krastin Jul 22, 2025
1761b56
Upgrade Hashicorp design-system (#22503)
suresh-hashicorp Jul 29, 2025
fd0fc5d
docs: CE-916 Update docs/observe/docker (#22509)
krastin Jul 29, 2025
3ebf2f2
docs: CE-917 Update "Troubleshoot Consul datacenter operations" (#22504)
krastin Jul 29, 2025
d1ea675
docs: CE-864 Consul with Docker containers (#22508)
krastin Jul 29, 2025
282e8fe
Replaces ivy-mirror codeEditor with hds CodeEditor (#22513)
suresh-hashicorp Jul 30, 2025
597841e
docs: Docker 500 error fixes (#22524)
boruszak Jul 30, 2025
a23952e
July patch docs update (#22529)
pajay-rao Aug 4, 2025
ef51ece
ui: Add generated license headers (#22520)
suresh-hashicorp Aug 6, 2025
a62501a
ui: Fix missing format for ip address in node list view (#22541)
suresh-hashicorp Aug 6, 2025
ac461b7
update: backport-assistant to 0.5.8 (#22543)
sreeram77 Aug 6, 2025
a821998
ui: updates node version to 20 for ui workflows (#22544)
suresh-hashicorp Aug 6, 2025
fe1a1bf
CE-721 - Consul snapshot agent error needs documenting (#22528)
danielehc Aug 6, 2025
0f95549
update: fixed the backport-assistant version format (#22548)
Vikramarjuna Aug 7, 2025
41cafb3
Updating hashicorp/actions-go-build action to v1.1.1 (#22551)
pajay-rao Aug 7, 2025
d27b048
Csl 9247 consul debug not collecting pprof (#22552)
sanikachavan5 Aug 8, 2025
2f51d58
update: envoy version to latest (#22557)
sreeram77 Aug 8, 2025
1ccbc66
update: golang x modules to latest (#22561)
sreeram77 Aug 8, 2025
5e68807
build: update toolchain to go 1.23.12 and fix linter (#22547)
dduzgun-security Aug 12, 2025
060bdfc
build(deps): bump form-data from 3.0.1 to 3.0.4 in /ui (#22505)
dependabot[bot] Aug 14, 2025
71bddeb
add: testcase for IPv6 scenarios in peering establish api (#22567)
anilvpatel Aug 19, 2025
00cb352
CE-754 - ACL reset instructions (#22545)
danielehc Aug 20, 2025
7fab4f4
update: changelog for release 1.21.4 (#22587)
sreeram77 Aug 21, 2025
583eb31
sec: perform constant time compare for sensitive values (#22537)
dduzgun-security Aug 21, 2025
a05b7d1
backport of commit 138c727076dc6da4457e1869bbd150093bf138fc
sanikachavan5 Aug 22, 2025
623202b
backport of commit 468776dda84a7909b8f3678c51bcdaeaf7ce15c7
sanikachavan5 Aug 22, 2025
0d87d05
fix tests
sanikachavan5 Aug 22, 2025
b8b51c1
Merge branch 'main' into sanikachavan5/SECVULN-8628-add-charset-where…
sanikachavan5 Aug 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .changelog/10129.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```release-note:improvement
raft: allow reloading of raft trailing logs and snapshot timing to allow recovery from some [replication failure modes](https://github.com/hashicorp/consul/issues/9609).
telemetry: add metrics and documentation for [monitoring for replication issues](https://consul.io/docs/agent/telemetry#raft-replication-capacity-issues).
telemetry: add metrics and documentation for [monitoring for replication issues](https://developer.hashicorp.com/consul/docs/reference/agent/telemetry#raft-replication-capacity-issues).
```
2 changes: 1 addition & 1 deletion .changelog/11855.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```release-note:feature
Admin Partitions (Consul Enterprise only) This version adds admin partitions, a new entity defining administrative and networking boundaries within a Consul deployment. For more information refer to the
[Admin Partition](https://www.consul.io/docs/enterprise/admin-partitions) documentation.
[Admin Partition](https://developer.hashicorp.com/docs/enterprise/admin-partitions) documentation.
```
2 changes: 1 addition & 1 deletion .changelog/14423.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```release-note:feature
cli: Adds new subcommands for `peering` workflows. Refer to the [CLI docs](https://www.consul.io/commands/peering) for more information.
cli: Adds new subcommands for `peering` workflows. Refer to the [CLI docs](https://developer.hashicorp.com/commands/peering) for more information.
```
2 changes: 1 addition & 1 deletion .changelog/14474.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```release-note:feature
http: Add new `get-or-empty` operation to the txn api. Refer to the [API docs](https://www.consul.io/api-docs/txn#kv-operations) for more information.
http: Add new `get-or-empty` operation to the txn api. Refer to the [API docs](https://developer.hashicorp.com/api-docs/txn#kv-operations) for more information.
```
3 changes: 3 additions & 0 deletions .changelog/22189.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
http: Add peer query param on catalog service API
```
3 changes: 3 additions & 0 deletions .changelog/22204.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:security
Upgrade Go to 1.23.6.
```
5 changes: 5 additions & 0 deletions .changelog/22207.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
```release-note:security
Update `golang.org/x/crypto` to v0.35.0 to address [GO-2025-3487](https://pkg.go.dev/vuln/GO-2025-3487).
Update `golang.org/x/oauth2` to v0.27.0 to address [GO-2025-3488](https://pkg.go.dev/vuln/GO-2025-3488).
Update `github.com/go-jose/go-jose/v3` to v3.0.4 to address [GO-2025-3485](https://pkg.go.dev/vuln/GO-2025-3485).
```
3 changes: 3 additions & 0 deletions .changelog/22220.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
agent: Add the missing Service TaggedAddresses and Check Type fields to Txn API.
```
3 changes: 3 additions & 0 deletions .changelog/22226.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
wan-federation: Fixed an issue where advertised IPv6 addresses were causing WAN federation to fail.
```
3 changes: 3 additions & 0 deletions .changelog/22227.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
Added support for Consul Session to update the state of a Health Check, allowing for more dynamic and responsive health monitoring within the Consul ecosystem. This feature enables sessions to directly influence health check statuses, improving the overall reliability and accuracy of service health assessments.
```
3 changes: 3 additions & 0 deletions .changelog/22237.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:security
Upgrade Go to 1.23.7 and bump X-Repositories to latest.
```
5 changes: 5 additions & 0 deletions .changelog/22268.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
```release-note:security
Update `golang.org/x/net` to v0.38.0 to address [GHSA-vvgc-356p-c3xw](https://github.com/advisories/GHSA-vvgc-356p-c3xw) and [GO-2025-3595](https://pkg.go.dev/vuln/GO-2025-3595).
Update `github.com/golang-jwt/jwt/v4` to v4.5.2 to address [GO-2025-3553](https://pkg.go.dev/vuln/GO-2025-3553) and [GHSA-mh63-6h87-95cp](https://github.com/advisories/GHSA-mh63-6h87-95cp).
Update `Go` to v1.23.8 to address [GO-2025-3563](https://pkg.go.dev/vuln/GO-2025-3563).
```
3 changes: 3 additions & 0 deletions .changelog/22286.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:security
cli: update tls ca and cert create to reduce excessive file perms for generated public files
```
3 changes: 3 additions & 0 deletions .changelog/22299.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:feature
xds: provided a configurable to value to diable XDS session load balancing so that cases where there is a load balancer in front of the consul servers can disable the internal load balancing
```
3 changes: 3 additions & 0 deletions .changelog/22359.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note: improvement
connect: Use net.JoinHostPort for host:port formatting to handle IPv6.
```
3 changes: 3 additions & 0 deletions .changelog/22376.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:security
connect: Added non default namespace and partition checks to ConnectCA CSR requests.
```
3 changes: 3 additions & 0 deletions .changelog/22381.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
http: return a clear error when both Service.Service and Service.ID are missing during catalog registration
```
3 changes: 3 additions & 0 deletions .changelog/22382.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
config: Warn about invalid characters in `datacenter` resulting in non-generation of X.509 certificates when using external CA for agent TLS communication.
```
11 changes: 11 additions & 0 deletions .changelog/22409.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
```release-note:security
Upgrade UBI base image version to address CVE
[CVE-2025-4802](https://access.redhat.com/security/cve/cve-2025-4802)
[CVE-2024-40896](https://access.redhat.com/security/cve/cve-2024-40896)
[CVE-2024-12243](https://nvd.nist.gov/vuln/detail/CVE-2024-12243)
[CVE-2025-24528](https://access.redhat.com/security/cve/cve-2025-24528)
[CVE-2025-3277](https://access.redhat.com/security/cve/cve-2025-3277)
[CVE-2024-12133](https://access.redhat.com/security/cve/cve-2024-12133)
[CVE-2024-57970](https://access.redhat.com/security/cve/cve-2024-57970)
[CVE-2025-31115](https://access.redhat.com/security/cve/cve-2025-31115)
```
3 changes: 3 additions & 0 deletions .changelog/22412.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:security
security: Upgrade Go to 1.23.10.
```
3 changes: 3 additions & 0 deletions .changelog/22423.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
ui: display IPv6 addresses with proper bracketed formatting
```
3 changes: 3 additions & 0 deletions .changelog/22467.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
cli: validate IP address in service registration to prevent invalid IPs in service and tagged addresses.
```
3 changes: 3 additions & 0 deletions .changelog/22468.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
ui: Improved display and handling of IPv6 addresses for better readability and usability in the Consul web interface.
```
3 changes: 3 additions & 0 deletions .changelog/22513.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
ui: Replaced internal code editor with HDS (HashiCorp Design System) code editor and code block components for improved accessibility and maintainability across the Consul UI.
```
3 changes: 3 additions & 0 deletions .changelog/22547.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:security
security: Update Go to 1.23.12 to address CVE-2025-47906
```
3 changes: 3 additions & 0 deletions .changelog/22552.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
cli: capture pprof when ACL is enabled and a token with operator:read is used, even if enable_debug config is not explicitly set.
```
3 changes: 3 additions & 0 deletions .changelog/22598.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:security
api: add charset in all applicable content-types.
```
12 changes: 6 additions & 6 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@

# engineering and web presence get notified of, and can approve changes to web tooling, but not content.

/website/ @hashicorp/web-presence @hashicorp/consul-selfmanage-maintainers
/website/ @hashicorp/consul-selfmanage-maintainers @hashicorp/web-presence
/website/data/
/website/public/
/website/content/

# education and engineering get notified of, and can approve changes to web content.

/website/data/ @hashicorp/consul-docs @hashicorp/consul-selfmanage-maintainers
/website/public/ @hashicorp/consul-docs @hashicorp/consul-selfmanage-maintainers
/website/content/ @hashicorp/consul-docs @hashicorp/consul-selfmanage-maintainers
/website/data/ @hashicorp/consul-selfmanage-maintainers @hashicorp/consul-docs
/website/public/ @hashicorp/consul-selfmanage-maintainers @hashicorp/consul-docs
/website/content/ @hashicorp/consul-selfmanage-maintainers @hashicorp/consul-docs


# release configuration
/.release/ @hashicorp/team-selfmanaged-releng @hashicorp/consul-selfmanage-maintainers
/.github/workflows/build.yml @hashicorp/team-selfmanaged-releng @hashicorp/consul-selfmanage-maintainers
/.release/ @hashicorp/consul-selfmanage-maintainers @hashicorp/team-selfmanaged-releng
/.github/workflows/build.yml @hashicorp/consul-selfmanage-maintainers @hashicorp/team-selfmanaged-releng
6 changes: 2 additions & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@ work on an issue, comment on it first and tell us the approach you want to take.
* Increase our test coverage.
* Fix a [bug](https://github.com/hashicorp/consul/labels/type/bug).
* Implement a requested [enhancement](https://github.com/hashicorp/consul/labels/type/enhancement).
* Improve our guides and documentation. Consul's [Guides](https://www.consul.io/docs/guides/index.html), [Docs](https://www.consul.io/docs/index.html), and [api godoc](https://godoc.org/github.com/hashicorp/consul/api)
* Improve our documentation and tutorials. Consul's [Documentation](https://developer.hashicorp.com/consul/docs) and [api godoc](https://godoc.org/github.com/hashicorp/consul/api)
are deployed from this repo.
* Respond to questions about usage on the issue tracker or the Consul section of the [HashiCorp forum]: (https://discuss.hashicorp.com/c/consul)

### Reporting an Issue

>Note: Issues on GitHub for Consul are intended to be related to bugs or feature requests.
>Questions should be directed to other community resources such as the: [Discuss Forum](https://discuss.hashicorp.com/c/consul/29), [FAQ](https://www.consul.io/docs/faq.html), or [Guides](https://www.consul.io/docs/guides/index.html).

* Make sure you test against the latest released version. It is possible we
already fixed the bug you're experiencing. However, if you are on an older
version of Consul and feel the issue is critical, do let us know.
Expand Down Expand Up @@ -163,7 +161,7 @@ When you're ready to submit a pull request:
| `pr/no-changelog` | This PR does not have an intended changelog entry |
| `pr/no-backport` | This PR does not have an intended backport target |
| `pr/no-metrics-test` | This PR does not require any testing for metrics |
| `backport/1.12.x` | Backport the changes in this PR to the targeted release branch. Consult the [Consul Release Notes](https://www.consul.io/docs/release-notes) page and [`versions.hcl`](/.release/versions.hcl) to view active releases. Website documentation merged to the latest release branch is deployed immediately. See [backport policy](#backport-policy) for more information. |
| `backport/1.12.x` | Backport the changes in this PR to the targeted release branch. Consult the [Consul Release Notes](https://developer.hashicorp.com/docs/release-notes) page and [`versions.hcl`](/.release/versions.hcl) to view active releases. Website documentation merged to the latest release branch is deployed immediately. See [backport policy](#backport-policy) for more information. |
| `backport/all` | If contributing a bug fix or other change applicable to all branches, use `backport/all` to target all active branches automatically. See [backport policy](#backport-policy) for more information. |

7. After you submit, the Consul maintainers team needs time to carefully review your
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/backport-assistant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
backport:
if: github.event.pull_request.merged
runs-on: ubuntu-latest
container: hashicorpdev/backport-assistant:0.4.4
container: hashicorpdev/backport-assistant:v0.5.8
steps:
- name: Run Backport Assistant for release branches
run: |
Expand Down
40 changes: 20 additions & 20 deletions .github/workflows/build-distros.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,25 +130,25 @@ jobs:
- run: CC=aarch64-linux-gnu-gcc GOARCH=arm64 go build -tags "${{ env.GOTAGS }}"


build-s390x:
if: ${{ endsWith(github.repository, '-enterprise') }}
needs:
- setup
- get-go-version
- check-go-mod
runs-on: ${{ fromJSON(needs.setup.outputs.compute-xl) }}
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4

# NOTE: This step is specifically needed for ENT. It allows us to access the required private HashiCorp repos.
- name: Setup Git
run: git config --global url."https://${{ secrets.ELEVATED_GITHUB_TOKEN }}:@github.com".insteadOf "https://github.com"

- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ needs.get-go-version.outputs.go-version }}
- name: Build
run: GOOS=linux GOARCH=s390x CGO_ENABLED=0 go build -tags "${{ env.GOTAGS }}"
# build-s390x:
# if: ${{ endsWith(github.repository, '-enterprise') }}
# needs:
# - setup
# - get-go-version
# - check-go-mod
# runs-on: ${{ fromJSON(needs.setup.outputs.compute-xl) }}
# steps:
# - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
#
# # NOTE: This step is specifically needed for ENT. It allows us to access the required private HashiCorp repos.
# - name: Setup Git
# run: git config --global url."https://${{ secrets.ELEVATED_GITHUB_TOKEN }}:@github.com".insteadOf "https://github.com"
#
# - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
# with:
# go-version: ${{ needs.get-go-version.outputs.go-version }}
# - name: Build
# run: GOOS=linux GOARCH=s390x CGO_ENABLED=0 go build -tags "${{ env.GOTAGS }}"

# This is job is required for branch protection as a required gihub check
# because GitHub actions show up as checks at the job level and not the
Expand All @@ -170,7 +170,7 @@ jobs:
- build-386
- build-amd64
- build-arm
- build-s390x
# - build-s390x
runs-on: ${{ fromJSON(needs.setup.outputs.compute-small) }}
if: ${{ always() }}
steps:
Expand Down
112 changes: 56 additions & 56 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
- name: Setup with node and yarn
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: '18'
node-version: '20'
cache: 'yarn'
cache-dependency-path: 'ui/yarn.lock'

Expand All @@ -134,7 +134,7 @@ jobs:
PRERELEASE_VERSION: ${{ needs.set-product-version.outputs.pre-version }}
CGO_ENABLED: "0"
GOLDFLAGS: "${{needs.set-product-version.outputs.shared-ldflags}}"
uses: hashicorp/actions-go-build@make-clean-flag-optional
uses: hashicorp/actions-go-build@b9e2cfba3013adccdc112b01cba922d83c78fac5 # v1.1.1
with:
product_name: ${{ env.PKG_NAME }}
product_version: ${{ needs.set-product-version.outputs.product-version }}
Expand Down Expand Up @@ -193,60 +193,60 @@ jobs:
name: ${{ env.DEB_PACKAGE }}
path: out/${{ env.DEB_PACKAGE }}

build-s390x:
needs:
- set-product-version
- get-go-version
if: ${{ endsWith(github.repository, '-enterprise') }}
runs-on: ubuntu-latest
strategy:
matrix:
include:
- {goos: "linux", goarch: "s390x"}
fail-fast: true

name: Go ${{ needs.get-go-version.outputs.go-version }} ${{ matrix.goos }} ${{ matrix.goarch }} build
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4

- name: Setup with node and yarn
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: '18'
cache: 'yarn'
cache-dependency-path: 'ui/yarn.lock'

- name: Build UI
run: |
CONSUL_VERSION=${{ needs.set-product-version.outputs.product-version }}
CONSUL_DATE=${{ needs.set-product-version.outputs.product-date }}
CONSUL_BINARY_TYPE=${CONSUL_BINARY_TYPE}
CONSUL_COPYRIGHT_YEAR=$(git show -s --format=%cd --date=format:%Y HEAD)
echo "consul_version is ${CONSUL_VERSION}"
echo "consul_date is ${CONSUL_DATE}"
echo "consul binary type is ${CONSUL_BINARY_TYPE}"
echo "consul copyright year is ${CONSUL_COPYRIGHT_YEAR}"
cd ui && make && cd ..
rm -rf agent/uiserver/dist
mv ui/packages/consul-ui/dist agent/uiserver/
- name: Go Build
env:
PRODUCT_VERSION: ${{ needs.set-product-version.outputs.product-version }}
PRERELEASE_VERSION: ${{ needs.set-product-version.outputs.pre-version }}
CGO_ENABLED: "0"
GOLDFLAGS: "${{needs.set-product-version.outputs.shared-ldflags}}"
uses: hashicorp/actions-go-build@make-clean-flag-optional
with:
product_name: ${{ env.PKG_NAME }}
product_version: ${{ needs.set-product-version.outputs.product-version }}
go_version: ${{ needs.get-go-version.outputs.go-version }}
os: ${{ matrix.goos }}
arch: ${{ matrix.goarch }}
reproducible: nope
clean: false
instructions: |-
cp LICENSE $TARGET_DIR/LICENSE.txt
go build -ldflags="$GOLDFLAGS" -o "$BIN_PATH" -trimpath -buildvcs=false
# build-s390x:
# needs:
# - set-product-version
# - get-go-version
# if: ${{ endsWith(github.repository, '-enterprise') }}
# runs-on: ubuntu-latest
# strategy:
# matrix:
# include:
# - {goos: "linux", goarch: "s390x"}
# fail-fast: true
#
# name: Go ${{ needs.get-go-version.outputs.go-version }} ${{ matrix.goos }} ${{ matrix.goarch }} build
# steps:
# - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
#
# - name: Setup with node and yarn
# uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
# with:
# node-version: '18'
# cache: 'yarn'
# cache-dependency-path: 'ui/yarn.lock'
#
# - name: Build UI
# run: |
# CONSUL_VERSION=${{ needs.set-product-version.outputs.product-version }}
# CONSUL_DATE=${{ needs.set-product-version.outputs.product-date }}
# CONSUL_BINARY_TYPE=${CONSUL_BINARY_TYPE}
# CONSUL_COPYRIGHT_YEAR=$(git show -s --format=%cd --date=format:%Y HEAD)
# echo "consul_version is ${CONSUL_VERSION}"
# echo "consul_date is ${CONSUL_DATE}"
# echo "consul binary type is ${CONSUL_BINARY_TYPE}"
# echo "consul copyright year is ${CONSUL_COPYRIGHT_YEAR}"
# cd ui && make && cd ..
# rm -rf agent/uiserver/dist
# mv ui/packages/consul-ui/dist agent/uiserver/
# - name: Go Build
# env:
# PRODUCT_VERSION: ${{ needs.set-product-version.outputs.product-version }}
# PRERELEASE_VERSION: ${{ needs.set-product-version.outputs.pre-version }}
# CGO_ENABLED: "0"
# GOLDFLAGS: "${{needs.set-product-version.outputs.shared-ldflags}}"
# uses: hashicorp/actions-go-build@b9e2cfba3013adccdc112b01cba922d83c78fac5 # v1.1.1
# with:
# product_name: ${{ env.PKG_NAME }}
# product_version: ${{ needs.set-product-version.outputs.product-version }}
# go_version: ${{ needs.get-go-version.outputs.go-version }}
# os: ${{ matrix.goos }}
# arch: ${{ matrix.goarch }}
# reproducible: nope
# clean: false
# instructions: |-
# cp LICENSE $TARGET_DIR/LICENSE.txt
# go build -ldflags="$GOLDFLAGS" -o "$BIN_PATH" -trimpath -buildvcs=false

build-docker:
name: Docker ${{ matrix.arch }} build
Expand Down
Loading