A distributed daemon based on etcdv3 for IAM
On MacOS you can install or upgrade to the latest released version with Homebrew:
$ brew install dep
$ brew upgrade dep
On other platforms you can use the install.sh
script:
$ curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
Then clone the repository:
$ git clone <repository>
Run dep
and enjoy:
$ dep ensure
Prepare the envs :
export CRED_PORT=<port> (Default: 9011)
export CRED_META_URL=<meta_url>(All url of etcd node, separator is english comma, ",")
export CRED_STS_URL=<sts_url>
export CRED_SYNC_TTL=<sync_ttl> (Default: 3600)
export CRED_LOG_LEVEL=<debug/info/warning/error> (Default: error)
Run cred
$ credsvc
Run cred with mock mode, neither http server nor sts involved
$ credsvc -mock
- Cluster with self-registration
- Watcher mutex based on distributed lock
- Http API for operation and maintenance
- Mock mode support skipping the interactive with sts for easily testing