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

WIP: Add Authentik Terraform Code #16

Open
wants to merge 107 commits into
base: main
Choose a base branch
from
Open

WIP: Add Authentik Terraform Code #16

wants to merge 107 commits into from

Conversation

hh
Copy link
Member

@hh hh commented Apr 25, 2024

Lot's of docs here: https://registry.terraform.io/providers/goauthentik/authentik/latest/docs/resources/flow
We have a working instance over at https://sso.cloudnative.coop

Just needing to automate the creation of the config from cloudnative.coop as terraform to apply to sharing.io

BobyMCbobs and others added 30 commits March 13, 2024 10:18
make new cluster for cloudnative.coop
depend on metal device and bgp session
don't require coder-override to exist
use value from secret for domain
move from main to locals
to ensure verification works correctly
add rolling annotation for config on config changes

Co-Authored-By: Caleb Woodbine <[email protected]>
adds the operator for KubeVirt
remove local ref for remote url
adds a KubeVirt instance using KubeVirt Operator
adds to kustomization in infra
set separately, since some machine plans don't have sda
in order to make it be available for the github webhook
to sync the resources without resource not found errors
hh added 30 commits April 24, 2024 13:20
By default Talos enables dns search if the talos hostname
is an Fully Qualified Domain Name. (fdqn).

In our case, we set our talos node names to ADVERB-ANIMAL.sharing.io

This filters through to the /etc/resolv.conf on the node:

talosctl  read /etc/resolv.conf
nameserver 147.75.207.207
nameserver 147.75.207.208
search sharing.io

Due to this, kubernetes schedules pods that have the following:

pod$ cat /etc/resolv.conf
search kube-system.svc.cluster.local svc.cluster.local cluster.local sharing.io
nameserver 10.96.0.10
options ndots:5

This means that a search is performed for every name, including simple
ones like github.com

pod$ host github.com
github.aaakk.us.kg.sharing.io has address 139.178.88.70

Notice the appending .sharing.io?

This commit removes the search line from Talos nodes /etc/resolv.conf, and this trickles down
to Kubernetes.
Previously we hardcoded the version, now we drive it
from config.tfvars through to the authentik-kustomization
configmap deployed in the manifests.
Too many v's:

Failed to pull image "ghcr.io/coder/coder:vv2.10.2"
Mainly so we can review the config with Authentik
The way we create and save users manually is different than the way we
create them via github.  I didn't realize this.

This commit adds all the fields necessary to click on "Sign Up"
Most of the configuration for cilium is within the helm chart.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants