Coder Social home page Coder Social logo

Comments (4)

quarkus-bot avatar quarkus-bot commented on July 19, 2024

/cc @pedroigor (bearer-token,oidc)

from quarkus.

sberyozkin avatar sberyozkin commented on July 19, 2024

@calvernaz As far as I recall it is a root cert thumbprint, will look next week, thanks

from quarkus.

sberyozkin avatar sberyozkin commented on July 19, 2024

Correction: it is a subject certificate one, at least in the test

from quarkus.

sberyozkin avatar sberyozkin commented on July 19, 2024

So, in prod, the truststores may not have the leaf/subject certificates, but only the root certificates.

Right now, Quarkus OIDC expects the leaf certificate be in the store as it must trust the leaf certificate itself - as per the x5c claim specification it is this certificate that must be used to verify the signature.

If we have a situation where the truststore only has a root certificate there must be a way to identify at the quarkus-oidc level the leaf certificate which is a signature verification certificate - using CName is what has to be done in such cases.

For example: quarkus.oidc.certificate-chain.cname. Adding this CName will help to assert that this is indeed the expected leaf certificate. And if this property is set then Quarkus will expect the root certificate in the x5c chain match the keystore certificate thumbprint.

It can be made more configurable later but for now lets try to stay quite strict with respect to accepting such chains.

from quarkus.

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.