Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(ci): use common cicd library for build #75

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Victoremepunto
Copy link
Collaborator

@Victoremepunto Victoremepunto commented Sep 25, 2023

This uses the common CICD tools scripts for build_deploy.sh

this requires RedHatInsights/cicd-tools#22 to be merged (Merged)

@Victoremepunto Victoremepunto marked this pull request as ready for review October 30, 2023 12:47
Copy link
Member

@skateman skateman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Seal of Approval

export CICD_BOOTSTRAP_REPO_ORG='RedHatInsights'
CICD_TOOLS_URL="https://raw.githubusercontent.com/${CICD_BOOTSTRAP_REPO_ORG}/cicd-tools/${CICD_BOOTSTRAP_REPO_BRANCH}/src/bootstrap.sh"
# shellcheck source=/dev/null
source <(curl -sSL "$CICD_TOOLS_URL") image_builder
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Victoremepunto is there something better than sourcing random code from github?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deferred to Security for feedback

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was suggesting signed files or commits. Otherwise RHTAP might help.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can configure the project (I think it is already) to only allow verified (signed) git commits.

However that's only checked on Github's side (hence the ✔️ next to the commit). The client "doesn't have a way" to check the commit signature - not a "nice and simple" one anyways.

The "signed files" - same story, the client needs to verify the validity of the signature.

RHTAP will only provide tools via Docker images (won't load stuff dynamically) - which doesn't really work for Scripts.

BUT - it's true that RHTAP will fix the "build part" - once a service is onboarded, we shall not need any build script anymore.

question is - what we do in between ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants