cloudx-proxy 0.3.5__py3-none-any.whl → 0.3.6__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.
cloudx_proxy/_version.py CHANGED
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.3.5'
16
- __version_tuple__ = version_tuple = (0, 3, 5)
15
+ __version__ = version = '0.3.6'
16
+ __version_tuple__ = version_tuple = (0, 3, 6)
cloudx_proxy/setup.py CHANGED
@@ -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 and configure SSH agent.
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
- print("Adding SSH key to 1Password SSH agent...")
209
- try:
210
- # First try to add to SSH agent
211
- subprocess.run([
212
- 'op', 'ssh-add',
213
- '--name', f'cloudx-proxy-{self.ssh_key}',
214
- str(self.ssh_key_file)
215
- ], check=True)
216
-
217
- # Read private key content before removing
218
- with open(self.ssh_key_file, 'r') as f:
219
- private_key = f.read()
220
-
221
- # Store private key in 1Password as document for backup
222
- subprocess.run([
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: cloudx-proxy
3
- Version: 0.3.5
3
+ Version: 0.3.6
4
4
  Summary: SSH proxy command to connect VSCode with Cloud9/CloudX instance using AWS Systems Manager
5
5
  Author-email: easytocloud <info@easytocloud.com>
6
6
  License: MIT License
@@ -0,0 +1,11 @@
1
+ cloudx_proxy/__init__.py,sha256=ZZ2O_m9OFJm18AxMSuYJt4UjSuSqyJlYRaZMoets498,61
2
+ cloudx_proxy/_version.py,sha256=IKAQ4gPrCQ2FWMXOFRqouULC2EQI1zCb4iXHsnfbmTQ,411
3
+ cloudx_proxy/cli.py,sha256=Ph-m8lDsdU2zZab9Y6YgBBzd_UDouBnfNrYFFx0bI_E,3426
4
+ cloudx_proxy/core.py,sha256=WjKoqMmmnt6e_4JMeq4gTka75JAvQcMUs9r9XUBLmFE,7289
5
+ cloudx_proxy/setup.py,sha256=3Kz-VWid0EL4rIEyf30UuLEe3Rvo1Mn8rKIa5WnysFE,24378
6
+ cloudx_proxy-0.3.6.dist-info/LICENSE,sha256=i7P2OR4zsJYsMWcCUDe_B9ZfGi9bU0K5I2nKfDrW_N8,1068
7
+ cloudx_proxy-0.3.6.dist-info/METADATA,sha256=KwikAp1MVPQDaSABlt8esDM9448EIRgMitb394SH4JM,14037
8
+ cloudx_proxy-0.3.6.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
9
+ cloudx_proxy-0.3.6.dist-info/entry_points.txt,sha256=HGt743N2lVlKd7O1qWq3C0aEHyS5PjPnxzDHh7hwtSg,54
10
+ cloudx_proxy-0.3.6.dist-info/top_level.txt,sha256=2wtEote1db21j-VvkCJFfT-dLlauuG5indjggYh3xDg,13
11
+ cloudx_proxy-0.3.6.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- cloudx_proxy/__init__.py,sha256=ZZ2O_m9OFJm18AxMSuYJt4UjSuSqyJlYRaZMoets498,61
2
- cloudx_proxy/_version.py,sha256=3eLsZPTwWh0zKBhR6n3c4iAL9geCCdJGMojIL6dF0IA,411
3
- cloudx_proxy/cli.py,sha256=Ph-m8lDsdU2zZab9Y6YgBBzd_UDouBnfNrYFFx0bI_E,3426
4
- cloudx_proxy/core.py,sha256=WjKoqMmmnt6e_4JMeq4gTka75JAvQcMUs9r9XUBLmFE,7289
5
- cloudx_proxy/setup.py,sha256=9uwUsuWjeqpSK5FJd8ltICkbqkhFjBmprhaaVOi14Yc,24987
6
- cloudx_proxy-0.3.5.dist-info/LICENSE,sha256=i7P2OR4zsJYsMWcCUDe_B9ZfGi9bU0K5I2nKfDrW_N8,1068
7
- cloudx_proxy-0.3.5.dist-info/METADATA,sha256=5lbxvj5-e33akvzp9Vdiq18G-qgVhJDFLFrMAq6grGs,14037
8
- cloudx_proxy-0.3.5.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
9
- cloudx_proxy-0.3.5.dist-info/entry_points.txt,sha256=HGt743N2lVlKd7O1qWq3C0aEHyS5PjPnxzDHh7hwtSg,54
10
- cloudx_proxy-0.3.5.dist-info/top_level.txt,sha256=2wtEote1db21j-VvkCJFfT-dLlauuG5indjggYh3xDg,13
11
- cloudx_proxy-0.3.5.dist-info/RECORD,,