Skip to content

Commit 1b11995

Browse files
committed
backport of commit 47f0bb8
1 parent b00c063 commit 1b11995

File tree

1,019 files changed

+25276
-38065
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,019 files changed

+25276
-38065
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,3 @@ updates:
1111
schedule:
1212
# Check for updates to GitHub Actions every weekday
1313
interval: "daily"
14-
allow:
15-
# Allow updates for internal actions
16-
- dependency-name: "hashicorp/*"

.github/workflows/backport.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,8 @@ jobs:
1414
backport:
1515
if: github.event.pull_request.merged
1616
runs-on: ${{ fromJSON(vars.RUNNER) }}
17-
container: hashicorpdev/backport-assistant:0.5.1
17+
container: hashicorpdev/backport-assistant:0.2.3
1818
steps:
19-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
20-
with:
21-
fetch-depth: 0 # Fetch all branches and tags
22-
- name: Check if any migrations have changed
23-
run: |
24-
if git diff --exit-code --name-only "origin/${{ github.event.pull_request.base.ref }}"...HEAD -- internal/db/schema/migrations; then
25-
echo "No migrations have changed, continuing with backport"
26-
else
27-
# Post comment on PR.
28-
echo "Posting new backport-failure GitHub comment under PR #${{ github.event.pull_request.number }}"
29-
curl -sX POST \
30-
-H "Accept: application/vnd.github+json" \
31-
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
32-
-d '{"body": "Backport Assistant: you attempted to automatically backport changes in this PR, but because it contained changes to migration files, this was rejected. Please carefully manually backport the changes."}' \
33-
"$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/issues/${{ github.event.pull_request.number }}/comments"
34-
echo "Migrations have changed, refusing to backport. Please carefully manually backport the changes."
35-
exit 1
36-
fi
3719
- name: Backport changes to stable-website
3820
run: |
3921
backport-assistant backport -automerge

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,6 @@ jobs:
380380
arch: ${{ matrix.arch }}
381381
tags: |
382382
docker.io/hashicorp/${{ env.repo }}:${{ env.version }}
383-
docker.io/hashicorp/${{ env.repo }}:${{ env.version }}_${{ github.sha }}
384383
public.ecr.aws/hashicorp/${{ env.repo }}:${{ env.version }}
385384
# Per-commit dev images follow the naming convention MAJOR.MINOR-dev
386385
# And MAJOR.MINOR-dev-$COMMITSHA

.github/workflows/enos-run.yml

