Giter Club home page Giter Club logo

Comments (6)

mperham avatar mperham commented on July 1, 2024

I think the Web UI password is only required in production mode? For local development, you shouldn't need it at all.

from faktory.

mperham avatar mperham commented on July 1, 2024

And since it's just HTTP Basic Auth, the browser should cache the credentials for future access.

from faktory.

ibrahima avatar ibrahima commented on July 1, 2024

I think it's also required in development mode if a password is set but I'm not 100% sure (I definitely have gotten a password prompt in my development environment though I wonder if we set the mode incorrectly or something). But I guess we don't have to set a password in development at all so maybe that would simplify things?

Yeah the browser does cache it but it does seem to expire eventually, at least I seem to need to enter it more often than I would expect. And this might be specific to my setup, but with Firefox and with the 1password extension installed as a password manager, neither the browser nor 1password offers to save it.

Anyway, it's really only a minor inconvenience, but it would be nice if this was optional since people might use other security mechanisms in front of Faktory to secure the admin interface.

from faktory.

mperham avatar mperham commented on July 1, 2024

Try FAKTORY_SKIP_PASSWORD=true

from faktory.

ibrahima avatar ibrahima commented on July 1, 2024

Hmm okay, so that would allow us to disable the password in production, but I'm guessing that that's for both the worker protocol and the web UI right? I was thinking of just disabling it for the web UI but thinking about it further, in our case it may make sense to just use network security rules for the workers and disable the password altogether.

faktory/cli/cli.go

Lines 289 to 299 in b3e739a

if env != "development" && !skip() && password == "" {
return "", fmt.Errorf("faktory requires a password to be set in staging or production, see the Security wiki page")
}
return password, nil
}
func skip() bool {
val, ok := os.LookupEnv("FAKTORY_SKIP_PASSWORD")
return ok && (val == "1" || val == "true" || val == "yes")
}

from faktory.

mperham avatar mperham commented on July 1, 2024

Exactly, the skip option is there so users can opt into disabling faktory's internal security, and imply that they are going to handle auth some other way.

from faktory.

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.