Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 587 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 587 Bytes

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.