Skip to content

Brave-Pi/boisly_gcp_secrets

Repository files navigation

boisly_gcp_secrets

Simple abstraction of Google Cloud Secret Manager.

abstract Secret(String) from String{
	@:to public function reveal():Promise<tink.Chunk>;
}

This then allows you to do this:

var mySecret:boisly.Secret = 'projects/<projectId>/secrets/<secretId>/versions/<versionId>';
mySecret.reveal().next(secret -> trace('Secret is: $secret'));

Or with tink_await:

var mySecret:boisly.Secret = 'projects/<projectId>/secrets/<secretId>/versions/<versionId>';
trace('Secret is: '${@:await mySecret.reveal()});

Supports tink_json parsing.

About

An abstraction over Cloud secrets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages