Git Product home page Git Product logo

azuread-for-argocd-terraform's Introduction

Hi there ๐Ÿ‘‹

I'm Ezequiel, full stack developer and devops engineer

I developed things with...

Docker Kubernetes Terraform Azure Ansible GitLab CI Github Actions Grafana InfluxDB Sentry Windows Servers Linux Servers IIS Nginx Apache Traefik PostgreSQL SQL Server MySQL ASP.NET Core NHibernate EF Core HTML Javascript Angular AngularJS NPM PWA Ionic TWA Cordova Capacitor Bash Powershell Terminal VS Code Visual Studio XCode

Full resume

https://dev.selftaught.com.ar/

How to find me

LinkedIn Twitter GitLab

azuread-for-argocd-terraform's People

Contributors

zeqk avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

gorometala

azuread-for-argocd-terraform's Issues

Add helm release and helm values

First off, this code is a lifesaver! I copied it and after a few trial and errors with getting my URLS correct got it working.

A cool addition would be to add the helm release and hook up all the values ie:

resource "helm_release" "argocd" {
  chart            = "argo-cd"
  repository       = "https://argoproj.github.io/argo-helm"
  name             = "argocd"
  version          = "5.42.1"
  namespace        = "argocd"
  create_namespace = true

  values = [
    templatefile("files/helm/argocd.yaml", {
      HOSTNAME = var.argocd_hostname
      CLIENT_ID = azuread_application.argocd.application_id
      CLIENT_SECRET = azuread_application_password.argocdsso.value
    })
  ]
}

Here's my values file ie files/helm/argocd.yaml

---
# https://github.com/argoproj/argo-helm/blob/main/charts/argo-cd/values.yaml

server:
  # since we terminate ssl at the LB, need to turn off ssl
  extraArgs:
  - --insecure

  ingress:
    enabled: true

    annotations:
      <ommitted>

    hosts:
    - "${HOSTNAME}"

configs:
  cm:
    admin.enabled: false
    url: ${HOSTNAME}
    oidc.config: |
      name: Azure
      issuer: https://login.microsoftonline.com/<hardcoded tenant id, but could probably be terraform pulled down>/v2.0
      clientID: ${CLIENT_ID}
      clientSecret: $oidc.azure.clientSecret
      requestedIDTokenClaims:
          groups:
            essential: true
      requestedScopes:
          - openid
          - profile
          - email
  secret:
    extra:
      oidc.azure.clientSecret: ${CLIENT_SECRET}

One finding I had was that azuread_application_password.argocdsso.value was already base64 encoded, dont use the base64encode function for it.

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.