Secret handling for Yandex, TreasureData, & Postgres/CockroachDB SSL (#5312)

This commit is contained in:
Patrick Yang 2021-01-05 11:47:54 -08:00 committed by GitHub
parent fbe57de53c
commit 52ae7bedb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -169,7 +169,7 @@ class PostgreSQL(BaseSQLQueryRunner):
},
"order": ["host", "port", "user", "password"],
"required": ["dbname"],
"secret": ["password"],
"secret": ["password", "sslrootcertFile", "sslcertFile", "sslkeyFile"],
"extra_options": [
"sslmode",
"sslrootcertFile",

View File

@ -53,6 +53,7 @@ class TreasureData(BaseQueryRunner):
"default": False,
},
},
"secret": ["apikey"],
"required": ["apikey", "db"],
}

View File

@ -89,6 +89,7 @@ class YandexMetrica(BaseSQLQueryRunner):
return {
"type": "object",
"properties": {"token": {"type": "string", "title": "OAuth Token"}},
"secret": ["token"],
"required": ["token"],
}