Skip to content

Commit

Permalink
Bump boulder version to release-2025-01-06
Browse files Browse the repository at this point in the history
  • Loading branch information
hakwerk committed Jan 12, 2025
1 parent 2cb4d79 commit 3116c85
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 37 deletions.
2 changes: 1 addition & 1 deletion build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ TMP_DIR=$(pwd)/tmp
rm -rf $TMP_DIR && mkdir -p $TMP_DIR/{admin,bin,logs,src}

boulderDir=$TMP_DIR/src
boulderTag="release-2024-12-10"
boulderTag="release-2025-01-06"
boulderUrl="https://github.com/letsencrypt/boulder/"
cloneDir=$(pwd)/..

Expand Down
4 changes: 2 additions & 2 deletions commander
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,12 @@ case $txt in
read serial
read reason
cd /opt/boulder
docker compose exec boulder bin/admin -config labca/config/admin.json revoke-cert -serial $serial -reason $reason -dry-run=false 2>&1
docker compose exec boulder bin/boulder admin -config labca/config/admin.json revoke-cert -serial $serial -reason $reason -dry-run=false 2>&1
;;
"test-email")
read recipient
cd /opt/boulder
docker compose exec boulder bin/mail-tester --config labca/config/expiration-mailer.json $recipient 2>&1
docker compose exec boulder bin/boulder mail-tester --config labca/config/expiration-mailer.json $recipient 2>&1
;;
"boulder-start")
cd /opt/boulder
Expand Down
4 changes: 2 additions & 2 deletions gui/apply-boulder
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ sed -i -e "s/\"directoryCAAIdentity\": \".*\"/\"directoryCAAIdentity\": \"$PKI_D

if ([ "$PKI_DOMAIN_MODE" == "lockdown" ] && [ "$PKI_LOCKDOWN_DOMAINS" != "" ]) || ([ "$PKI_DOMAIN_MODE" == "whitelist" ] && [ "$PKI_WHITELIST_DOMAINS" != "" ]); then
perl -i -p0e "s/(\"badResultsOnly\":[^\n]*).*?(\s+)(\"checkPeriod\":)/\1\2\"skipForbiddenDomains\": true,\2\3/igs" config/cert-checker.json
perl -i -p0e "s/(\"ignoredLints\": \[).*?(\s+)(\"w_subject_common_name_included\")/\1\2\"e_dnsname_not_valid_tld\",\2\3/igs" config/cert-checker.json
perl -i -p0e "s/(\"ignoredLints\": \[).*?(\s+)(\"w_subject_common_name_included\")/\1\2\"e_dnsname_not_valid_tld\",\2\3/igs" config/ca.json
perl -i -p0e "s/(\"ignoredLints\": \[).*?(\s+)(\"w_subject_common_name_included\")/\1\2\"e_dnsname_not_valid_tld\",\2\"w_sub_cert_aia_contains_internal_names\",\2\3/igs" config/cert-checker.json
perl -i -p0e "s/(\"ignoredLints\": \[).*?(\s+)(\"w_subject_common_name_included\")/\1\2\"e_dnsname_not_valid_tld\",\2\"w_sub_cert_aia_contains_internal_names\",\2\3/igs" config/ca.json

perl -i -p0e "s/(\"SubscriberKeyUsageValidator:cabf.serverauth.subscriber_rsa_digitalsignature_and_keyencipherment_present\",).*(\])/\1\n \"GeneralNameDnsNameInternalDomainNameValidator:cabf.internal_domain_name\",\n \"GeneralNameUriInternalDomainNameValidator:cabf.internal_domain_name\",\n\2/igs" config/zlint.toml
fi
Expand Down
2 changes: 1 addition & 1 deletion install
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dockerComposeVersion="v2.5.0"

labcaUrl="https://github.com/hakwerk/labca/"
boulderUrl="https://github.com/letsencrypt/boulder/"
boulderTag="release-2024-12-10"
boulderTag="release-2025-01-06"

