Giter Site home page Giter Site logo

ArgoCD authentication about kubechecks HOT 4 CLOSED

bauerjs1 avatar bauerjs1 commented on July 28, 2024
ArgoCD authentication

from kubechecks.

Comments (4)

morey-tech avatar morey-tech commented on July 28, 2024 1

The way you reference is for generating a (short-lived) session token. It's probably preferred to create a dedicated local user in Argo CD and generate an API token for it (which will be long-lived) for uses in automation tool likes kubechecks.

For example:
Create a user named kubechecks in argocd-cm.

apiVersion: v1
kind: ConfigMap
metadata:
  name: argocd-cm
  namespace: argocd
  labels:
    app.kubernetes.io/name: argocd-cm
    app.kubernetes.io/part-of: argocd
data:
  accounts.kubechecks: apiKey
  accounts.kubechecks.enabled: "true"

Then generate a token for it (log into the CLI with the admin user):

argocd account generate-token --account kubechecks

This may be a good example to include in the docs.

from kubechecks.

bauerjs1 avatar bauerjs1 commented on July 28, 2024 1

Oh, so the point I was missing is that there exist session tokens and API tokens, each with their different purposes and lifetimes.

Thank you for the detailed explanation @morey-tech!

from kubechecks.

bauerjs1 avatar bauerjs1 commented on July 28, 2024

I see! What is it that makes the difference? The dedicated user, or the token generation via CLI?

from kubechecks.

morey-tech avatar morey-tech commented on July 28, 2024

What is it that makes the difference? The dedicated user, or the token generation via CLI?

The API token instead of a session token is the main difference. Instead of creating a session token (using /api/v1/session) it creates a long-lived token (using /api/v1/account/{name}/token).

The use of a dedicated user is more of a best practice.

from kubechecks.

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.