Discussion
Loading...

Post

  • Log in
  • Sign up
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Thib
Thib
@thibaultamartin@mamot.fr  ·  activity timestamp 7 months ago

Getting around to deploying Authentik on my cluster, and I'm a bit surprised by the example values on artifacthub.

Is it common practice in Kubernetes to mount secrets as volumes so you can reference them like that?

https://artifacthub.io/packages/helm/goauthentik/authentik#advanced-values-examples

#homelab #kubernetes #authentik

#authentik #kubernetes #homelab
  • Copy link
  • Flag this post
  • Block
Clayton O'Neill
Clayton O'Neill
@clayton_oneill@mastodon.cloud  ·  activity timestamp 7 months ago

@thibaultamartin FWIW, I setup Authentik in my homelab recently and I went down the rabbit hole of trying to automate app setup using Authentik blueprints and it was awful. Very poor error reporting and they would frequently not apply, or only partially apply. I ended up switching to opentofu for automating apps based on annotations and it's been flawless.

  • Copy link
  • Flag this comment
  • Block
Man aging with style
Man aging with style
@praxiscode@mastodon.online  ·  activity timestamp 7 months ago

If you mount the secret in your pod as a volume, then when the secret gets changed, so will the data presented in the volume. With env vars (and config maps), you must restart the pod to pick up the new values.

@thibaultamartin

  • Copy link
  • Flag this comment
  • Block
Alex
Alex
@o_O@mastodon.nu  ·  activity timestamp 7 months ago

@thibaultamartin that’s what I was taught for my certification, either that or as environment variables depending on your needs. One common use for mounting as volumes would be to install certificates on the host. I think trust-manager kinda works something like that (though I may be wrong, haven’t used it).

  • Copy link
  • Flag this comment
  • Block
Thib
Thib
@thibaultamartin@mamot.fr  ·  activity timestamp 7 months ago

@o_O thanks!

  • Copy link
  • Flag this comment
  • Block
Tim Stoop :kubernetes:
Tim Stoop :kubernetes:
@timstoop@fosstodon.org  ·  activity timestamp 7 months ago

@thibaultamartin
In short, yes. That or env vars.

  • Copy link
  • Flag this comment
  • Block
Thib
Thib
@thibaultamartin@mamot.fr  ·  activity timestamp 7 months ago

@timstoop TIL, thanks!

  • Copy link
  • Flag this comment
  • Block
Tim Stoop :kubernetes:
Tim Stoop :kubernetes:
@timstoop@fosstodon.org  ·  activity timestamp 7 months ago

@thibaultamartin
Let me add to that, I think secret management is not a solved issue on Kubernetes, it's either too simple (like the basic built-in Secrets you get out of the box) or way too complex (SOPS or OpenBoa). Choose wisely.

  • Copy link
  • Flag this comment
  • Block
Instance logo
bonfire.cafe
Log in Create account
Banner for bonfire.cafe

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire bovenjan · 1.0.3-alpha.10 no JS en
Federation disabled
Instance logo
  • Explore
  • About
  • Members
  • Code of Conduct

Install bonfire.cafe

Get the full app experience

1 Tap Share 2 Add to Home Screen