I'm Ezequiel, full stack developer and devops engineer
zeqk / azuread-for-argocd-terraform Goto Github PK
View Code? Open in Web Editor NEWConfigure Azure Active Directory for ArgoCD OIDC Integration with Terraform
Configure Azure Active Directory for ArgoCD OIDC Integration with Terraform
I'm Ezequiel, full stack developer and devops engineer
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.