qontract-reconcile 0.10.2.dev287__py3-none-any.whl → 0.10.2.dev288__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {qontract_reconcile-0.10.2.dev287.dist-info → qontract_reconcile-0.10.2.dev288.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.2.dev287.dist-info → qontract_reconcile-0.10.2.dev288.dist-info}/RECORD +4 -5
- reconcile/utils/vaultsecretref.py +0 -34
- {qontract_reconcile-0.10.2.dev287.dist-info → qontract_reconcile-0.10.2.dev288.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.2.dev287.dist-info → qontract_reconcile-0.10.2.dev288.dist-info}/entry_points.txt +0 -0
{qontract_reconcile-0.10.2.dev287.dist-info → qontract_reconcile-0.10.2.dev288.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: qontract-reconcile
|
3
|
-
Version: 0.10.2.
|
3
|
+
Version: 0.10.2.dev288
|
4
4
|
Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
|
5
5
|
Project-URL: homepage, https://github.com/app-sre/qontract-reconcile
|
6
6
|
Project-URL: repository, https://github.com/app-sre/qontract-reconcile
|
{qontract_reconcile-0.10.2.dev287.dist-info → qontract_reconcile-0.10.2.dev288.dist-info}/RECORD
RENAMED
@@ -662,7 +662,6 @@ reconcile/utils/terrascript_aws_client.py,sha256=VtJ7jpvAbEi2gS_2ZTuEhBooVjqwmLi
|
|
662
662
|
reconcile/utils/three_way_diff_strategy.py,sha256=oQcHXd9LVhirJfoaOBoHUYuZVGfyL2voKr6KVI34zZE,4833
|
663
663
|
reconcile/utils/throughput.py,sha256=iP4UWAe2LVhDo69mPPmgo9nQ7RxHD6_GS8MZe-aSiuM,344
|
664
664
|
reconcile/utils/vault.py,sha256=6V15LByFghp-U3k0N4lum6V7qt2EAlRfcAxjy5e-FAU,15146
|
665
|
-
reconcile/utils/vaultsecretref.py,sha256=5V_GTR23s-EZUKSwaxt115l9RQiv41iiZ93HAeFtuDI,913
|
666
665
|
reconcile/utils/vcs.py,sha256=2bDk8oYnCP7QMITwOG63LUTzDgqQPEao6trF8gQKtmI,10294
|
667
666
|
reconcile/utils/acs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
668
667
|
reconcile/utils/acs/base.py,sha256=4UsDrCpAOuddL3PKNuIQYoJP1BtZQNNB8_KEX0lXneg,2532
|
@@ -797,7 +796,7 @@ tools/saas_promotion_state/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
|
|
797
796
|
tools/saas_promotion_state/saas_promotion_state.py,sha256=uQv2QJAmUXP1g2GPIH30WTlvL9soY6m9lefpZEVDM5w,3965
|
798
797
|
tools/sre_checkpoints/__init__.py,sha256=CDaDaywJnmRCLyl_NCcvxi-Zc0hTi_3OdwKiFOyS39I,145
|
799
798
|
tools/sre_checkpoints/util.py,sha256=zEDbGr18ZeHNQwW8pUsr2JRjuXIPz--WAGJxZo9sv_Y,894
|
800
|
-
qontract_reconcile-0.10.2.
|
801
|
-
qontract_reconcile-0.10.2.
|
802
|
-
qontract_reconcile-0.10.2.
|
803
|
-
qontract_reconcile-0.10.2.
|
799
|
+
qontract_reconcile-0.10.2.dev288.dist-info/METADATA,sha256=8IMN433WCAjuTZtj2FO6F1k9M3EyrAvDxfL13NL3AGY,24916
|
800
|
+
qontract_reconcile-0.10.2.dev288.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
801
|
+
qontract_reconcile-0.10.2.dev288.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
|
802
|
+
qontract_reconcile-0.10.2.dev288.dist-info/RECORD,,
|
@@ -1,34 +0,0 @@
|
|
1
|
-
from dataclasses import dataclass
|
2
|
-
from typing import (
|
3
|
-
cast,
|
4
|
-
)
|
5
|
-
|
6
|
-
from reconcile.utils.vault import (
|
7
|
-
VaultClient,
|
8
|
-
_VaultClient,
|
9
|
-
)
|
10
|
-
|
11
|
-
|
12
|
-
@dataclass
|
13
|
-
class VaultSecretRef:
|
14
|
-
_ALL_FIELDS = "all"
|
15
|
-
|
16
|
-
path: str
|
17
|
-
field: str
|
18
|
-
format: str | None = None
|
19
|
-
version: int | None = None
|
20
|
-
|
21
|
-
def get(self, field=None, default=None):
|
22
|
-
secret_content = self._resolve_secret()
|
23
|
-
if field:
|
24
|
-
return secret_content.get(field, default)
|
25
|
-
if self.field == VaultSecretRef._ALL_FIELDS:
|
26
|
-
return secret_content
|
27
|
-
return secret_content.get(self.field, default)
|
28
|
-
|
29
|
-
def _resolve_secret(self) -> dict[str, str]:
|
30
|
-
vault_client = cast("_VaultClient", VaultClient())
|
31
|
-
if self.field == VaultSecretRef._ALL_FIELDS:
|
32
|
-
return vault_client.read_all(self.__dict__)
|
33
|
-
field_value = vault_client.read(self.__dict__)
|
34
|
-
return {self.field: field_value}
|
{qontract_reconcile-0.10.2.dev287.dist-info → qontract_reconcile-0.10.2.dev288.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|