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

Support dynamic registry tokens, add wrapper for working with registry microservice #1637

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

manics
Copy link
Member

@manics manics commented Feb 21, 2023

This is a companion for jupyterhub/repo2docker#1245 that allows dynamic credentials t be used for pushing to a registry. This is required for e.g. ECR where the token used to login to the reigistry expires.

This also implements the non-vendor specific parts of
#1623

Closes #705

You can see an example implementation of the microservice side in
https://github.com/manics/binderhub-container-registry-helper
This is working with AWS ECR using an IRSA role for the microservice.

It's written in Go as I wanted to learn it, but if we choose to pursue this rewriting it in Python (or Javascript, or any other language) shouldn't be too difficult.

@manics manics changed the title For discussion: Support dynamic registry tokens, add wrapper for working with registry microservice WIP: Support dynamic registry tokens, add wrapper for working with registry microservice Feb 21, 2023
@manics manics force-pushed the registry-dynamic-token branch from 3fbfe6b to b3682df Compare February 21, 2023 00:32
@manics manics mentioned this pull request May 3, 2023
5 tasks
@manics manics force-pushed the registry-dynamic-token branch 2 times, most recently from 06f105e to c38e5f3 Compare December 15, 2023 21:37
@manics manics force-pushed the registry-dynamic-token branch 2 times, most recently from 0b1eba8 to 53fe226 Compare March 6, 2024 22:18
@manics manics marked this pull request as ready for review March 12, 2024 23:42
@manics manics force-pushed the registry-dynamic-token branch from 53fe226 to b92fdfb Compare May 9, 2024 18:41
@manics manics closed this Jul 21, 2024
@manics manics reopened this Jul 21, 2024
@manics manics requested a review from yuvipanda July 21, 2024 08:15
@manics manics changed the title WIP: Support dynamic registry tokens, add wrapper for working with registry microservice Support dynamic registry tokens, add wrapper for working with registry microservice Jul 21, 2024
@manics
Copy link
Member Author

manics commented Sep 19, 2024

Anyone else have thoughts on this? @stevejpurves is interested in using it.

@manics
Copy link
Member Author

manics commented Dec 21, 2024

@yuvipanda do you have any thoughts on this?

@manics manics closed this Jan 7, 2025
@manics manics reopened this Jan 7, 2025
@manics
Copy link
Member Author

manics commented Jan 14, 2025

This has been ready for 6 months, and it's effectively been in production (though being overriden in https://github.com/jupyterhub/mybinder.org-deploy/blob/b9439b5b15263ff703ea46c07bfd6c4584d1422c/config/curvenote.yaml#L59-L148) so merging!

@manics manics merged commit 41a95ee into jupyterhub:main Jan 14, 2025
32 checks passed
consideRatio pushed a commit to jupyterhub/helm-chart that referenced this pull request Jan 14, 2025
jupyterhub/binderhub#1637 Merge pull request #1637 from manics/registry-dynamic-token
@yuvipanda
Copy link
Collaborator

Sorry for dropping this @manics! Happy for you to have merged this!

@manics manics deleted the registry-dynamic-token branch January 14, 2025 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AWS ECR registry for BinderHub deployment
2 participants