Coder Social home page Coder Social logo

Comments (4)

mrsabath avatar mrsabath commented on June 6, 2024

What if your admission controller simply injects the following annotations into the user's pod:

      annotations:
        admission.trusted.identity/inject: "true"
        tsi.secrets: |
             - tsi.secret/name: "<dataset>_accessKeyID"
               tsi.secret/constraints: "region,images"
               tsi.secret/local-path: "tsi-secrets/<dataset>_accessKeyID"
             - tsi.secret/name: "<dataset>_secretAccessKey"
               tsi.secret/constraints: "region,images"
               tsi.secret/local-path: "tsi-secrets/<dataset>_secretAccessKey"

where the constraints are defined by the level of security to be imposed for this data set (e.g. only containers in specific region and from a specific image can access this data object)

And TSI would obtain the secrets from Vault and inject them to the user's container at the location specifed by tsi.secret/local-path

What do you think @YiannisGkoufas ?

from datashim.

vpavlin avatar vpavlin commented on June 6, 2024

Why/How is the image the deciding factor? Should it be rather whether the user is supposed to have access to this dataset?

Or maybe there is a use case that is not obvious at first glance - can you elaborate?

from datashim.

mrsabath avatar mrsabath commented on June 6, 2024

@vpavlin, intially, we are trying to address the simples scenario, to make sure only images that pass the compliance requirements, e.g vularabilty scan, are able to access the dataset. The example when access to the datasets depends on the userid is more challanging, just because Kubernetes was designed with a notion that users sharing a particular namespace can also share the resources in that namespace. We need to re-think this use-case whether it actually makes sense to do that. Separating the access on the namespace level is trivial, however, when different users share a namespace, it becomes tricky.

from datashim.

srikumar003 avatar srikumar003 commented on June 6, 2024

Would be interesting to take this up but is not planned currently.

from datashim.

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.