boisly_gcp_secrets

An abstraction over Cloud secrets.


Keywords
boisly, cloud, google, hxnodejs, node, secrets
License
MIT
Install
haxelib install boisly_gcp_secrets 1.0.2

Documentation

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.