GithubHelp home page GithubHelp logo

secrets are not found about keel HOT 9 CLOSED

keel-hq avatar keel-hq commented on August 27, 2024
secrets are not found

from keel.

Comments (9)

alexandersperling avatar alexandersperling commented on August 27, 2024 1

Hi, alright when I provide a secret like you describe with the credentials of our robot accounts it can authenticate and updates the container. I can give you the layout of the secret.yaml that I received from quay.io if that would help.

apiVersion: v1
kind: Secret
metadata:
  name: pull-secret
data:
  .dockerconfigjson:"I assume here comes the encoded auth token"==
type: kubernetes.io/dockerconfigjson

from keel.

jeffrichie avatar jeffrichie commented on August 27, 2024 1

Also, @alexanderreinelt 's example is a bit wrong. The "I assume here comes the encoded auth token" part is actually base64 that decodes to:

{
  "auths": {
    "quay.io": {
      "auth": "<TOKEN HERE>",
      "email": ""
    }
  }

from keel.

rusenask avatar rusenask commented on August 27, 2024 1

should be fixed with #107

from keel.

rusenask avatar rusenask commented on August 27, 2024

Hey, can you check whether you have app and release labels in your chart template? https://github.com/webhookrelay/webhook-demo/blob/master/webhookdemo/templates/deployment.yaml#L5-L8

from keel.

htplbc avatar htplbc commented on August 27, 2024

Having same issue using Artifactory as a private repo. Verified that app and release are in the chart template.

from keel.

alexandersperling avatar alexandersperling commented on August 27, 2024

Yes I have the app and release labels in my deployment template.
release is set to {{ .Release.Name }} and for app I use a hard coded value but I think that should not matter, right?

from keel.

alexandersperling avatar alexandersperling commented on August 27, 2024

okay, I experimented a little bit and now facing the problem that the secret is found but ignored because of the following message

level=warning msg="secrets.defaultGetter: supplied secret is not kubernetes.io/dockercfg, ignoring  
[...] type=kubernetes.io/dockerconfigjson

so it seems that this type of secret is not supported, but thats the secret I got from quay.io for pulling those images and in the deployment it's working.

from keel.

rusenask avatar rusenask commented on August 27, 2024

ahh yes, there are several different types of secrets, current implementation works with default one from k8s docs:
kubectl create secret docker-registry myregistrykey --docker-server=https://index.docker.io/v1/ --docker-username=yourUsername --docker-password=yourPassword [email protected]

you can have a look at https://github.com/rusenask/keel/blob/master/secrets/secrets.go#L120-L140, I think it would be great to support more secret options. If you add more info on how your secret is formed - I could implement it after I am finished with approvals branch.

from keel.

jeffrichie avatar jeffrichie commented on August 27, 2024

+1 for supporting Quay's robot tokens.

from keel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.