Lines changed: 16 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,10 @@ jobs:
7676
fail-fast: false # don't fail as that can skip required cleanup steps for jobs
7777
matrix:
7878
include:
79-
- filter: 'e2e_aws builder:crt ip_version:4'
79+
- filter: 'e2e_aws builder:crt'
8080
- filter: 'e2e_database'
8181
- filter: 'e2e_docker_base builder:crt'
8282
- filter: 'e2e_docker_base_plus builder:crt'
83-
- filter: 'e2e_docker_base_with_gcp builder:crt'
8483
- filter: 'e2e_docker_base_with_vault builder:crt'
8584
- filter: 'e2e_docker_base_with_worker builder:crt'
8685
- filter: 'e2e_docker_worker_registration_controller_led builder:crt'
@@ -102,10 +101,6 @@ jobs:
102101
ENOS_VAR_boundary_docker_image_name: ${{ inputs.docker-image-name }}
103102
ENOS_VAR_boundary_docker_image_file: ./support/boundary_docker_image.tar
104103
ENOS_VAR_go_version: ${{ inputs.go-version }}
105-
ENOS_VAR_gcp_project_id: ${{ secrets.GCP_PROJECT_ID_CI }}
106-
ENOS_VAR_gcp_client_email: ${{ secrets.GCP_CLIENT_EMAIL_CI }}
107-
ENOS_VAR_gcp_private_key_id: ${{ secrets.GCP_PRIVATE_KEY_ID_CI }}
108-
ENOS_VAR_gcp_private_key: ${{ secrets.GCP_PRIVATE_KEY_CI }}
109104
steps:
110105
- name: Checkout
111106
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -124,7 +119,7 @@ jobs:
124119
key: ${{ needs.setup.outputs.go-cache-key }}
125120
restore-keys: |
126121
${{ runner.os }}-go
127-
fail-on-cache-miss: false
122+
fail-on-cache-miss: true
128123
- name: Set up Terraform
129124
uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 # TSCCR: loading action configs: failed to query HEAD reference: failed to get advertised references: authorization failed
130125
with:
@@ -144,25 +139,14 @@ jobs:
144139
echo "trusted-key ${{ secrets.ENOS_GPG_UID }}" >> ~/.gnupg/gpg.conf
145140
cat ~/.gnupg/gpg.conf
146141
- name: Configure AWS credentials
147-
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
142+
uses: aws-actions/configure-aws-credentials@4fc4975a852c8cd99761e2de1f4ba73402e44dd9 # v4.0.3
148143
with:
149144
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_CI }}
150145
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_CI }}
151146
aws-region: us-east-1
152147
role-to-assume: ${{ secrets.AWS_ROLE_ARN_CI }}
153148
role-skip-session-tagging: true
154149
role-duration-seconds: 3600
155-
- name: Configure GCP credentials
156-
if: contains(matrix.filter, 'gcp')
157-
id: gcp_auth
158-
uses: google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f # v2.1.7
159-
with:
160-
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
161-
access_token_lifetime: '3600s'
162-
project_id: ${{ secrets.GCP_PROJECT_ID_CI }}
163-
- name: 'Set up GCP Cloud SDK'
164-
if: contains(matrix.filter, 'gcp')
165-
uses: google-github-actions/setup-gcloud@6189d56e4096ee891640bb02ac264be376592d6a # v2.1.2
166150
- name: Set up Enos
167151
uses: hashicorp/action-setup-enos@v1 # TSCCR: loading action configs: failed to query HEAD reference: failed to get advertised references: authorization failed
168152
with:
@@ -279,7 +263,7 @@ jobs:
279263
- name: Split matrix filter name
280264
id: split
281265
run: |
282-
SCENARIO=$(echo "${{ matrix.filter }}" | cut -d' ' -f1,3 | sed 's/:/_/g')
266+
SCENARIO=$(echo "${{ matrix.filter }}" | cut -d' ' -f1)
283267
echo fragment="${SCENARIO}" >> "$GITHUB_OUTPUT"
284268
- name: Upload e2e tests output
285269
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
@@ -349,18 +333,21 @@ jobs:
349333
# failure() does not capture errors in `Run Enos scenario` due to continue-on-error
350334
if: ${{ failure() || (steps.run.outcome == 'failure' && steps.run_retry.outcome == 'failure') }}
351335
with:
352-
method: chat.postMessage
353-
token: ${{ secrets.SLACK_BOUNDARY_TEST_BOT_TOKEN }}
336+
channel-id: ${{ secrets.SLACK_BOUNDARY_TEST_BOT_CHANNEL_ID }}
354337
payload: |
355-
channel: ${{ secrets.SLACK_BOUNDARY_TEST_BOT_CHANNEL_ID }}
356-
text: ":x: e2e tests failed (${{ matrix.filter }}): ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\n*Branch:* ${{ github.event.ref }}\n*SHA:* <${{ github.event.head_commit.url }}|${{ github.event.after }}>"
338+
{
339+
"text": ":x: e2e tests failed (${{ matrix.filter }}): ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\n*Branch:* ${{ github.event.ref }}\n*SHA:* <${{ github.event.head_commit.url }}|${{ github.event.after }}>"
340+
}
341+
env:
342+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOUNDARY_TEST_BOT_TOKEN }}
357343
- name: Send Slack message if Run but Retry passes
358344
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0
359345
if: ${{ steps.run.outcome == 'failure' && steps.run_retry.outcome != 'failure' }}
360346
with:
361-
method: chat.postMessage
362-
token: ${{ secrets.SLACK_BOUNDARY_TEST_BOT_TOKEN }}
347+
channel-id: ${{ secrets.SLACK_BOUNDARY_TEST_BOT_CHANNEL_ID }}
363348
payload: |
364-
channel: ${{ secrets.SLACK_BOUNDARY_TEST_BOT_CHANNEL_ID }}
365-
text: ":warning: e2e tests passed, but needed retry (${{ matrix.filter }}): ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\n*Branch:* ${{ github.event.ref }}\n*SHA:* <${{ github.event.head_commit.url }}|${{ github.event.after }}>"
366-
349+
{
350+
"text": ":warning: e2e tests passed, but needed retry (${{ matrix.filter }}): ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\n*Branch:* ${{ github.event.ref }}\n*SHA:* <${{ github.event.head_commit.url }}|${{ github.event.after }}>"
351+
}
352+
env:
353+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOUNDARY_TEST_BOT_TOKEN }}

