File tree Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change 18
18
from __future__ import annotations
19
19
20
20
import logging
21
- import re
22
21
import warnings
23
22
from typing import Sequence
24
23
38
37
SECRET_ID_PATTERN = r"^[a-zA-Z0-9-_]*$"
39
38
40
39
41
- def _parse_version (val ):
42
- match = re .search (r"(\d+)\.(\d+)\.(\d+)" , val )
43
- return tuple (int (x ) for x in match .groups ())
44
-
45
-
46
40
class CloudSecretManagerBackend (BaseSecretsBackend , LoggingMixin ):
47
41
"""
48
42
Retrieves Connection object from Google Cloud Secrets Manager.
Original file line number Diff line number Diff line change 26
26
27
27
import logging
28
28
import os
29
- import re
30
29
import warnings
31
30
from functools import cached_property
32
31
40
39
from airflow .utils .log .logging_mixin import LoggingMixin
41
40
42
41
43
- def _parse_version (val ):
44
- match = re .search (r"(\d+)\.(\d+)\.(\d+)" , val )
45
- return tuple (int (x ) for x in match .groups ())
46
-
47
-
48
42
class AzureKeyVaultBackend (BaseSecretsBackend , LoggingMixin ):
49
43
"""
50
44
Retrieves Airflow Connections or Variables from Azure Key Vault secrets.
You can’t perform that action at this time.
0 commit comments