Git Product home page Git Product logo

Comments (4)

munnerz avatar munnerz commented on May 23, 2024 1

There isn't a way that I'm aware of to do this listing for just metadata. There are references to PartialObjectMetadata in the Kubernetes code-base, but this is only utilised client-side from what I can see (specifically, as part of the garbage collector in kube-controller-manager which handles things like owner references).

In lieu of this, I think we'll need to just gather the full resource for now. You may want to ask over in #sig-api-machinery on slack.k8s.io to see if anyone has any more tips here, as I know there was some support for alternative output formats added to the apiserver a while ago (although I'm not sure how flexible this is).

from jetstack-secure.

wwwil avatar wwwil commented on May 23, 2024

I'm having a look into this now. The ideal solution would be if we can find a way to just List Secret metadata.

If that isn't possible we may have to fetch the Secret and have the data gatherer redact the data part. For users running the agent in cluster (which we expect will be most of them) this isn't too bad.

We should probably also have Preflight output a warning if it sees Secrets being gathered, both in the agent and any package development tools.

from jetstack-secure.

wwwil avatar wwwil commented on May 23, 2024

The response from #sig-api-machinery indicates we can't just fetch metadata so I'm going to work on the solution I described above where we fetch the full resource but remove the data and log a warning.

from jetstack-secure.

AkvileMar avatar AkvileMar commented on May 23, 2024

There is an open pull request that needs to be reviewed.

from jetstack-secure.

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.