Code Monkey home page Code Monkey logo

Comments (6)

Jeffwan avatar Jeffwan commented on May 18, 2024

For post submit workflow, we need to build and push two images with nightly and commit hash tags. they are still same image.

from kuberay.

Jeffwan avatar Jeffwan commented on May 18, 2024

https://kevsoft.net/2020/06/10/running-github-action-steps-and-jobs-only-on-push-to-master.html

This is a good article to talk about conditional step in a job workflow for multiple events (pull_request, push)

from kuberay.

Jeffwan avatar Jeffwan commented on May 18, 2024

Currently, there're few challenges to build automation.

  1. seems there's no way to create robot or service account for KubeRay docker hub organization? Only member belong to team can operate it. The challenge is I have admin access of several organizations and I can not use my personal token in CI.

  2. https://github.com/docker/login-action This action helps to authenticate with docker registry.

  • The problem is if bad guy update GitHub workflow and echo credential, I assume credential might be leaked?
  • hacker still can update workflow to publish image with malicious code to official registry?

I am not an expert on GitHub Actions, I assume these kind of issues should not be there? /cc @akanso

from kuberay.

Jeffwan avatar Jeffwan commented on May 18, 2024

/cc @wilsonwang371

from kuberay.

Jeffwan avatar Jeffwan commented on May 18, 2024

seems there's no way to create robot or service account for KubeRay docker hub organization? Only member belong to team can operate it. The challenge is I have admin access of several organizations and I can not use my personal token in CI.

We register a separate account with kubeRay write permission only as the robot account.

https://github.com/docker/login-action This action helps to authenticate with docker registry.

The problem is if bad guy update GitHub workflow and echo credential, I assume credential might be leaked?
hacker still can update workflow to publish image with malicious code to official registry?

Maintainers has to carefully review the code before they approve to run the workflow.
for the presubmit change, we build local image and load into kind cluster for testing.
for the merge change, we build image and push to registry so we can avoid malicious code pushing to registry.

#141 resolve this issue and it can be closed

from kuberay.

Jeffwan avatar Jeffwan commented on May 18, 2024

Thanks @wilsonwang371 for the help!

from kuberay.

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.