Code Monkey home page Code Monkey logo

Comments (5)

prd-fox avatar prd-fox commented on June 14, 2024

Requirements:
Private keys that are protected with a password should be able to have that password changed.

Outstanding questions:

  • What command line parameters to use for specifying a password change?
  • Should this operation update the configuration and then autostart the application, like the new key generation does?

from tessera.

prd-fox avatar prd-fox commented on June 14, 2024

Answers to above questions:

a)
Use separate CLI options that specify:

  1. The private key file to modify (inline changes will not be supported currently)
  2. Provide the old password (if the key was locked) either directly or in a file
  3. Provide argon options for that override the defaults

--key.pwdupdate.keyfile <filepath> [ --key.pwdupdate.old <oldpass> | --key.pwdupdate.pwdfile <passwordFile> ] [--key.pwdupdate.argon <iterations> <memory> <parallelism> ]

b)
This operation should overwrite the old key file as the only destructive operation. Updating the configuration with the new password (either the inline password list or the password file) is to be left to the end user.

from tessera.

melowe avatar melowe commented on June 14, 2024

The update part can be a single flag and the same options can be used .

--update-passwords or whatever the action is.. 

from tessera.

prd-fox avatar prd-fox commented on June 14, 2024

Using:

--keys.passwordFile
--keys.passwords
--keys.keyData.privateKeyPath
--keys.keyData.config.data.aopts.algorithm
--keys.keyData.config.data.aopts.iterations
--keys.keyData.config.data.aopts.memory
--keys.keyData.config.data.aopts.parallelism

Although they are longer and potentially less clear, they are already defined properties that can be interpreted in the context of updating passwords (instead of the normal case of overriding the configuration file).

from tessera.

prd-fox avatar prd-fox commented on June 14, 2024

Implemented and the wiki updated.

from tessera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.