Giter Club home page Giter Club logo

dockcmd's People

Contributors

boxboatjohn avatar caleblloyd avatar jordanjennings avatar matthewdevenny avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dockcmd's Issues

Add gpg signing

Sign dockcmd releases

On macOS Catalina, the binary cannot be executed until you Right Click Open from Finder.

We should update the build so that the binary is signed and can be trusted

Add helm cli like value passing

For commands that process go templates (get-secrets commands). Add the ability to pass in values like the helm cli does with --set and --values. Values yaml files will be processed first and then --set will be merged down. Current --set functionality will remain unchanged but this will expand on that ability by mirroring the helm cli parameter passing. This will further enhance #21 use cases.

Add gotpl command

Add dockcmd gotpl to process text files containing go templates. Behavior is identical to get-secrets based commands except that it will not require access to a secrets backend.

Support AWS IAM Roles for Service Accounts

dockcmd currently has a hard-coded list of credentials providers which doesn't support the WebIdentityRoleProvider needed for IRSA to work as expected.

https://github.com/boxboat/dockcmd/blob/master/cmd/aws/aws.go#L126

var creds = sess.Config.Credentials
	if o.useChainCredentials {
		creds = credentials.NewChainCredentials(
			[]credentials.Provider{
				&credentials.EnvProvider{},
				&credentials.SharedCredentialsProvider{
					Profile: o.profile,
				},
				&ec2rolecreds.EC2RoleProvider{
					Client: ec2metadata.New(sess),
				},
				&SessionProvider{
					Session: sess,
				},
			})
	} else {
		if o.accessKeyID == "" || o.secretAccessKey == "" {
			return nil, errors.New("no aws credentials provided")
		}
		creds = credentials.NewStaticCredentials(o.accessKeyID, o.secretAccessKey, "")
	}

I think the entire true section of the block that re-configures the chain of credentials providers can be removed so that it uses the SDK default chain, which already supports IRSA. I'm assuming there was a reason that the custom chain of credentials providers was originally added, but it's not clear what that reason is.

@boxboatmatt Can the custom credentials chain be removed when useChainCredentials is true?

Vault - support KV Secrets Engine V2

dockcmd vault get-secrets fails with Could not convert vault response [%s][%s] to string (code link) if the secret was created with KV V2 (versioned secret).

V2 secrets need to read values from data.data.key instead of data.key. Either allowing the user to specify the version type in the template, or even better, automatically attempting to parse a level deeper if it fails at the data.key check would allow users to read both v1 and v2 secrets

Add support for awsText

AWS Secrets Manager supports storing a text secret that is not json - add a new function awsText and alias awsJson=aws method

Using config file

Change print message "Using config file: $HOME/.dockcmd.yaml" to debug only

Add support for arm64

A dockcmd release should be published for the arm64 architecture

Creating multi-arch docker images and publishing to Docker Hub would allow downstream docker multi-arch images to copy the correct binary in with:

FROM --platform=${TARGETPLATFORM} boxboat/dockcmd:latest as dockcmd
COPY --from dockcmd /bin/dockcmd /usr/local/bin/dockcmd

Add version query for secrets backends

Allow the version to be specified for each of the secrets backends (except for vault v1 kv stores - due to no version support). If the secret name is suffixed with ?version=<version> retrieve that particular version from the secrets backend.

Cache secrets

Update the secrets cache to store the whole secret not just the referenced key. For example:

foo:
{
"bravo": "secret-value",
"charlie": "secret-value"
}

{{ (aws "foo" "bravo") }} currently would only cache foo[bravo], should cache contents of foo instead

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.