Git Product home page Git Product logo

Comments (3)

pehala avatar pehala commented on August 11, 2024 1

Perhaps one thing we could do to improve usability is to make the listener and oidcServer properties both mandatory.

I think this would be the best. It would force the customer to choose what he wants explicitly. Thanks for looking into this again :)

from authorino-operator.

guicassolato avatar guicassolato commented on August 11, 2024

@pehala, failing when missing the secret is actually by design. It was implemented this way to avoid issues when both resources are applied together and handled concurrently by the API server.

Users and automation should rely status.conditions to read the state of the Authorino instance.

from authorino-operator.

guicassolato avatar guicassolato commented on August 11, 2024

Taking a second look on this after we spoke, @pehala...

Perhaps one thing we could do to improve usability is to make the listener and oidcServer properties both mandatory.

Although enabled: true is inferred by default, no assumption is made about the name of the secrets that store the TLS server certs. Consequently, (listener|oidcServer).tls.certSecretRef.name must be provided. On the other hand, if the user wants to disable TLS, then (listener|oidcServer).enabled: false is required. That all reduces to virtually listener and oidcServer being always needed – either to enable or to disable TLS. Requiring those fields is something easy to enforce via OAS.

Another option would be to make (listener|oidcServer).enabled: false the default. The sample CR you provided in the descriptions of the issue would be accepted instead of to fail. However, I believe TLS enabled by default would be perceived as a better practice, so I'd probably advocate for the other solution instead of this one.

WDYT?

from authorino-operator.

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.