Mariano Cano 7 лет назад
Родитель
Сommit
cf07c8f4c0
3 измененных файлов с 5 добавлено и 5 удалено
  1. 1 1
      authority/provisioner/aws.go
  2. 3 3
      authority/provisioner/azure.go
  3. 1 1
      authority/provisioner/gcp.go

+ 1 - 1
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 {

+ 3 - 3
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 {

+ 1 - 1
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.