cloudx-proxy 0.3.5__tar.gz → 0.3.6__tar.gz
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.
- {cloudx_proxy-0.3.5 → cloudx_proxy-0.3.6}/CHANGELOG.md +7 -0
- {cloudx_proxy-0.3.5 → cloudx_proxy-0.3.6}/PKG-INFO +1 -1
- {cloudx_proxy-0.3.5 → cloudx_proxy-0.3.6}/cloudx_proxy/_version.py +2 -2
- {cloudx_proxy-0.3.5 → cloudx_proxy-0.3.6}/cloudx_proxy/setup.py +16 -28
- {cloudx_proxy-0.3.5 → cloudx_proxy-0.3.6}/cloudx_proxy.egg-info/PKG-INFO +1 -1
- {cloudx_proxy-0.3.5 → cloudx_proxy-0.3.6}/.github/workflows/release.yml +0 -0
- {cloudx_proxy-0.3.5 → cloudx_proxy-0.3.6}/.gitignore +0 -0
- {cloudx_proxy-0.3.5 → cloudx_proxy-0.3.6}/.releaserc +0 -0
- {cloudx_proxy-0.3.5 → cloudx_proxy-0.3.6}/CONTRIBUTING.md +0 -0
- {cloudx_proxy-0.3.5 → cloudx_proxy-0.3.6}/LICENSE +0 -0
- {cloudx_proxy-0.3.5 → cloudx_proxy-0.3.6}/README.md +0 -0
- {cloudx_proxy-0.3.5 → cloudx_proxy-0.3.6}/cloudx_proxy/__init__.py +0 -0
- {cloudx_proxy-0.3.5 → cloudx_proxy-0.3.6}/cloudx_proxy/cli.py +0 -0
- {cloudx_proxy-0.3.5 → cloudx_proxy-0.3.6}/cloudx_proxy/core.py +0 -0
- {cloudx_proxy-0.3.5 → cloudx_proxy-0.3.6}/cloudx_proxy.egg-info/SOURCES.txt +0 -0
- {cloudx_proxy-0.3.5 → cloudx_proxy-0.3.6}/cloudx_proxy.egg-info/dependency_links.txt +0 -0
- {cloudx_proxy-0.3.5 → cloudx_proxy-0.3.6}/cloudx_proxy.egg-info/entry_points.txt +0 -0
- {cloudx_proxy-0.3.5 → cloudx_proxy-0.3.6}/cloudx_proxy.egg-info/requires.txt +0 -0
- {cloudx_proxy-0.3.5 → cloudx_proxy-0.3.6}/cloudx_proxy.egg-info/top_level.txt +0 -0
- {cloudx_proxy-0.3.5 → cloudx_proxy-0.3.6}/package.json +0 -0
- {cloudx_proxy-0.3.5 → cloudx_proxy-0.3.6}/pyproject.toml +0 -0
- {cloudx_proxy-0.3.5 → cloudx_proxy-0.3.6}/setup.cfg +0 -0
@@ -1,3 +1,10 @@
|
|
1
|
+
## [0.3.6](https://github.com/easytocloud/cloudX-proxy/compare/v0.3.5...v0.3.6) (2025-02-11)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* 1Password integration repaired ([b8fd8eb](https://github.com/easytocloud/cloudX-proxy/commit/b8fd8eb445e2ccae107b01c796bc5bec1a9fa1d3))
|
7
|
+
|
1
8
|
## [0.3.5](https://github.com/easytocloud/cloudX-proxy/compare/v0.3.4...v0.3.5) (2025-02-11)
|
2
9
|
|
3
10
|
|
@@ -187,7 +187,7 @@ class CloudXSetup:
|
|
187
187
|
return False
|
188
188
|
|
189
189
|
def _store_key_in_1password(self) -> bool:
|
190
|
-
"""Store SSH private key in 1Password
|
190
|
+
"""Store SSH private key in 1Password.
|
191
191
|
|
192
192
|
Returns:
|
193
193
|
bool: True if key was stored successfully
|
@@ -205,33 +205,21 @@ class CloudXSetup:
|
|
205
205
|
self.print_status("1Password SSH agent not running. Please enable it in 1Password settings.", False, 2)
|
206
206
|
return False
|
207
207
|
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
'op', 'document', 'create',
|
224
|
-
'--title', f'cloudx-proxy SSH Key - {self.ssh_key}',
|
225
|
-
], input=private_key.encode(), check=True)
|
226
|
-
|
227
|
-
# Remove private key file but keep public key
|
228
|
-
os.remove(self.ssh_key_file)
|
229
|
-
self.print_status("Private key added to 1Password SSH agent and removed from disk", True, 2)
|
230
|
-
self.print_status("Backup copy stored in 1Password documents", True, 2)
|
231
|
-
return True
|
232
|
-
except subprocess.CalledProcessError as e:
|
233
|
-
self.print_status(f"Failed to add key to SSH agent: {e}", False, 2)
|
234
|
-
return False
|
208
|
+
# Read private key content
|
209
|
+
with open(self.ssh_key_file, 'r') as f:
|
210
|
+
private_key = f.read()
|
211
|
+
|
212
|
+
# Store private key in 1Password as document
|
213
|
+
subprocess.run([
|
214
|
+
'op', 'document', 'create',
|
215
|
+
'--title', f'cloudx-proxy SSH Key - {self.ssh_key}',
|
216
|
+
], input=private_key.encode(), check=True)
|
217
|
+
|
218
|
+
# Remove private key file but keep public key
|
219
|
+
os.remove(self.ssh_key_file)
|
220
|
+
self.print_status("Private key stored in 1Password and removed from disk", True, 2)
|
221
|
+
self.print_status("Please import the key into 1Password SSH agent through the desktop app", True, 2)
|
222
|
+
return True
|
235
223
|
except subprocess.CalledProcessError:
|
236
224
|
print("Error: 1Password CLI not installed or not signed in.")
|
237
225
|
return False
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|