boulder: github.com/letsencrypt/boulder/features Index | Files

package features

import "github.com/letsencrypt/boulder/features"

Index

Package Files

featureflag_string.go features.go

func Enabled Uses

func Enabled(n FeatureFlag) bool

Enabled returns true if the feature is enabled or false if it isn't, it will panic if passed a feature that it doesn't know.

func Reset Uses

func Reset()

Reset resets the features to their initial state

func Set Uses

func Set(featureSet map[string]bool) error

Set accepts a list of features and whether they should be enabled or disabled, it will return a error if passed a feature name that it doesn't know

type FeatureFlag Uses

type FeatureFlag int
const (

    //   Deprecated features, these can be removed once stripped from production configs
    WriteIssuedNamesPrecert FeatureFlag
    HeadNonceStatusOK
    RemoveWFE2AccountID
    CheckRenewalFirst
    ParallelCheckFailedValidation
    DeleteUnusedChallenges

    //   Currently in-use features
    // Check CAA and respect validationmethods parameter.
    CAAValidationMethods
    // Check CAA and respect accounturi parameter.
    CAAAccountURI
    // EnforceMultiVA causes the VA to block on remote VA PerformValidation
    // requests in order to make a valid/invalid decision with the results.
    EnforceMultiVA
    // MultiVAFullResults will cause the main VA to wait for all of the remote VA
    // results, not just the threshold required to make a decision.
    MultiVAFullResults
    // MandatoryPOSTAsGET forbids legacy unauthenticated GET requests for ACME
    // resources.
    MandatoryPOSTAsGET
    // Allow creation of new registrations in ACMEv1.
    AllowV1Registration
    // V1DisableNewValidations disables validations for new domain names in the V1
    // API.
    V1DisableNewValidations
    // PrecertificateRevocation allows revocation of precertificates with the
    // ACMEv2 interface.
    PrecertificateRevocation
    // StripDefaultSchemePort enables stripping of default scheme ports from HTTP
    // request Host headers
    StripDefaultSchemePort
    // StoreIssuerInfo enables storage of information identifying the issuer of
    // a certificate in the certificateStatus table.
    StoreIssuerInfo
    // StoreKeyHashes enables storage of SPKI hashes associated with certificates.
    StoreKeyHashes
    // BlockedKeyTable enables storage, and checking, of the blockedKeys table in addition
    // to the blocked key list
    BlockedKeyTable
    // StoreRevokerInfo enables storage of the revoker and a bool indicating if the row
    // was checked for extant unrevoked certificates in the blockedKeys table. It should
    // only be enabled if BlockedKeyTable is also enabled.
    StoreRevokerInfo
)

func (FeatureFlag) String Uses

func (i FeatureFlag) String() string

Package features imports 3 packages (graph) and is imported by 440 packages. Updated 2020-05-10. Refresh now. Tools for package owners.