.github/workflows/jira.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
id: boundary-team-role
2323
run: |
2424
TEAM=boundary
25-
ROLE="$(gh api orgs/hashicorp/teams/${TEAM}/memberships/${{ github.actor }} | jq -r '.role | select(.!=null)')"
25+
ROLE="$(hub api orgs/hashicorp/teams/${TEAM}/memberships/${{ github.actor }} | jq -r '.role | select(.!=null)')"
2626
if [[ -n ${ROLE} ]]; then
2727
echo "Actor ${{ github.actor }} is a ${TEAM} team member, skipping ticket creation"
2828
else

.github/workflows/security-scan.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ jobs:
3434
cache: false
3535

3636
- name: Set up Python
37-
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
37+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
3838
with:
3939
python-version: 3.x
4040

4141
- name: Clone Security Scanner repo
4242
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4343
with:
4444
repository: hashicorp/security-scanner
45-
token: ${{ secrets.PRODSEC_SCANNER_READ_ONLY }}
45+
token: ${{ secrets.HASHIBOT_PRODSEC_GITHUB_TOKEN }}
4646
path: security-scanner
4747
ref: main
4848

@@ -64,7 +64,7 @@ jobs:
6464
python3 -m pip install semgrep==1.45.0
6565
6666
# CodeQL
67-
LATEST=$(gh release list --repo https://github.com/github/codeql-action | cut -f 3 | grep codeql-bundle- | sort --version-sort | tail -n1)
67+
LATEST=$(gh release list --repo https://github.com/github/codeql-action | cut -f 3 | sort --version-sort | tail -n1)
6868
gh release download --repo https://github.com/github/codeql-action --pattern codeql-bundle-linux64.tar.gz "$LATEST"
6969
tar xf codeql-bundle-linux64.tar.gz -C "$HOME/.bin"
7070
@@ -79,7 +79,7 @@ jobs:
7979
repository: "$PWD"
8080

8181
- name: Upload SARIF file
82-
uses: github/codeql-action/upload-sarif@7e3036b9cd87fc26dd06747b7aa4b96c27aaef3a # codeql-bundle-v2.20.3
82+
uses: github/codeql-action/upload-sarif@08bc0cf022445eacafaa248bf48da20f26b8fd40 # codeql-bundle-v2.20.4
8383
with:
8484
sarif_file: results.sarif
8585

.github/workflows/test-ci-bootstrap-oss.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Set up Terraform
3232
uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 # TSCCR: loading action configs: failed to query HEAD reference: failed to get advertised references: authorization failed
3333
- name: Configure AWS credentials
34-
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
34+
uses: aws-actions/configure-aws-credentials@4fc4975a852c8cd99761e2de1f4ba73402e44dd9 # v4.0.3
3535
with:
3636
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_CI }}
3737
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_CI }}

.github/workflows/test-ci-cleanup-oss.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
regions: ${{steps.regions.outputs.regions}}
1616
steps:
1717
- name: Configure AWS credentials
18-
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
18+
uses: aws-actions/configure-aws-credentials@4fc4975a852c8cd99761e2de1f4ba73402e44dd9 # v4.0.3
1919
with:
2020
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_CI }}
2121
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_CI }}
@@ -44,7 +44,7 @@ jobs:
4444
steps:
4545
- name: Configure AWS credentials
4646
id: aws-configure
47-
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
47+
uses: aws-actions/configure-aws-credentials@4fc4975a852c8cd99761e2de1f4ba73402e44dd9 # v4.0.3
4848
with:
4949
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_CI }}
5050
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_CI }}
@@ -80,7 +80,7 @@ jobs:
8080
region: ${{ fromJSON(needs.setup.outputs.regions) }}
8181
steps:
8282
- name: Configure AWS credentials
83-
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
83+
uses: aws-actions/configure-aws-credentials@4fc4975a852c8cd99761e2de1f4ba73402e44dd9 # v4.0.3
8484
with:
8585
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_CI }}
8686
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_CI }}

.github/workflows/test-cli-ui_oss.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,10 @@ jobs:
114114
if: ${{ failure() }}
115115
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0
116116
with:
117-
method: chat.postMessage
118-
token: ${{ secrets.SLACK_BOUNDARY_TEST_BOT_TOKEN }}
117+
channel-id: ${{ secrets.SLACK_BOUNDARY_TEST_BOT_CHANNEL_ID }}
119118
payload: |
120-
channel: ${{ secrets.SLACK_BOUNDARY_TEST_BOT_CHANNEL_ID }}
121-
text: ":x: bats tests failed: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\n*Branch:* ${{ github.event.ref }}\n*SHA:* <${{ github.event.head_commit.url }}|${{ github.event.after }}>"
119+
{
120+
"text": ":x: bats tests failed: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\n*Branch:* ${{ github.event.ref }}\n*SHA:* <${{ github.event.head_commit.url }}|${{ github.event.after }}>"
121+
}
122+
env:
123+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOUNDARY_TEST_BOT_TOKEN }}

.github/workflows/test-race.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
key: ${{ needs.setup.outputs.go-cache-key }}
110110
restore-keys: |
111111
${{ runner.os }}-go
112-
fail-on-cache-miss: false
112+
fail-on-cache-miss: true
113113
- name: Test ${{ matrix.module }} Module
114114
run: |
115115
make test-${{ matrix.module }}
@@ -132,7 +132,6 @@ jobs:
132132
go-version: "${{ needs.setup.outputs.go-version }}"
133133
cache: false
134134
- name: Set up Go modules cache
135-
id: go-cache
136135
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
137136
with:
138137
path: |
@@ -142,16 +141,7 @@ jobs:
142141
key: ${{ needs.setup.outputs.go-cache-key }}
143142
restore-keys: |
144143
${{ runner.os }}-go
145-
fail-on-cache-miss: false
146-
- name: Install tools if tparse doesn't exist
147-
run: |
148-
if command -v tparse &> /dev/null; then
149-
echo "tparse exists"
150-
else
151-
echo "tparse doesn't exist"
152-
go mod download
153-
make tools
154-
fi
144+
fail-on-cache-miss: true
155145
- name: Set up plugin cache
156146
id: plugin-cache
157147
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0

.github/workflows/test.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
key: ${{ needs.setup.outputs.go-cache-key }}
110110
restore-keys: |
111111
${{ runner.os }}-go
112-
fail-on-cache-miss: false
112+
fail-on-cache-miss: true
113113
- name: Test ${{ matrix.module }} Module
114114
run: |
115115
make test-${{ matrix.module }}
@@ -132,7 +132,6 @@ jobs:
132132
go-version: "${{ needs.setup.outputs.go-version }}"
133133
cache: false
134134
- name: Set up Go modules cache
135-
id: go-cache
136135
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
137136
with:
138137
path: |
@@ -142,16 +141,7 @@ jobs:
142141
key: ${{ needs.setup.outputs.go-cache-key }}
143142
restore-keys: |
144143
${{ runner.os }}-go
145-
fail-on-cache-miss: false
146-
- name: Install tools if tparse doesn't exist
147-
run: |
148-
if command -v tparse &> /dev/null; then
149-
echo "tparse exists"
150-
else
151-
echo "tparse doesn't exist"
152-
go mod download
153-
make tools
154-
fi
144+
fail-on-cache-miss: true
155145
- name: Set up plugin cache
156146
id: plugin-cache
157147
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0

.go-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.24.0
1+
1.22.5

.golangci.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,3 @@ issues:
6969
- linters:
7070
- staticcheck
7171
text: "SA1019: j.GetId is deprecated:"
72-
- linters:
73-
- staticcheck
74-
text: "SA1019: pbs.StatusRequest is deprecated:"
75-
- linters:
76-
- staticcheck
77-
text: "SA1019: pbs.StatusResponse is deprecated:"

.release/boundary-artifacts.hcl

Lines changed: 0 additions & 48 deletions
This file was deleted.

.release/linux/package/etc/boundary.d/worker.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# description = "A default worker created demonstration"
1414

1515
# # Workers must be able to reach controllers on :9201
16-
# initial_upstreams = [
16+
# controllers = [
1717
# "10.0.0.1",
1818
# "10.0.0.2",
1919
# "10.0.0.3",

.release/security-scan.hcl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ container {
55
dependencies = true
66
alpine_secdb = true
77
secrets = false
8+
9+
triage {
10+
suppress {
11+
// Suppress wget vulnerability
12+
vulnerabilities = ["CVE-2024-10524"]
13+
}
14+
}
815
}
916

1017
binary {

0 commit comments

Comments
 (0)