Giter VIP home page Giter VIP logo

Comments (6)

orweis avatar orweis commented on August 22, 2024

Hi @oskar-christensson - I believe that the values for authorization and authentication here are mixed-up; meaning you should swap them, so it will be:

      OPAL_INLINE_OPA_CONFIG:                '{"authentication": "token", "authorization": "basic"}'

As per: https://github.com/permitio/opal/blob/5b4729d4a62cf47454e79f48c498ff992aee078f/packages/opal-client/opal_client/opa/options.py#L13

Let me know if that helps :)

We should probably improve the error message here, regardless (CC: @asafc , @roekatz )

from opal-helm-chart.

oc002 avatar oc002 commented on August 22, 2024

Thanks, that works.

2023-02-28T11:12:34.475776+0000 | opal_client.opa.runner                  | INFO  | Running OPA inline: opa run --server --addr=:8181 --authentication=token --authorization=basic --log-level=info

from opal-helm-chart.

oc002 avatar oc002 commented on August 22, 2024

On that note, @orweis in order to get authorization working in OPA you need to provide something resolving to data.system.authz.allow. Seems like in OPAL you'd want these files in the files cli argument.

However, when running this helm chart - it does not seem possible to mount those files.
I would think that the ConfigMap would be a good place for this and mount the map as a volume in the pod.

How is one supposed to add data.system.authz.allow policy to the client in this helm chart now?

from opal-helm-chart.

orweis avatar orweis commented on August 22, 2024

Fair point @oskar-christensson ; I don't think we've used this option with the helm-chart specifically so far.
I'll defer to our helm-chart master: @RazcoDev

from opal-helm-chart.

oc002 avatar oc002 commented on August 22, 2024

Right! That's fine.
I'll create a PR with this support.

from opal-helm-chart.

oc002 avatar oc002 commented on August 22, 2024

There's now a PR here:
#25

from opal-helm-chart.

Related Issues (17)

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.