Skip to content

Commit 3d36cb3

Browse files
Hotfix v0.2448.1 (#1472)
fix: BI-6807 mark auth_header as a secret field (#1471) Co-authored-by: KonstantAnxiety <konstasa@yandex-team.ru>
1 parent 7aff6b0 commit 3d36cb3

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

lib/dl_connector_promql/dl_connector_promql/core/us_connection.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
ConnectionBase,
1414
)
1515
from dl_core.utils import secrepr
16+
from dl_utils.utils import DataKey
1617

1718
from dl_connector_promql.core.constants import (
1819
SOURCE_TYPE_PROMQL,
@@ -34,6 +35,13 @@ class DataModel(ClassicConnectionSQL.DataModel):
3435
auth_type: PromQLAuthType = attr.ib()
3536
auth_header: str | None = attr.ib(repr=secrepr, default=None)
3637

38+
@classmethod
39+
def get_secret_keys(cls) -> set[DataKey]:
40+
return {
41+
*super().get_secret_keys(),
42+
DataKey(parts=("auth_header",)),
43+
}
44+
3745
def get_conn_dto(self) -> PromQLConnDTO:
3846
return PromQLConnDTO(
3947
conn_id=self.uuid,

0 commit comments

Comments
 (0)