Просмотр исходного кода

Remove the Wire `oidc` and `dpop` from attestation formats

Herman Slatman 2 лет назад
Родитель
Сommit
bf8c17e3ec
1 измененных файлов с 2 добавлено и 5 удалено
  1. 2 5
      authority/provisioner/acme.go

+ 2 - 5
authority/provisioner/acme.go

@@ -64,9 +64,6 @@ const (
 
 	// TPM is the format used to enable device-attest-01 with TPMs.
 	TPM ACMEAttestationFormat = "tpm"
-
-	WIREOIDC ACMEAttestationFormat = "oidc"
-	WIREDPOP ACMEAttestationFormat = "dpop"
 )
 
 // String returns a normalized version of the attestation format.
@@ -77,7 +74,7 @@ func (f ACMEAttestationFormat) String() string {
 // Validate returns an error if the attestation format is not a valid one.
 func (f ACMEAttestationFormat) Validate() error {
 	switch ACMEAttestationFormat(f.String()) {
-	case APPLE, STEP, TPM, WIREOIDC, WIREDPOP:
+	case APPLE, STEP, TPM:
 		return nil
 	default:
 		return fmt.Errorf("acme attestation format %q is not supported", f)
@@ -325,7 +322,7 @@ func (p *ACME) IsChallengeEnabled(_ context.Context, challenge ACMEChallenge) bo
 // AttestationFormat provisioner property should have at least one element.
 func (p *ACME) IsAttestationFormatEnabled(_ context.Context, format ACMEAttestationFormat) bool {
 	enabledFormats := []ACMEAttestationFormat{
-		APPLE, STEP, TPM, WIREOIDC, WIREDPOP,
+		APPLE, STEP, TPM,
 	}
 	if len(p.AttestationFormats) > 0 {
 		enabledFormats = p.AttestationFormats