Skip to content

Commit fe2f398

Browse files
committed
checkpoint
1 parent 887d7a0 commit fe2f398

2 files changed

Lines changed: 17 additions & 12 deletions

File tree

ipyparallel/controller/app.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,23 @@ def _ensure_curve_keypair(self):
290290
""",
291291
)
292292

293+
curve_key_file = Unicode(
294+
config=True,
295+
help="""The zmq Curve certificate file to store credentials.
296+
If specified, read curve credentials from this file.
297+
""",
298+
)
299+
300+
@observe("curve_certificate")
301+
def curve_certificate_dir_changed(self, change):
302+
if change.new:
303+
path = change.new
304+
name = f"ipcontroller-{self.cluster_id}".rstrip("-")
305+
if os.path.exists(path):
306+
pass
307+
308+
session_key = Bytes()
309+
293310
@validate("curve_publickey", "curve_secretkey")
294311
def _cast_bytes(self, proposal):
295312
if isinstance(proposal.value, str):

ipyparallel/util.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -377,18 +377,6 @@ def terminate_children(sig, frame):
377377
signal(sig, terminate_children)
378378

379379

380-
def generate_exec_key(keyfile):
381-
import uuid
382-
383-
newkey = str(uuid.uuid4())
384-
with open(keyfile, 'w') as f:
385-
# f.write('ipython-key ')
386-
f.write(newkey + '\n')
387-
# set user-only RW permissions (0600)
388-
# this will have no effect on Windows
389-
os.chmod(keyfile, stat.S_IRUSR | stat.S_IWUSR)
390-
391-
392380
def integer_loglevel(loglevel):
393381
try:
394382
loglevel = int(loglevel)

0 commit comments

Comments
 (0)