Git Product home page Git Product logo

Comments (6)

josephlr avatar josephlr commented on May 5, 2024

@limbo127 do you not want to have to create /etc/fscrypt.conf at all? Or do you just need a way to override parameters in it for a specific call?

from fscrypt.

limbo127 avatar limbo127 commented on May 5, 2024

from fscrypt.

fristonio avatar fristonio commented on May 5, 2024

@josephlr What are we planning to do in this. I think providing a command line flag to specify custom configuration file is a good idea, or else we can also have an environment variable(like FSCRYPT_CONFIG) specifying the config file path.
I can work on this.

from fscrypt.

josephlr avatar josephlr commented on May 5, 2024

@fristonio My idea here was to basically allow /etc/fscrypt.conf to exist in multiple places, and then define a sane ordering to look though them, overriding settings as we go. My thoughts on the order (basically from lower to higher priority):

  1. Compiled in application defaults
  2. /etc/fscrypt.conf
  3. User configuration dirs as specified by the XDG Specification. This basically means we search for $XDG_CONFIG_HOME/fscrypt/fscrypt.config aka ~/.config/fscrypt/fscrypt.conf.
  4. A flag passed in naming a file to be used. This could also be parameters for each option, but a command line flag seems better.

Thoughts? This change also means that we could remove certain things we write to /etc/fscrypt.conf by default. For example, if the file encryption mode isn't set, the fscrypt binary could chose the "best" algorithm avalible on the system.

from fscrypt.

fristonio avatar fristonio commented on May 5, 2024

Yeah, this looks good to me. A few things though.

Compiled in application defaults

I don't understand this. Are you trying to say that /etc/fscrypt.conf shouldn't be the default but the one specified by user during compile time should be used as default?

if the file encryption mode isn't set, the fscrypt binary could chose the "best" algorithm avalible on the system?

We don't do this now?

from fscrypt.

ebiggers avatar ebiggers commented on May 5, 2024

A while ago, 31bc8c8 added a FSCRYPT_CONF environmental variable for testing purposes. I'm not sure whether we should just document that and consider this issue closed, or whether we should still implement the more complex design described in #72 (comment). It might be best to keep things simple for now.

from fscrypt.

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.