# Feature flags
flag_skip_redis=true
Expand Down
2 changes: 1 addition & 1 deletion mailer
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ TODAY=`date '+%Y_%m_%d'`
echo "Running cron-$(basename $0) for ${TODAY}..."

cd /opt/boulder
docker compose exec boulder bin/expiration-mailer --config labca/config/expiration-mailer.json 2>&1
docker compose exec boulder bin/boulder expiration-mailer --config labca/config/expiration-mailer.json 2>&1
24 changes: 12 additions & 12 deletions patches/db_migrations.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/sa/db/boulder_sa/20230419000000_CombinedSchema.sql b/sa/db/boulder_sa/20230419000000_CombinedSchema.sql
index ff8e54320..347f72fff 100644
index 42c489be9..d2b1eb43b 100644
--- a/sa/db/boulder_sa/20230419000000_CombinedSchema.sql
+++ b/sa/db/boulder_sa/20230419000000_CombinedSchema.sql
@@ -1,7 +1,9 @@
Expand Down Expand Up @@ -88,7 +88,7 @@ index ff8e54320..347f72fff 100644
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`setHash` binary(32) NOT NULL,
`serial` varchar(255) NOT NULL,
@@ -91,11 +102,9 @@ CREATE TABLE `fqdnSets` (
@@ -93,11 +104,9 @@ CREATE TABLE `fqdnSets` (
PRIMARY KEY (`id`),
KEY `serial` (`serial`),
KEY `setHash_issued_idx` (`setHash`,`issued`)
Expand All @@ -102,7 +102,7 @@ index ff8e54320..347f72fff 100644
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`serialTable` varchar(128) NOT NULL,
`url` varchar(1024) NOT NULL,
@@ -104,7 +113,7 @@ CREATE TABLE `incidents` (
@@ -106,7 +115,7 @@ CREATE TABLE `incidents` (
PRIMARY KEY (`id`)
) CHARSET=utf8mb4;

Expand All @@ -111,7 +111,7 @@ index ff8e54320..347f72fff 100644
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`reversedName` varchar(640) CHARACTER SET ascii NOT NULL,
`notBefore` datetime NOT NULL,
@@ -112,11 +121,9 @@ CREATE TABLE `issuedNames` (
@@ -114,11 +123,9 @@ CREATE TABLE `issuedNames` (
`renewal` tinyint(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
KEY `reversedName_notBefore_Idx` (`reversedName`,`notBefore`)
Expand All @@ -125,7 +125,7 @@ index ff8e54320..347f72fff 100644
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`keyHash` binary(32) NOT NULL,
`certNotAfter` datetime NOT NULL,
@@ -126,7 +133,7 @@ CREATE TABLE `keyHashToSerial` (
@@ -128,7 +135,7 @@ CREATE TABLE `keyHashToSerial` (
KEY `keyHash_certNotAfter` (`keyHash`,`certNotAfter`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

Expand All @@ -134,7 +134,7 @@ index ff8e54320..347f72fff 100644
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`regID` bigint(20) NOT NULL,
`time` datetime NOT NULL,
@@ -135,7 +142,7 @@ CREATE TABLE `newOrdersRL` (
@@ -137,7 +144,7 @@ CREATE TABLE `newOrdersRL` (
UNIQUE KEY `regID_time_idx` (`regID`,`time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

Expand All @@ -143,7 +143,7 @@ index ff8e54320..347f72fff 100644
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`setHash` binary(32) NOT NULL,
`orderID` bigint(20) NOT NULL,
@@ -145,20 +152,18 @@ CREATE TABLE `orderFqdnSets` (
@@ -147,20 +154,18 @@ CREATE TABLE `orderFqdnSets` (
KEY `setHash_expires_idx` (`setHash`,`expires`),
KEY `orderID_idx` (`orderID`),
KEY `orderFqdnSets_registrationID_registrations` (`registrationID`)
Expand All @@ -170,7 +170,7 @@ index ff8e54320..347f72fff 100644
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`registrationID` bigint(20) NOT NULL,
`expires` datetime NOT NULL,
@@ -169,14 +174,12 @@ CREATE TABLE `orders` (
@@ -171,14 +176,12 @@ CREATE TABLE `orders` (
PRIMARY KEY (`id`),
KEY `reg_status_expires` (`registrationID`,`expires`),
KEY `regID_created_idx` (`registrationID`,`created`)
Expand All @@ -187,7 +187,7 @@ index ff8e54320..347f72fff 100644
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`registrationID` bigint(20) NOT NULL,
`serial` varchar(255) NOT NULL,
@@ -187,11 +190,11 @@ CREATE TABLE `precertificates` (
@@ -189,11 +192,11 @@ CREATE TABLE `precertificates` (
KEY `serial` (`serial`),
KEY `regId_precertificates_idx` (`registrationID`),
KEY `issued_precertificates_idx` (`issued`)
Expand All @@ -203,7 +203,7 @@ index ff8e54320..347f72fff 100644
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`jwk` mediumblob NOT NULL,
`jwk_sha256` varchar(255) NOT NULL,
@@ -206,20 +209,32 @@ CREATE TABLE `registrations` (
@@ -208,20 +211,32 @@ CREATE TABLE `registrations` (
KEY `initialIP_createdAt` (`initialIP`,`createdAt`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

Expand Down Expand Up @@ -241,7 +241,7 @@ index ff8e54320..347f72fff 100644
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`registrationID` bigint(20) NOT NULL,
`serial` varchar(255) NOT NULL,
@@ -237,6 +252,18 @@ CREATE TABLE `serials` (
@@ -239,6 +254,18 @@ CREATE TABLE `serials` (
-- First set of tables have foreign key constraints, so are dropped first.
DROP TABLE `serials`;

Expand All @@ -260,7 +260,7 @@ index ff8e54320..347f72fff 100644
DROP TABLE `authz2`;
DROP TABLE `blockedKeys`;
DROP TABLE `certificateStatus`;
@@ -247,8 +274,44 @@ DROP TABLE `issuedNames`;
@@ -249,8 +276,44 @@ DROP TABLE `issuedNames`;
DROP TABLE `keyHashToSerial`;
DROP TABLE `newOrdersRL`;
DROP TABLE `orderFqdnSets`;
Expand Down
8 changes: 4 additions & 4 deletions patches/makefile.patch
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
diff --git a/Makefile b/Makefile
index 6427367f..54055e74 100644
index 9522b89a7..b5aa9d84a 100644
--- a/Makefile
+++ b/Makefile
@@ -37,7 +37,7 @@ $(CMD_BINS): build_cmds
@@ -36,7 +36,7 @@ $(CMD_BINS): build_cmds

build_cmds: | $(OBJDIR)
echo $(OBJECTS)
- GOBIN=$(OBJDIR) GO111MODULE=on go install -mod=vendor $(GO_BUILD_FLAGS) ./...
+ GOBIN=$(OBJDIR) GO111MODULE=on go install -mod=vendor -buildvcs=false $(GO_BUILD_FLAGS) ./...
./link.sh

# Building an RPM requires `fpm` from https://github.com/jordansissel/fpm
# Building a .deb requires `fpm` from https://github.com/jordansissel/fpm
# which you can install with `gem install fpm`.
4 changes: 2 additions & 2 deletions patches/ra_ra.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/ra/ra.go b/ra/ra.go
index 64d494c74..7ae5bb471 100644
index 3c0f53e22..8c245358d 100644
--- a/ra/ra.go
+++ b/ra/ra.go
@@ -43,7 +43,6 @@ import (
Expand All @@ -10,7 +10,7 @@ index 64d494c74..7ae5bb471 100644
"github.com/letsencrypt/boulder/probs"
pubpb "github.com/letsencrypt/boulder/publisher/proto"
rapb "github.com/letsencrypt/boulder/ra/proto"
@@ -464,7 +463,7 @@ func (ra *RegistrationAuthorityImpl) validateContacts(contacts []string) error {
@@ -468,7 +467,7 @@ func (ra *RegistrationAuthorityImpl) validateContacts(contacts []string) error {
if !core.IsASCII(contact) {
return berrors.InvalidEmailError("contact email contains non-ASCII characters")
}
Expand Down
12 changes: 7 additions & 5 deletions patches/test_certs_generate.patch
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
diff --git a/test/certs/generate.sh b/test/certs/generate.sh
index 0b33f8c18..3e447f6f5 100755
index 7386e7992..27d105017 100755
--- a/test/certs/generate.sh
+++ b/test/certs/generate.sh
@@ -64,7 +64,7 @@ webpki() (
@@ -64,8 +64,8 @@ webpki() (
# script.
cd ../..
mkdir ./test/certs/webpki
make build
- mkdir ./test/certs/webpki
- go run ./test/certs/webpki.go
+ # go run ./test/certs/webpki.go
+ mkdir ./labca/certs/webpki
+ # go run ./labca/certs/webpki.go
)

if ! [ -d ipki ]; then
@@ -72,6 +72,17 @@ if ! [ -d ipki ]; then
@@ -73,6 +73,17 @@ if ! [ -d ipki ]; then
ipki
fi

Expand Down
14 changes: 7 additions & 7 deletions patches/wfe2_wfe.patch
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
diff --git a/wfe2/wfe.go b/wfe2/wfe.go
index 6b753b53d..e49164461 100644
index a41472e54..42d2974c4 100644
--- a/wfe2/wfe.go
+++ b/wfe2/wfe.go
@@ -23,6 +23,7 @@ import (
"go.opentelemetry.io/otel/trace"
@@ -24,6 +24,7 @@ import (
"google.golang.org/protobuf/types/known/durationpb"
"google.golang.org/protobuf/types/known/emptypb"

+ "github.com/letsencrypt/boulder/cmd"
"github.com/letsencrypt/boulder/core"
corepb "github.com/letsencrypt/boulder/core/proto"
berrors "github.com/letsencrypt/boulder/errors"
@@ -177,6 +178,8 @@ type WebFrontEndImpl struct {
@@ -171,6 +172,8 @@ type WebFrontEndImpl struct {
// descriptions (perhaps including URLs) of those profiles. NewOrder
// Requests with a profile name not present in this map will be rejected.
certProfiles map[string]string
Expand All @@ -19,23 +19,23 @@ index 6b753b53d..e49164461 100644
}

// NewWebFrontEndImpl constructs a web service for Boulder
@@ -204,6 +207,7 @@ func NewWebFrontEndImpl(
@@ -198,6 +201,7 @@ func NewWebFrontEndImpl(
unpauseSigner unpause.JWTSigner,
unpauseJWTLifetime time.Duration,
unpauseURL string,
+ hostnamePolicyFile string,
) (WebFrontEndImpl, error) {
if len(issuerCertificates) == 0 {
return WebFrontEndImpl{}, errors.New("must provide at least one issuer certificate")
@@ -245,6 +249,7 @@ func NewWebFrontEndImpl(
@@ -239,6 +243,7 @@ func NewWebFrontEndImpl(
unpauseSigner: unpauseSigner,
unpauseJWTLifetime: unpauseJWTLifetime,
unpauseURL: unpauseURL,
+ hostnamePolicyFile: hostnamePolicyFile,
}

return wfe, nil
@@ -2374,8 +2379,25 @@ func (wfe *WebFrontEndImpl) NewOrder(
@@ -2302,8 +2307,25 @@ func (wfe *WebFrontEndImpl) NewOrder(
names[i] = ident.Value
}

Expand Down

0 comments on commit 3116c85

Please sign in to comment.