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

research how to auth. with private docker repos #54

Open
hydrogen18 opened this issue Jun 30, 2021 · 4 comments
Open

research how to auth. with private docker repos #54

hydrogen18 opened this issue Jun 30, 2021 · 4 comments
Labels
repo/provider Akash provider-services repo issues

Comments

@hydrogen18
Copy link

The current SDL has us passing in a docker container URL to kubernetes. Kubernetes pulls it down. We should be able to add support for the SDL including some sort of token or username & password & have the provider pass that to kubernetes so it can pull down the container image from a private repo.

We need to find out how private docker repos work & support whatever auth method is used by the most popular implementations. This issue is just to figure out how that works & how to pass the data to kubernetes, implementation can be another issue

@troian
Copy link
Member

troian commented Sep 30, 2021

we should be able to do it now with service.params section introduced in akash-network/node#1348

@hydrogen18
Copy link
Author

@boz was this added by @arijitAD ? I can't remember.

@boz
Copy link

boz commented May 3, 2022

it was added for providers but not for tenants via sdl

@troian troian transferred this issue from akash-network/node Feb 17, 2023
@troian troian added the repo/provider Akash provider-services repo issues label Feb 17, 2023
@andy108369
Copy link
Contributor

We need to find out how private docker repos work & support whatever auth method is used by the most popular implementations. This issue is just to figure out how that works & how to pass the data to kubernetes, implementation can be another issue

We are currently adding the GH tokens to the service account of the deployment for accessing the private GHCR repo:

# assuming AKASH_DSEQ, AKASH_OSEQ, AKASH_GSEQ are set
ns=$(provider-services show-cluster-ns --provider akash15tl6v6gd0nte0syyxnv57zmmspgju4c3xfmdhk)

# add docker-registry token so the image can be pulled off of the private registry
read -s CR_PAT

kubectl -n $ns create secret docker-registry akash-ghcr-secret \
  --docker-server=ghcr.io \
  --docker-username=ghcr-ro \
  --docker-password=$CR_PAT \
  --docker-email=<email-address>

kubectl -n $ns patch serviceaccount default -p '{"imagePullSecrets": [{"name": "akash-ghcr-secret"}]}'
kubectl -n $ns rollout restart deployment
kubectl -n $ns get pods -o wide

boz added a commit to akash-network/provider that referenced this issue Mar 7, 2024
boz added a commit to akash-network/akash-api that referenced this issue Mar 7, 2024
boz added a commit to akash-network/node that referenced this issue Mar 7, 2024
boz added a commit to akash-network/node that referenced this issue Mar 7, 2024
boz added a commit to akash-network/provider that referenced this issue Mar 7, 2024
boz added a commit to akash-network/node that referenced this issue Mar 7, 2024
boz added a commit to akash-network/provider that referenced this issue Mar 7, 2024
boz added a commit to akash-network/akash-api that referenced this issue Mar 8, 2024
boz added a commit to akash-network/provider that referenced this issue Apr 11, 2024
boz added a commit to akash-network/akash-api that referenced this issue Apr 11, 2024
boz added a commit to akash-network/node that referenced this issue Apr 11, 2024
troian pushed a commit to akash-network/akash-api that referenced this issue Apr 12, 2024
boz added a commit to akash-network/node that referenced this issue Apr 12, 2024
boz added a commit to akash-network/node that referenced this issue Apr 13, 2024
boz added a commit to akash-network/provider that referenced this issue Apr 13, 2024
boz added a commit to akash-network/provider that referenced this issue Apr 13, 2024
boz added a commit to akash-network/node that referenced this issue Apr 23, 2024
boz added a commit to akash-network/provider that referenced this issue Apr 23, 2024
boz added a commit to akash-network/provider that referenced this issue Apr 23, 2024
troian pushed a commit to akash-network/node that referenced this issue Apr 23, 2024
troian added a commit to akash-network/provider that referenced this issue Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
repo/provider Akash provider-services repo issues
Projects
None yet
Development

No branches or pull requests

4 participants