2024-07-01 15:47:52 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
buildGoModule,
|
|
|
|
testers,
|
|
|
|
boulder,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "boulder";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "2024-07-16";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "letsencrypt";
|
|
|
|
repo = "boulder";
|
2022-07-14 12:49:19 +00:00
|
|
|
rev = "release-${version}";
|
2022-07-18 16:21:45 +00:00
|
|
|
leaveDotGit = true;
|
|
|
|
postFetch = ''
|
2024-07-01 15:47:52 +00:00
|
|
|
pushd $out
|
2022-09-09 14:08:57 +00:00
|
|
|
git rev-parse --short=8 HEAD 2>/dev/null >$out/COMMIT
|
2024-07-01 15:47:52 +00:00
|
|
|
find $out -name .git -print0 | xargs -0 rm -rf
|
|
|
|
popd
|
2022-07-18 16:21:45 +00:00
|
|
|
'';
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-mIUT9qVBPWrL0ySORwgEH6azaQmzMCl7ha/eYRtvAg4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
vendorHash = null;
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/boulder" ];
|
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/letsencrypt/boulder/core.BuildHost=nixbld@localhost"
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
2024-07-01 15:47:52 +00:00
|
|
|
ldflags+=" -X \"github.com/letsencrypt/boulder/core.BuildID=${version} +$(cat COMMIT)\""
|
2022-07-18 16:21:45 +00:00
|
|
|
ldflags+=" -X \"github.com/letsencrypt/boulder/core.BuildTime=$(date -u -d @0)\""
|
|
|
|
'';
|
2022-06-26 10:26:21 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
preCheck = ''
|
|
|
|
# Test all targets.
|
|
|
|
unset subPackages
|
|
|
|
'';
|
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
# Tests that fail or require additional services.
|
|
|
|
disabledTests = [
|
|
|
|
"TestARI"
|
|
|
|
"TestAccount"
|
|
|
|
"TestAddBlockedKeyUnknownSource"
|
|
|
|
"TestAddCertificate"
|
|
|
|
"TestAddCertificateDuplicate"
|
|
|
|
"TestAddCertificateRenewalBit"
|
|
|
|
"TestAddPreCertificateDuplicate"
|
|
|
|
"TestAddPrecertificate"
|
|
|
|
"TestAddPrecertificateIncomplete"
|
|
|
|
"TestAddPrecertificateKeyHash"
|
|
|
|
"TestAddPrecertificateNoOCSP"
|
|
|
|
"TestAddRegistration"
|
|
|
|
"TestAddSerial"
|
|
|
|
"TestAdministrativelyRevokeCertificate"
|
|
|
|
"TestAuthorization500"
|
|
|
|
"TestAuthorizationChallengeNamespace"
|
|
|
|
"TestAuthzFailedRateLimitingNewOrder"
|
|
|
|
"TestAutoIncrementSchema"
|
|
|
|
"TestBadNonce"
|
|
|
|
"TestBlockedKey"
|
|
|
|
"TestBlockedKeyRevokedBy"
|
|
|
|
"TestBuildID"
|
|
|
|
"TestCTPolicyMeasurements"
|
|
|
|
"TestCertIsRenewed"
|
|
|
|
"TestCertificateAbsent"
|
|
|
|
"TestCertificateKeyNotEqualAccountKey"
|
|
|
|
"TestCertificatesTableContainsDuplicateSerials"
|
|
|
|
"TestCertsPerNameRateLimitTable"
|
|
|
|
"TestChallenge"
|
|
|
|
"TestCheckCert"
|
|
|
|
"TestCheckCert"
|
|
|
|
"TestCheckCertReturnsDNSNames"
|
|
|
|
"TestCheckCertReturnsDNSNames"
|
|
|
|
"TestCheckExactCertificateLimit"
|
|
|
|
"TestCheckFQDNSetRateLimitOverride"
|
|
|
|
"TestCheckWildcardCert"
|
|
|
|
"TestCheckWildcardCert"
|
|
|
|
"TestClientTransportCredentials"
|
|
|
|
"TestContactAuditor"
|
|
|
|
"TestCountCertificatesByNamesParallel"
|
|
|
|
"TestCountCertificatesByNamesTimeRange"
|
|
|
|
"TestCountCertificatesRenewalBit"
|
|
|
|
"TestCountInvalidAuthorizations2"
|
|
|
|
"TestCountNewOrderWithReplaces"
|
|
|
|
"TestCountOrders"
|
|
|
|
"TestCountPendingAuthorizations2"
|
|
|
|
"TestCountRegistrationsByIP"
|
|
|
|
"TestCountRegistrationsByIPRange"
|
|
|
|
"TestDbSettings"
|
|
|
|
"TestDeactivateAccount"
|
|
|
|
"TestDeactivateAuthorization"
|
|
|
|
"TestDeactivateRegistration"
|
|
|
|
"TestDedupOnRegistration"
|
|
|
|
"TestDirectory"
|
|
|
|
"TestDontFindRevokedCert"
|
|
|
|
"TestEarlyOrderRateLimiting"
|
|
|
|
"TestEmptyAccount"
|
|
|
|
"TestEnforceJWSAuthType"
|
|
|
|
"TestExactPublicSuffixCertLimit"
|
|
|
|
"TestExtractJWK"
|
|
|
|
"TestFQDNSetTimestampsForWindow"
|
|
|
|
"TestFQDNSets"
|
|
|
|
"TestFQDNSetsExists"
|
|
|
|
"TestFailExit"
|
|
|
|
"TestFasterGetOrderForNames"
|
|
|
|
"TestFinalizeAuthorization2"
|
|
|
|
"TestFinalizeOrder"
|
|
|
|
"TestFinalizeOrderWildcard"
|
|
|
|
"TestFinalizeOrderWithMixedSANAndCN"
|
|
|
|
"TestFinalizeSCTError"
|
|
|
|
"TestFindCertsAtCapacity"
|
|
|
|
"TestFindExpiringCertificates"
|
|
|
|
"TestFindIDs"
|
|
|
|
"TestFindIDsForHostnames"
|
|
|
|
"TestFindIDsWithExampleHostnames"
|
|
|
|
"TestFindUnrevoked"
|
|
|
|
"TestFindUnrevokedNoRows"
|
|
|
|
"TestGETAPIAuthz"
|
|
|
|
"TestGETAPIChallenge"
|
|
|
|
"TestGenerateOCSP"
|
|
|
|
"TestGenerateOCSPLongExpiredSerial"
|
|
|
|
"TestGenerateOCSPUnknownSerial"
|
|
|
|
"TestGetAndProcessCerts"
|
|
|
|
"TestGetAndProcessCerts"
|
|
|
|
"TestGetAuthorization"
|
|
|
|
"TestGetAuthorization2NoRows"
|
|
|
|
"TestGetAuthorizations2"
|
|
|
|
"TestGetCertificate"
|
|
|
|
"TestGetCertificateHEADHasCorrectBodyLength"
|
|
|
|
"TestGetCertificateNew"
|
|
|
|
"TestGetCertificateServerError"
|
|
|
|
"TestGetCertsEmptyResults"
|
|
|
|
"TestGetCertsEmptyResults"
|
|
|
|
"TestGetChallenge"
|
|
|
|
"TestGetChallengeUpRel"
|
|
|
|
"TestGetMaxExpiration"
|
|
|
|
"TestGetOrder"
|
|
|
|
"TestGetOrderExpired"
|
|
|
|
"TestGetOrderForNames"
|
|
|
|
"TestGetPendingAuthorization2"
|
|
|
|
"TestGetRevokedCerts"
|
|
|
|
"TestGetSerialMetadata"
|
|
|
|
"TestGetSerialsByAccount"
|
|
|
|
"TestGetSerialsByKey"
|
|
|
|
"TestGetStartingID"
|
|
|
|
"TestGetValidAuthorizations2"
|
|
|
|
"TestGetValidOrderAuthorizations2"
|
|
|
|
"TestHTTPDialTimeout"
|
|
|
|
"TestHTTPMethods"
|
|
|
|
"TestHandleFunc"
|
|
|
|
"TestHeaderBoulderRequester"
|
|
|
|
"TestIgnoredLint"
|
|
|
|
"TestIgnoredLint"
|
|
|
|
"TestIncidentARI"
|
|
|
|
"TestIncidentSerialModel"
|
|
|
|
"TestIncidentsForSerial"
|
|
|
|
"TestIndex"
|
|
|
|
"TestIndexGet404"
|
|
|
|
"TestInvoke"
|
|
|
|
"TestInvokeRevokerHasNoExtantCerts"
|
|
|
|
"TestIssueCertificateAuditLog"
|
|
|
|
"TestIssueCertificateCAACheckLog"
|
|
|
|
"TestIssueCertificateInnerErrs"
|
|
|
|
"TestIssueCertificateInnerWithProfile"
|
|
|
|
"TestIssueCertificateOuter"
|
|
|
|
"TestKeyRollover"
|
|
|
|
"TestKeyRolloverMismatchedJWSURLs"
|
|
|
|
"TestLeaseOldestCRLShard"
|
|
|
|
"TestLeaseSpecificCRLShard"
|
|
|
|
"TestLifetimeOfACert"
|
|
|
|
"TestLimiter_CheckWithLimitOverrides"
|
|
|
|
"TestLimiter_DefaultLimits"
|
|
|
|
"TestLimiter_InitializationViaCheckAndSpend"
|
|
|
|
"TestLimiter_RefundAndReset"
|
|
|
|
"TestLoadFromDB"
|
|
|
|
"TestLookupJWK"
|
|
|
|
"TestMatchJWSURLs"
|
|
|
|
"TestNewAccount"
|
|
|
|
"TestNewAccountNoID"
|
|
|
|
"TestNewAccountWhenAccountHasBeenDeactivated"
|
|
|
|
"TestNewAccountWhenGetRegByKeyFails"
|
|
|
|
"TestNewAccountWhenGetRegByKeyNotFound"
|
|
|
|
"TestNewECDSAAccount"
|
|
|
|
"TestNewLookup"
|
|
|
|
"TestNewLookupWithAllFailingSRV"
|
|
|
|
"TestNewLookupWithOneFailingSRV"
|
|
|
|
"TestNewOrder"
|
|
|
|
"TestNewOrderAuthzReuseSafety"
|
|
|
|
"TestNewOrderCheckFailedAuthorizationsFirst"
|
|
|
|
"TestNewOrderExpiry"
|
|
|
|
"TestNewOrderFailedAuthzRateLimitingExempt"
|
|
|
|
"TestNewOrderMaxNames"
|
|
|
|
"TestNewOrderRateLimiting"
|
|
|
|
"TestNewOrderRateLimitingExempt"
|
|
|
|
"TestNewOrderReplacesSerialCarriesThroughToSA"
|
|
|
|
"TestNewOrderReuse"
|
|
|
|
"TestNewOrderReuseInvalidAuthz"
|
|
|
|
"TestNewOrderWildcard"
|
|
|
|
"TestNewRegistration"
|
|
|
|
"TestNewRegistrationBadKey"
|
|
|
|
"TestNewRegistrationContactsPresent"
|
|
|
|
"TestNewRegistrationNoFieldOverwrite"
|
|
|
|
"TestNewRegistrationRateLimit"
|
|
|
|
"TestNewRegistrationSAFailure"
|
|
|
|
"TestNoContactCertIsNotRenewed"
|
|
|
|
"TestNoContactCertIsRenewed"
|
|
|
|
"TestNoSuchRegistrationErrors"
|
|
|
|
"TestNonceEndpoint"
|
|
|
|
"TestOldTLSInbound"
|
|
|
|
"TestOrderMatchesReplacement"
|
|
|
|
"TestOrderToOrderJSONV2Authorizations"
|
|
|
|
"TestOrderWithOrderModelv1"
|
|
|
|
"TestPOST404"
|
|
|
|
"TestPanicStackTrace"
|
|
|
|
"TestParseJWSRequest"
|
|
|
|
"TestPendingAuthorizationsUnlimited"
|
|
|
|
"TestPerformValidationAlreadyValid"
|
|
|
|
"TestPerformValidationBadChallengeType"
|
|
|
|
"TestPerformValidationExpired"
|
|
|
|
"TestPerformValidationSuccess"
|
|
|
|
"TestPerformValidationVAError"
|
|
|
|
"TestPrepAuthzForDisplay"
|
|
|
|
"TestPreresolvedDialerTimeout"
|
|
|
|
"TestProcessCerts"
|
|
|
|
"TestProcessCertsConnectError"
|
|
|
|
"TestProcessCertsParallel"
|
|
|
|
"TestRecheckCAADates"
|
|
|
|
"TestRecheckCAAEmpty"
|
|
|
|
"TestRecheckCAAFail"
|
|
|
|
"TestRecheckCAAInternalServerError"
|
|
|
|
"TestRecheckCAASuccess"
|
|
|
|
"TestRedisSource_BatchSetAndGet"
|
|
|
|
"TestRedisSource_Ping"
|
|
|
|
"TestRegistrationsPerIPOverrideUsage"
|
|
|
|
"TestRehydrateHostPort"
|
|
|
|
"TestRelativeDirectory"
|
|
|
|
"TestReplicationLagRetries"
|
|
|
|
"TestResolveContacts"
|
|
|
|
"TestRevokeCertByApplicant_Controller"
|
|
|
|
"TestRevokeCertByApplicant_Subscriber"
|
|
|
|
"TestRevokeCertByKey"
|
|
|
|
"TestRevokeCertificate"
|
|
|
|
"TestRevokeCerts"
|
|
|
|
"TestRollback"
|
|
|
|
"TestSPKIHashFromPrivateKey"
|
|
|
|
"TestSPKIHashesFromFile"
|
|
|
|
"TestSelectRegistration"
|
|
|
|
"TestSelectUncheckedRows"
|
|
|
|
"TestSendEarliestCertInfo"
|
|
|
|
"TestSerialsForIncident"
|
|
|
|
"TestSerialsFromFile"
|
|
|
|
"TestSerialsFromPrivateKey"
|
|
|
|
"TestSetAndGet"
|
|
|
|
"TestSetOrderProcessing"
|
|
|
|
"TestSingleton"
|
|
|
|
"TestStart"
|
|
|
|
"TestStatusForOrder"
|
|
|
|
"TestStoreResponse"
|
|
|
|
"TestStrictness"
|
|
|
|
"TestTLSALPN01DialTimeout"
|
|
|
|
"TestTLSConfigLoad"
|
|
|
|
"TestTimeouts"
|
|
|
|
"TestUpdateCRLShard"
|
|
|
|
"TestUpdateChallengeFinalizedAuthz"
|
|
|
|
"TestUpdateChallengeRAError"
|
|
|
|
"TestUpdateChallengesDeleteUnused"
|
|
|
|
"TestUpdateMissingAuthorization"
|
|
|
|
"TestUpdateNowWithAllFailingSRV"
|
|
|
|
"TestUpdateNowWithOneFailingSRV"
|
|
|
|
"TestUpdateRegistrationSame"
|
|
|
|
"TestUpdateRevokedCertificate"
|
|
|
|
"TestValidJWSForKey"
|
|
|
|
"TestValidNonce"
|
|
|
|
"TestValidNonce_NoMatchingBackendFound"
|
|
|
|
"TestValidPOSTAsGETForAccount"
|
|
|
|
"TestValidPOSTForAccount"
|
|
|
|
"TestValidPOSTForAccountSwappedKey"
|
|
|
|
"TestValidPOSTRequest"
|
|
|
|
"TestValidPOSTURL"
|
|
|
|
"TestValidSelfAuthenticatedPOST"
|
|
|
|
"TestValidSelfAuthenticatedPOSTGoodKeyErrors"
|
|
|
|
"TestValidateContacts"
|
|
|
|
"TestWrappedMap"
|
|
|
|
"Test_sendError"
|
|
|
|
];
|
|
|
|
|
|
|
|
checkFlags = [
|
|
|
|
"-skip ${lib.strings.concatStringsSep "|" disabledTests}"
|
|
|
|
];
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
postInstall = ''
|
|
|
|
for i in $($out/bin/boulder --list); do
|
|
|
|
ln -s $out/bin/boulder $out/bin/$i
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = boulder;
|
|
|
|
inherit version;
|
2022-07-18 16:21:45 +00:00
|
|
|
};
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/letsencrypt/boulder";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "ACME-based certificate authority, written in Go";
|
2022-06-26 10:26:21 +00:00
|
|
|
longDescription = ''
|
|
|
|
This is an implementation of an ACME-based CA. The ACME protocol allows
|
|
|
|
the CA to automatically verify that an applicant for a certificate
|
|
|
|
actually controls an identifier, and allows domain holders to issue and
|
|
|
|
revoke certificates for their domains. Boulder is the software that runs
|
|
|
|
Let's Encrypt.
|
|
|
|
'';
|
|
|
|
license = licenses.mpl20;
|
2024-07-01 15:47:52 +00:00
|
|
|
mainProgram = "boulder";
|
2022-06-26 10:26:21 +00:00
|
|
|
maintainers = with maintainers; [ azahi ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|