Git Product home page Git Product logo

Comments (4)

GeroL avatar GeroL commented on May 28, 2024

I just read that the secret has to be the same namespace as trust-manager. I guess that solves the problem. Any reason why this is scoped to the trust-managers namespace?

from trust-manager.

GeroL avatar GeroL commented on May 28, 2024

Works now. Had it tangled up somehow

from trust-manager.

ebuildy avatar ebuildy commented on May 28, 2024

1- security issue: never give permission "read all secrets from any namespaces" ^^ you can check ClusterRole here https://github.com/cert-manager/trust-manager/blob/main/deploy/charts/trust-manager/templates/clusterrole.yaml
2- related code: https://github.com/cert-manager/trust-manager/blob/main/deploy/charts/trust-manager/templates/trust.cert-manager.io_bundles.yaml#L80 https://github.com/cert-manager/trust-manager/blob/main/pkg/bundle/sync.go#L121

Set the "default" source namespace:

I think this can be done easily :-)

from trust-manager.

wasd171 avatar wasd171 commented on May 28, 2024

I see how I can make it work with values -> app.trust.namespace = "my-namespace" but I am still a bit confused.
I want to use a ClusterIssuer to bootstrap a Certificate for a CA Issuer (let's say in a default namespace).

Option 1:
I create Certificate in the namespace cert-manager. Then trust-manager can access it and create a ConfigMap, however the Issuer has no access to it from the default namespace :(

Option 2:
I create Certificate in the default namespace. Issuer can access it but trust-manager will need a values -> app.trust.namespace = "default" value to access it. This works but does not scale – what if I have another Issuer in namespace custom?

What is the recommended behaviour? Should I create a custom ClusterRole for trust-manager? Looks like I am missing something :(

from trust-manager.

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.