Giter VIP home page Giter VIP logo

Comments (8)

wanghh2000 avatar wanghh2000 commented on September 23, 2024 1

Will check the other 2 bugs for cluster-api-provider-openstack and cluster-api-provider-vsphere.

from cluster-api-provider-ibmcloud.

hchenxa avatar hchenxa commented on September 23, 2024

may we we can change to use debian:stretch-slim as the base docker image

from cluster-api-provider-ibmcloud.

morvencao avatar morvencao commented on September 23, 2024

Why not use static lib when building the go binary and replace the base image with scratch, to minimize the image size?

from cluster-api-provider-ibmcloud.

morvencao avatar morvencao commented on September 23, 2024

Just ignore the last comment, we need ca-certificates package to generate the cert/key pair.

from cluster-api-provider-ibmcloud.

morvencao avatar morvencao commented on September 23, 2024

Look like simply adding apt-get update && apt-get upgrade -y can't upgrade the vulnerable package to fixed version.

Also checked the images of openstack and vsphere, the same security issues exist.

Should we consider changing the base image?

@gyliu513 Any comments?

from cluster-api-provider-ibmcloud.

gyliu513 avatar gyliu513 commented on September 23, 2024

@morvencao Yes, you can fix those issues together for OpenStack, vSphere as well.

from cluster-api-provider-ibmcloud.

jichenjc avatar jichenjc commented on September 23, 2024

@morvencao do we have best practice ?I think other k8s related project have similar question?
and do aws has this kind of issue? maybe we can refer to their stuffs?

from cluster-api-provider-ibmcloud.

morvencao avatar morvencao commented on September 23, 2024

@jichenjc Usually we fix this kind of security issues by upgrading the packages to the new version, because new versions contain the fix, however, it doesn't work in provider images, also tried to replace base image.

I found that the gcp provider is using the gcr.io/distroless/static:latest as base image: https://github.com/kubernetes-sigs/cluster-api-provider-gcp/blob/master/Dockerfile#L20, but I don't think we can do that, because we need ca-certificate package.

from cluster-api-provider-ibmcloud.

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.