All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Modify configuration loading to skip options that check home dirs if there is an error retrieving the home dir
- Add support for passing fully qualified variable id to
RetrieveSecret
API method in v4 mode - Change signature of
conjurapi.LoadConfig
so it returns anerror
in addition to theconjurapi.Config
- Fix marshaling of
conjurapi.Config
into YAML.
- Add
Resource
, to fetch a resource by id. - Add
Resources
, to show all resources, optionally filtered by aResourceFilter
. - Use a separate logrus logger for the API. Control the destination for messages with the
environment variable
CONJURAPI_LOG
. - Add support for
.conjurrc
and.netrc
in Windows user directories. - Add support for
conjur.conf
in Windows system directory.
- Update the tags on
PolicyResponse
so they match the JSON returned by the server.
-
Use github.com/sirupsen/logrus for logging.
-
When the log level for logrus is set to DebugLevel, show debug information, including:
-
what configuration information is contained in each of the locations (e.g. the environment, config files, etc), as well as the final configuration
-
the HTTP request sent to, and the responses received from, the Conjur server
-
- Make
CONJUR_VERSION
an alias forCONJUR_MAJOR_VERSION
to match other client libraries.
- Adds new API methods
RotateAPIKey
andCheckPermission
. - Provides API methods that return secret data as an
io.ReadCloser
rather than of[]byte
. This way, the API client gets the only copy of the secret data and can handle it however she sees fit. - Loading a policy requires
PolicyMode
argument. - Loading a policy returns
PolicyResponse
.
- Adds support for structured error responses from the Conjur v5 server, using the struct
conjurapi.ConjurError
. This is a backwards incompatible change. - All API methods accept fully qualified object ids in v5 mode. This is a backwards compatible bug fix.
- API methods which do not work in v4 mode return an appropriate error message. This is a backwards compatible bug fix.
- Initial version