feat(corp/ops): provide captcha verification key to backend
Change-Id: I960aa604488a27945ae6e69e6f3212a8dfd356cb Reviewed-on: https://cl.tvl.fyi/c/depot/+/8740 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
parent
e3778ff6bc
commit
9e61373096
1 changed files with 12 additions and 0 deletions
|
@ -110,6 +110,13 @@ resource "yandex_serverless_container" "rih_backend" {
|
|||
key = "secret_key"
|
||||
environment_variable = "AWS_SECRET_ACCESS_KEY"
|
||||
}
|
||||
|
||||
secrets {
|
||||
id = data.yandex_lockbox_secret.rih_captcha_prod_key.id
|
||||
version_id = data.yandex_lockbox_secret.rih_captcha_prod_key.current_version[0].id
|
||||
key = "key"
|
||||
environment_variable = "YANDEX_SMARTCAPTCHA_KEY"
|
||||
}
|
||||
}
|
||||
|
||||
resource "yandex_api_gateway" "rih_gateway" {
|
||||
|
@ -255,6 +262,11 @@ resource "yandex_lockbox_secret_version" "rih_backend_storage_secret" {
|
|||
}
|
||||
}
|
||||
|
||||
# TODO(tazjin): automate if tf-yandex gains support for captcha resources
|
||||
data "yandex_lockbox_secret" "rih_captcha_prod_key" {
|
||||
secret_id = "e6qloc8913tnracefb8f"
|
||||
}
|
||||
|
||||
# TODO(tazjin): needs provider update
|
||||
#
|
||||
# resource "yandex_lockbox_secret_iam_binding" "viewer" {
|
||||
|
|
Loading…
Reference in a new issue