qontract-reconcile 0.10.1rc1165__py3-none-any.whl → 0.10.1rc1166__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.1rc1165.dist-info → qontract_reconcile-0.10.1rc1166.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.1rc1165.dist-info → qontract_reconcile-0.10.1rc1166.dist-info}/RECORD +6 -6
- reconcile/gitlab_fork_compliance.py +8 -3
- {qontract_reconcile-0.10.1rc1165.dist-info → qontract_reconcile-0.10.1rc1166.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.1rc1165.dist-info → qontract_reconcile-0.10.1rc1166.dist-info}/entry_points.txt +0 -0
- {qontract_reconcile-0.10.1rc1165.dist-info → qontract_reconcile-0.10.1rc1166.dist-info}/top_level.txt +0 -0
{qontract_reconcile-0.10.1rc1165.dist-info → qontract_reconcile-0.10.1rc1166.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: qontract-reconcile
|
3
|
-
Version: 0.10.
|
3
|
+
Version: 0.10.1rc1166
|
4
4
|
Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
|
5
5
|
Home-page: https://github.com/app-sre/qontract-reconcile
|
6
6
|
Author: Red Hat App-SRE Team
|
{qontract_reconcile-0.10.1rc1165.dist-info → qontract_reconcile-0.10.1rc1166.dist-info}/RECORD
RENAMED
@@ -29,7 +29,7 @@ reconcile/github_repo_invites.py,sha256=3GOBGZq1DKMIuyYsDxHqXDnMTWlJfeu248-m3ajf
|
|
29
29
|
reconcile/github_repo_permissions_validator.py,sha256=dcbXdUx6imjNchjp3pg9-z1i7lFEGOr_28GvsiwO5Xw,1734
|
30
30
|
reconcile/github_users.py,sha256=nfTq78QRONIfDVj-5O3bD6psllJjzWFnog-EJ1WqFPU,3672
|
31
31
|
reconcile/github_validator.py,sha256=cVTVxJIGR4a1Jz8wrdXEAb_CMpXUzvykVmUURX4cook,917
|
32
|
-
reconcile/gitlab_fork_compliance.py,sha256=
|
32
|
+
reconcile/gitlab_fork_compliance.py,sha256=c7UfqSAsW04c1bWJmXXaQDwtUcG4Kb6nCJAyRU2uAuw,4449
|
33
33
|
reconcile/gitlab_housekeeping.py,sha256=D0DOqC-xuMBMct04_MI8Lq32OAi_QMvvGLOz_E-77Dw,22482
|
34
34
|
reconcile/gitlab_labeler.py,sha256=4xJHmVX155fclrHqkR926sL1GH6RTN5XfZ8PnqNXbRA,4534
|
35
35
|
reconcile/gitlab_members.py,sha256=PrJE9OhDRdGG_gHM_77nQojLb4B18jtUu8DxgLsRS88,8417
|
@@ -880,8 +880,8 @@ tools/test/test_qontract_cli.py,sha256=iuzKbQ6ahinvjoQmQLBrG4shey0z-1rB6qCgS8T6d
|
|
880
880
|
tools/test/test_saas_promotion_state.py,sha256=dy4kkSSAQ7bC0Xp2CociETGN-2aABEfL6FU5D9Jl00Y,6056
|
881
881
|
tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
|
882
882
|
tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
|
883
|
-
qontract_reconcile-0.10.
|
884
|
-
qontract_reconcile-0.10.
|
885
|
-
qontract_reconcile-0.10.
|
886
|
-
qontract_reconcile-0.10.
|
887
|
-
qontract_reconcile-0.10.
|
883
|
+
qontract_reconcile-0.10.1rc1166.dist-info/METADATA,sha256=ru93sln6IVHsJ8rmuUw2C1jLSzNMey-obelfXbhXBvU,2213
|
884
|
+
qontract_reconcile-0.10.1rc1166.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
885
|
+
qontract_reconcile-0.10.1rc1166.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
|
886
|
+
qontract_reconcile-0.10.1rc1166.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
|
887
|
+
qontract_reconcile-0.10.1rc1166.dist-info/RECORD,,
|
@@ -5,8 +5,12 @@ from gitlab import GitlabGetError
|
|
5
5
|
from gitlab.const import MAINTAINER_ACCESS
|
6
6
|
|
7
7
|
from reconcile import queries
|
8
|
+
from reconcile.typed_queries.app_interface_vault_settings import (
|
9
|
+
get_app_interface_vault_settings,
|
10
|
+
)
|
8
11
|
from reconcile.utils.gitlab_api import GitLabApi
|
9
12
|
from reconcile.utils.mr.labels import BLOCKED_BOT_ACCESS
|
13
|
+
from reconcile.utils.secret_reader import create_secret_reader
|
10
14
|
|
11
15
|
LOG = logging.getLogger(__name__)
|
12
16
|
|
@@ -38,10 +42,11 @@ class GitlabForkCompliance:
|
|
38
42
|
self.maintainers_group = maintainers_group
|
39
43
|
|
40
44
|
self.instance = queries.get_gitlab_instance()
|
41
|
-
|
45
|
+
vault_settings = get_app_interface_vault_settings()
|
46
|
+
self.secret_reader = create_secret_reader(use_vault=vault_settings.vault)
|
42
47
|
|
43
48
|
self.gl_cli = GitLabApi(
|
44
|
-
self.instance, project_id=project_id,
|
49
|
+
self.instance, project_id=project_id, secret_reader=self.secret_reader
|
45
50
|
)
|
46
51
|
self.mr = self.gl_cli.get_merge_request(mr_id)
|
47
52
|
|
@@ -94,7 +99,7 @@ class GitlabForkCompliance:
|
|
94
99
|
self.src = GitLabApi(
|
95
100
|
self.instance,
|
96
101
|
project_id=self.mr.source_project_id,
|
97
|
-
|
102
|
+
secret_reader=self.secret_reader,
|
98
103
|
)
|
99
104
|
except GitlabGetError:
|
100
105
|
self.handle_error("access denied for user {bot}", MSG_ACCESS)
|
{qontract_reconcile-0.10.1rc1165.dist-info → qontract_reconcile-0.10.1rc1166.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|