Coder Social home page Coder Social logo

Generate secrets on Clusters about kritis HOT 3 CLOSED

tejal29 avatar tejal29 commented on August 23, 2024
Generate secrets on Clusters

from kritis.

Comments (3)

tejal29 avatar tejal29 commented on August 23, 2024

We are using helm plugin certgen to create tls secrets.

For AttestatoionAuthority we can write a controller to create a secret if it does not exits.
The sample code is https://github.com/tejal29/kritis/blob/attestation_lib/pkg/kritis/attestation/attestation_test.go#L59

from kritis.

tejal29 avatar tejal29 commented on August 23, 2024

The flow would be,
For the given AttestationAuthority:

apiVersion: kritis.grafeas.io/v1beta1
kind: AttestationAuthority
metadata:
  name: qa-attestor
spec:
    noteReference: v1alpha1/projects/image-signing
    privateKeySecretName: foo
  1. Check if the secret "foo" exists in the given namesapce.
  2. If it does not exist,
    a. The controller will generate the private and public key pair.
    b. Create a Kubernetes Secret ( See https://github.com/kubernetes/sample-controller/blob/master/controller.go#L389 code for reference)
    c. Update the AttestationAuthority with generated public key.
    ( There is also some sample code on how to update a KO in the above repo)
  3. If the secret exists, do nothing :)

from kritis.

aaron-prindle avatar aaron-prindle commented on August 23, 2024

This is handled by the preinstall pod now: #124. closing

from kritis.

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.