Git Product home page Git Product logo

Comments (9)

greenpau avatar greenpau commented on June 15, 2024 2

@EntropyValley , I need to find some time to update this module.

from caddy-security.

greenpau avatar greenpau commented on June 15, 2024 1

@pav67 , that is a bug. There were recent changes to bcrypt library. Will fix and make a new release. Thank you for reporting this!

from caddy-security.

greenpau avatar greenpau commented on June 15, 2024 1

@sdsys-ch , I would try looking at it this week.

from caddy-security.

sdsys-ch avatar sdsys-ch commented on June 15, 2024 1

Appreciated! Great to see all the activity around caddy-security. Thanks

from caddy-security.

EntropyValley avatar EntropyValley commented on June 15, 2024

Any updates on this @greenpau? API Key Generation still seems to be broken in the current version. Is there a way to temporarily generate my own API key and manually add it until this is fixed?

from caddy-security.

sdsys-ch avatar sdsys-ch commented on June 15, 2024

@greenpau , I've created a dirty fix for this issue in a private repo. I'm not sure if it breaks anything or if there are security considerations I'm not aware of?

I've tested this locally and my fix allows authentication via X-Api-Key Header with ApiKeys generated via the local portal (diff for go-authcrunch - pkg:identity:database.go):

@@ -566,7 +566,7 @@ func (db *Database) AddAPIKey(r *requests.Request) error {
        if err != nil {
                return errors.ErrAddAPIKey.WithArgs(r.Key.Usage, err)
        }
-       s := GetRandomStringFromRange(72, 96)
+       s := GetRandomString(72)
        failCount := 0
        for {
                hk, err := NewPassword(s)

Since bcrypt now enforces a hard limit of 72 (non-unicode) chars, this fixes the issue.

If you don't see any issues with this, I can create a pull request. If not, let me know what I've overlooked and I might try to fix my patch?

from caddy-security.

greenpau avatar greenpau commented on June 15, 2024

@sdsys-ch , @pav67 , @EntropyValley , I added a fix for this. Will be available in the next release.

from caddy-security.

greenpau avatar greenpau commented on June 15, 2024

@sdsys-ch , thank you for the gift! Much appreciated 🎉

from caddy-security.

greenpau avatar greenpau commented on June 15, 2024

@pav67, @sdsys-ch , @EntropyValley , I am looking to add testimonial sections to https://authcrunch.com. Could you please write one and send it to me at [email protected]?

from caddy-security.

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.