Nativestore

Using OS specific stores for storing CLI credentials for golang apps

2017-10-30

This post is to show a simple way of using Docker’s credential helper package to utilize the system’s native credential store as storage for your Golang-based CLI applications’ login credentials. This means Keychain for OSX, wincred for Windows, and pass for Linux. We use pass here since secretservice, although supported, doesn’t work out of the box in headless servers. Here’s a simple implementation of our Set, Get, and Del functions.

Go · Keychain · Nativestore · Pass · Wincred

1 minute