Sign in
third-party-mirror
/
terraform-provider-google-beta
/
7018e2f3f116fdacfd66c03551fbf0c3db62170a
/
.
/
v5.18.0
/
google-beta
/
services
/
cloudfunctions
/
test-fixtures
/
secret_environment_variables.js
blob: 60c4fe52fe6ea795d06afc0f12fc24288e9234b8 [
file
] [
log
] [
blame
]
/**
* HTTP Cloud Function for testing environment variable Secrets.
*/
exports
.
echoSecret
=
(
req
,
res
)
=>
{
let message
=
req
.
query
.
message
||
req
.
body
.
message
||
"Secret: "
+
process
.
env
.
MY_SECRET
;
res
.
status
(
200
).
send
(
message
);
};