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

Feature/add authentication to check images on registries #42

Merged

Conversation

dbalucas
Copy link
Collaborator

@dbalucas dbalucas commented Aug 16, 2023

During the first test we have faced issues with docker registries where you have to provide authentication for.

Therefore different features were added:

  • feature to authenticate against docker hub because it behaves special
  • a logic for most know registries like github.io, quay.io, ...
  • special handling for registries which require authentication, but credentials aren't available (usage of a default/general access-token)

This PR should add this logics and as well include test cases therefore.

@dbalucas dbalucas requested a review from raynigon August 16, 2023 07:37
@dbalucas dbalucas marked this pull request as draft August 16, 2023 07:37
@dbalucas dbalucas changed the title WIP: Feature/add authentication to check images on registries Feature/add authentication to check images on registries Aug 16, 2023
@dbalucas dbalucas marked this pull request as ready for review August 16, 2023 07:46
Copy link
Owner

@raynigon raynigon left a comment

Choose a reason for hiding this comment

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

Please split the encoding into a seperate PR and request review again

.github/scripts/increment_version.py Outdated Show resolved Hide resolved
setup.py Outdated Show resolved Hide resolved
src/lennybot/__init__.py Outdated Show resolved Hide resolved
src/lennybot/actions/download_resources.py Outdated Show resolved Hide resolved
src/lennybot/actions/update_dockerfile.py Outdated Show resolved Hide resolved
src/lennybot/actions/update_image_tag.py Outdated Show resolved Hide resolved
src/lennybot/actions/update_yaml.py Outdated Show resolved Hide resolved
src/lennybot/config/config.py Outdated Show resolved Hide resolved
src/lennybot/model/state.py Outdated Show resolved Hide resolved
version.txt Outdated Show resolved Hide resolved
@raynigon raynigon force-pushed the feature/add-authentication-to-check-images-on-registries branch from 0e91b13 to 534ac72 Compare August 16, 2023 09:02
Copy link
Owner

@raynigon raynigon left a comment

Choose a reason for hiding this comment

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

Please add test case and correct the logic for registries without credentials

src/lennybot/check/docker_image_available.py Outdated Show resolved Hide resolved
src/lennybot/check/docker_image_available.py Outdated Show resolved Hide resolved
src/lennybot/check/docker_image_available.py Outdated Show resolved Hide resolved
src/lennybot/check/docker_image_available.py Outdated Show resolved Hide resolved
dbalucas and others added 5 commits August 16, 2023 11:14
Co-authored-by: Simon Schneider <10846939+raynigon@users.noreply.github.com>
remove blocked registry
improves the handling of urls and parsing
increase readability res -> response
increase readability res -> response
dbalucas

This comment was marked as outdated.

version.txt Outdated Show resolved Hide resolved
versions.state.yaml Outdated Show resolved Hide resolved
@raynigon raynigon force-pushed the feature/add-authentication-to-check-images-on-registries branch from bf3bc5a to a88efbe Compare August 21, 2023 09:51
…s' of https://github.com/raynigon/lennybot into feature/add-authentication-to-check-images-on-registries
@dbalucas dbalucas self-assigned this Aug 21, 2023
@dbalucas dbalucas marked this pull request as ready for review August 23, 2023 12:50
Copy link
Collaborator Author

@dbalucas dbalucas left a comment

Choose a reason for hiding this comment

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

test works fine.
logic is setup.
pyright was introduced.
pylint is 10.0.
black and isort done.

@dbalucas dbalucas requested a review from raynigon August 23, 2023 12:52
Copy link
Owner

@raynigon raynigon left a comment

Choose a reason for hiding this comment

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

LGTM

src/lennybot/check/docker_image_available.py Outdated Show resolved Hide resolved
Co-authored-by: Simon Schneider <10846939+raynigon@users.noreply.github.com>
@dbalucas dbalucas merged commit 064ba6e into main Aug 23, 2023
7 checks passed
@dbalucas dbalucas deleted the feature/add-authentication-to-check-images-on-registries branch August 23, 2023 13:08
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.

2 participants