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.