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

Stop using the github-app-token image #1414

Merged
merged 4 commits into from
Sep 17, 2024

Conversation

chmeliik
Copy link
Contributor

@chmeliik chmeliik commented Sep 13, 2024

STONEBLD-2718

The quay.io/redhat-appstudio/github-app-token image is highly suspect.

  • It is a copy of quay.io/chmouel/github-app-token - an image in a
    personal namespace with unclear origins and content.
  • It has not been updated for 4 years.
  • It has 175 critical vlunerabilities according to quay.io.

Update the update-infra-deployments task to no longer depend on anything this
image provides and replace it with a generic python image.

@chmeliik
Copy link
Contributor Author

/retest

@chmeliik
Copy link
Contributor Author

/retest

@chmeliik
Copy link
Contributor Author

/retest

@chmeliik
Copy link
Contributor Author

/retest

@chmeliik
Copy link
Contributor Author

/retest

@chmeliik
Copy link
Contributor Author

/retest

@chmeliik
Copy link
Contributor Author

/retest

1 similar comment
@chmeliik
Copy link
Contributor Author

/retest

@chmeliik
Copy link
Contributor Author

/retest

Replace the python jwcrypto library with the more readily available
openssl tools.

This is part of an effort to move away from the
quay.io/redhat-appstudio/github-app-token image.

Signed-off-by: Adam Cmiel <[email protected]>
Replace the python requests library with the python urllib library,
which is part of the stdlib.

This is part of an effort to move away from the
quay.io/redhat-appstudio/github-app-token image.

Signed-off-by: Adam Cmiel <[email protected]>
The quay.io/redhat-appstudio/github-app-token image is highly suspect.

- It is a copy of quay.io/chmouel/github-app-token - an image in a
  personal namespace with unclear origins and content.
- It has not been updated for 4 years.
- It has 175 critical vlunerabilities according to quay.io.

The update-infra-deployments task no longer depends on anything this
image provides - replace it with a generic python image.

Signed-off-by: Adam Cmiel <[email protected]>
@chmeliik
Copy link
Contributor Author

/test

@chmeliik
Copy link
Contributor Author

/retest

@chmeliik
Copy link
Contributor Author

chmeliik commented Sep 16, 2024

Seems to work

@chmeliik chmeliik marked this pull request as ready for review September 16, 2024 15:08
@chmeliik
Copy link
Contributor Author

/test

@@ -301,8 +316,7 @@ spec:


def main():
with open(os.environ['GITHUBAPP_KEY_PATH'], 'rb') as key_file:
key = key_file.read()
key_path = os.environ['GITHUBAPP_KEY_PATH']
Copy link
Contributor

Choose a reason for hiding this comment

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

What if the GITHUBAPP_KEY_PATH is not set? Should it be handled?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It will be a KeyError, same as before. But I can improve it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

Handle the cases of GITHUB_APP_KEY_PATH not set / set to a non-existent
file more gracefully.

Signed-off-by: Adam Cmiel <[email protected]>
@chmeliik
Copy link
Contributor Author

/retest

@chmeliik chmeliik enabled auto-merge September 17, 2024 08:13
@chmeliik chmeliik added this pull request to the merge queue Sep 17, 2024
Merged via the queue into konflux-ci:main with commit eda826e Sep 17, 2024
13 checks passed
@chmeliik chmeliik deleted the no-github-app-image branch September 17, 2024 12:56
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.

3 participants