Skip to content

Commit 030ade0

Browse files
committed
Merge branch 'master' into net-wal
Signed-off-by: Mohammed Al Sahaf <[email protected]>
2 parents da8322b + e4447c4 commit 030ade0

File tree

58 files changed

+702
-146
lines changed

Some content is hidden

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

58 files changed

+702
-146
lines changed

.github/dependabot.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,20 @@ version: 2
33
updates:
44
- package-ecosystem: "github-actions"
55
directory: "/"
6+
open-pull-requests-limit: 1
7+
groups:
8+
actions-deps:
9+
patterns:
10+
- "*"
611
schedule:
712
interval: "monthly"
8-
9-
- package-ecosystem: gomod
10-
directory: /
13+
14+
- package-ecosystem: "gomod"
15+
directory: "/"
16+
open-pull-requests-limit: 1
17+
groups:
18+
all-updates:
19+
patterns:
20+
- "*"
1121
schedule:
12-
interval: weekly
22+
interval: "monthly"

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
actions: write # to allow uploading artifacts and cache
6565
steps:
6666
- name: Harden the runner (Audit all outbound calls)
67-
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
67+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
6868
with:
6969
egress-policy: audit
7070

@@ -161,7 +161,7 @@ jobs:
161161
continue-on-error: true # August 2020: s390x VM is down due to weather and power issues
162162
steps:
163163
- name: Harden the runner (Audit all outbound calls)
164-
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
164+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
165165
with:
166166
egress-policy: audit
167167
allowed-endpoints: ci-s390x.caddyserver.com:22
@@ -220,7 +220,7 @@ jobs:
220220
if: github.event.pull_request.head.repo.full_name == 'caddyserver/caddy' && github.actor != 'dependabot[bot]'
221221
steps:
222222
- name: Harden the runner (Audit all outbound calls)
223-
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
223+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
224224
with:
225225
egress-policy: audit
226226

.github/workflows/cross-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
continue-on-error: true
5050
steps:
5151
- name: Harden the runner (Audit all outbound calls)
52-
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
52+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
5353
with:
5454
egress-policy: audit
5555

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545

4646
steps:
4747
- name: Harden the runner (Audit all outbound calls)
48-
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
48+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
4949
with:
5050
egress-policy: audit
5151

@@ -73,7 +73,7 @@ jobs:
7373
runs-on: ubuntu-latest
7474
steps:
7575
- name: Harden the runner (Audit all outbound calls)
76-
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
76+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
7777
with:
7878
egress-policy: audit
7979

@@ -90,7 +90,7 @@ jobs:
9090
pull-requests: write
9191
steps:
9292
- name: Harden the runner (Audit all outbound calls)
93-
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
93+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
9494
with:
9595
egress-policy: audit
9696

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
steps:
4141
- name: Harden the runner (Audit all outbound calls)
42-
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
42+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
4343
with:
4444
egress-policy: audit
4545

@@ -109,11 +109,11 @@ jobs:
109109
git verify-tag "${{ steps.vars.outputs.version_tag }}" || exit 1
110110
111111
- name: Install Cosign
112-
uses: sigstore/cosign-installer@e9a05e6d32d7ed22b5656cd874ef31af58d05bfa # main
112+
uses: sigstore/cosign-installer@d58896d6a1865668819e1d91763c7751a165e159 # main
113113
- name: Cosign version
114114
run: cosign version
115115
- name: Install Syft
116-
uses: anchore/sbom-action/download-syft@9246b90769f852b3a8921f330c59e0b3f439d6e9 # main
116+
uses: anchore/sbom-action/download-syft@7b36ad622f042cab6f59a75c2ac24ccb256e9b45 # main
117117
- name: Syft version
118118
run: syft version
119119
- name: Install xcaddy

.github/workflows/release_published.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
# See https://github.com/peter-evans/repository-dispatch
2626
- name: Harden the runner (Audit all outbound calls)
27-
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
27+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
2828
with:
2929
egress-policy: audit
3030

.github/workflows/scorecard.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737

3838
steps:
3939
- name: Harden the runner (Audit all outbound calls)
40-
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
40+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
4141
with:
4242
egress-policy: audit
4343

@@ -47,7 +47,7 @@ jobs:
4747
persist-credentials: false
4848

4949
- name: "Run analysis"
50-
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
50+
uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
5151
with:
5252
results_file: results.sarif
5353
results_format: sarif
@@ -72,7 +72,7 @@ jobs:
7272
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
7373
# format to the repository Actions tab.
7474
- name: "Upload artifact"
75-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
75+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
7676
with:
7777
name: SARIF file
7878
path: results.sarif
@@ -81,6 +81,6 @@ jobs:
8181
# Upload the results to GitHub's code scanning dashboard (optional).
8282
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
8383
- name: "Upload to code-scanning"
84-
uses: github/codeql-action/upload-sarif@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
84+
uses: github/codeql-action/upload-sarif@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3.29.5
8585
with:
8686
sarif_file: results.sarif

admin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ func (h adminHandler) originAllowed(origin *url.URL) bool {
946946
return false
947947
}
948948

949-
// etagHasher returns a the hasher we used on the config to both
949+
// etagHasher returns the hasher we used on the config to both
950950
// produce and verify ETags.
951951
func etagHasher() hash.Hash { return xxhash.New() }
952952

caddy.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ type Config struct {
8181
// associated value.
8282
AppsRaw ModuleMap `json:"apps,omitempty" caddy:"namespace="`
8383

84-
apps map[string]App
84+
apps map[string]App
85+
86+
// failedApps is a map of apps that failed to provision with their underlying error.
87+
failedApps map[string]error
8588
storage certmagic.Storage
8689
eventEmitter eventEmitter
8790

@@ -522,6 +525,7 @@ func provisionContext(newCfg *Config, replaceAdminServer bool) (Context, error)
522525

523526
// prepare the new config for use
524527
newCfg.apps = make(map[string]App)
528+
newCfg.failedApps = make(map[string]error)
525529

526530
// set up global storage and make it CertMagic's default storage, too
527531
err = func() error {

caddyconfig/caddyfile/lexer.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ func (l *lexer) finalizeHeredoc(val []rune, marker string) ([]rune, error) {
323323

324324
// if the padding doesn't match exactly at the start then we can't safely strip
325325
if index != 0 {
326-
return nil, fmt.Errorf("mismatched leading whitespace in heredoc <<%s on line #%d [%s], expected whitespace [%s] to match the closing marker", marker, l.line+lineNum+1, lineText, paddingToStrip)
326+
cleanLineText := strings.TrimRight(lineText, "\r\n")
327+
return nil, fmt.Errorf("mismatched leading whitespace in heredoc <<%s on line #%d [%s], expected whitespace [%s] to match the closing marker", marker, l.line+lineNum+1, cleanLineText, paddingToStrip)
327328
}
328329

329330
// strip, then append the line, with the newline, to the output.

0 commit comments

Comments
 (0)