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

Releases: secrethub/secrethub-go

v0.33.0

20 Aug 08:45
v0.33.0
b0900a4
Compare
Choose a tag to compare

Added

v0.32.1

08 Feb 14:45
v0.32.1
5cd68e5
Compare
Choose a tag to compare

Fixed

  • Fixes error message when no passphrase is provided for a credential that requires a passphrase to be unlocked (#234)

v0.32.0

04 Feb 14:49
v0.32.0
50206dd
Compare
Choose a tag to compare

Added

  • You can now pass a credentials passphrase with SECRETHUB_CREDENTIAL_PASSPHRASE environment variable. (#223, #225)
  • Add WithDefaultPassphraseReader client option which can be used to configure passphrase loading for auto-detected credentials (for example credentials detected from SECRETHUB_CREDENTIAL environment variable or ~/.secrethub/credential file). If this option is not passed, SECRETHUB_CREDENTIAL_PASSPHRASE environment variable is used for passphrase-encrypted auto-detected credentials.
    For credentials passed in the application code, keep using secrethub.WithCredentials(credentials.UseKey(credential).Passphrase(passphraseReader)). (#225)
  • You can now configure the remote API URL with SECRETHUB_API_REMOTE environment variable. (#227)
  • Add more information to error messages shown when credential cannot be loaded. (#223)
  • Allow unexpected errors to be unwrapped, to reveal the original error message. (#226)
  • Automatically retry creating access rules, directories, secrets and secret keys if creation fails due to a simultaneous conflicting operation. (#229)

Removed

Internal

  • Use new API format for service account creation. (#191)

v0.31.0

07 Sep 14:52
v0.31.0
f9c0186
Compare
Choose a tag to compare

Added

  • Allow account key creation with setup code (#216, #217, #218)
  • Export function to get authenticated account (#214)

Changed

  • Improve mocks for secrets, IdP links and credentials (#207, #215)

v0.30.0

08 Jul 10:05
v0.30.0
4b34720
Compare
Choose a tag to compare

Added

  • GCP Identity Provider is out of beta and generally available. (#198)
  • Functions to create and manage links to GCP projects. These links are needed to create a service account that makes use of the SecretHub Identity Provider. The GCP project of every GCP Service Account that is used for the Identity Provider first has to be linked to a SecretHub namespace. (#195)
  • Errors for creating a service account with an already taken AWS Role now resides in this package. (#200)

Changed

  • The error message for providing an incorrect value when a namespace is expected now clearly states that a namespace can also be an organization. (#196)

v0.29.1

15 Jun 10:56
v0.29.1
3410150
Compare
Choose a tag to compare

Fixed

  • Fix a problem where if the client was used with the AWS Identity Provider and the time between two calls to the API was more than 5 minutes and 30 seconds, the client's session would not be correctly refreshed. This resulted in an api.session_not_found error.

v0.29.0

08 Jun 14:25
v0.29.0
abed833
Compare
Choose a tag to compare

Added

  • [private beta] Adds GCP Identity Provider for keyless authentication and decryption on GCP. Introduces credentials.CreateGCPServiceAccount() and credentials.UseGCPServiceAccount() for creating and using credentials for a GCP Service Account.

Changed

  • Error message for malformed credential files is now more descriptive (#182)
  • Error message for when no credential is supplied is more explanatory (#188)

Please note that the GCP Identity Provider is released as a private beta. This means that the API will not accept the creation of a service account using this Identity Provider if you're not admitted to the private beta. Furthermore, the signature of this functionality might change in the future.

If you want to test this functionality, please reach out to us at support@secrethub.io.

v0.28.0

06 May 11:04
v0.28.0
70beffe
Compare
Choose a tag to compare

Changed

  • Add AWS credential not found error (#177)
  • Add secret path to all secret not found errors (#183)
  • Make setting app info more extensible (#184)

v0.27.0

26 Mar 10:50
v0.27.0
18305d8
Compare
Choose a tag to compare

Added

  • Add iterator functions to iterate over lists of resources (#163)
  • Add human-readable charset, which is a set of alphanumeric characters that are not similar to each other. (#174)

Changed

  • Upgraded minimum Go version to 1.13 (#178)
  • Include the path of the secret/repo in a secret/repo not found error (#172, #179)
  • Change fake client to use functions instead of structs (#176)

Deprecated

  • Deprecated list functions, use the new iterator functions instead (#163)

v0.26.0