forked from letsencrypt/pebble
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require HS256, HS384, or HS512 for EAB (letsencrypt#459)
During the go-jose/v4 upgrade, I accidentally required the same signature sets for EAB as for the account keys, which is incorrect. This allows the correct MAC-based algorithms. It drops the custom algorithm checks, which are now unreachable as go-jose will enforce the algorithms. This also adds a new EAB key to Pebble's test config which explicitly has base64url characters, from letsencrypt#428 Fixes letsencrypt#455 --------- Co-authored-by: Folke Gleumes <[email protected]>
- Loading branch information
1 parent
8250e65
commit e87ace7
Showing
3 changed files
with
35 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,6 +59,33 @@ jobs: | |
run: | | ||
git clone https://github.com/eggsampler/acme.git /tmp/eggsampler-acme | ||
cd /tmp/eggsampler-acme && make test | ||
lego-eab-linux: | ||
name: Test lego with EAB | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
- name: Install lego cli | ||
run: go install github.com/go-acme/lego/v4/cmd/lego@latest | ||
- name: go install commands | ||
run: go install -v ./cmd/... | ||
- name: launch pebble | ||
run: | | ||
GORACE="halt_on_error=1" PEBBLE_VA_ALWAYS_VALID=1 \ | ||
pebble -config test/config/pebble-config-external-account-bindings.json & | ||
- run: | | ||
LEGO_CA_CERTIFICATES=./test/certs/pebble.minica.pem \ | ||
lego --accept-tos \ | ||
--server=https://localhost:14000/dir \ | ||
--email="[email protected]" \ | ||
--domains=example.letsencrypt.org \ | ||
--eab \ | ||
--kid kid-3 \ | ||
--hmac=HjudV5qnbreN-n9WyFSH-t4HXuEx_XFen45zuxY-G1h6fr74V3cUM_dVlwQZBWmc \ | ||
--http --http.port=:5002 \ | ||
run | ||
go-linux: | ||
name: Run Go tests on Linux | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters