Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
Add godoc with note that setup codes cannot be used to decrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
Marton6 committed Aug 14, 2020
1 parent 7aac428 commit 88f5c0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/secrethub/credentials/setup_code.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ type SetupCode struct {
code string
}

// Provide implements the Provider interface for the setup code.
// Note that no decrypter is ever returned as setup codes cannot be used to decrypt secrets.
func (s *SetupCode) Provide(client *httpclient.Client) (auth.Authenticator, Decrypter, error) {
return s, nil, nil
}
Expand Down

0 comments on commit 88f5c0d

Please sign in to comment.