From cf07c8f4c0519dc85a3f3bfa03e0e683f6a9eebc Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Thu, 9 May 2019 18:56:24 -0700 Subject: [PATCH] Fix typos. --- authority/provisioner/aws.go | 2 +- authority/provisioner/azure.go | 6 +++--- authority/provisioner/gcp.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/authority/provisioner/aws.go b/authority/provisioner/aws.go index 4a017069..a6984864 100644 --- a/authority/provisioner/aws.go +++ b/authority/provisioner/aws.go @@ -258,7 +258,7 @@ func (p *AWS) AuthorizeSign(token string) ([]SignOption, error) { doc := payload.document // Enforce default DNS and IP if configured. - // By default we we'll accept the SANs in the CSR. + // By default we'll accept the SANs in the CSR. // There's no way to trust them other than TOFU. var so []SignOption if p.DisableCustomSANs { diff --git a/authority/provisioner/azure.go b/authority/provisioner/azure.go index 9080bcc2..725d0b19 100644 --- a/authority/provisioner/azure.go +++ b/authority/provisioner/azure.go @@ -135,8 +135,8 @@ func (p *Azure) GetEncryptedKey() (kid string, key string, ok bool) { return "", "", false } -// GetIdentityToken retrieves the identity document and it's signature and -// generates a token with them. +// GetIdentityToken retrieves from the metadata service the identity token and +// returns it. func (p *Azure) GetIdentityToken() (string, error) { // Initialize the config if this method is used from the cli. p.assertConfig() @@ -261,7 +261,7 @@ func (p *Azure) AuthorizeSign(token string) ([]SignOption, error) { } // Enforce default DNS if configured. - // By default we we'll accept the SANs in the CSR. + // By default we'll accept the SANs in the CSR. // There's no way to trust them other than TOFU. var so []SignOption if p.DisableCustomSANs { diff --git a/authority/provisioner/gcp.go b/authority/provisioner/gcp.go index 1d67c567..bc221cbd 100644 --- a/authority/provisioner/gcp.go +++ b/authority/provisioner/gcp.go @@ -16,7 +16,7 @@ import ( "github.com/smallstep/cli/jose" ) -// gcpCertsURL is the url that servers Google OAuth2 public keys. +// gcpCertsURL is the url that serves Google OAuth2 public keys. const gcpCertsURL = "https://www.googleapis.com/oauth2/v3/certs" // gcpIdentityURL is the base url for the identity document in GCP.