Interview Prep/GitHub Actions/Secrets, OIDC & Environments

A team stores a 200 KB kubeconfig and certificates as secrets and hits the size limit. What do you recommend?

IntermediateScenarioSecrets, OIDC & Environments
Answer

Situation read → 48 KB secret limit, and static cluster credentials are a smell.

What I'd do →

  1. For EKS: OIDC to AWS and aws eks update-kubeconfig; for AKS and GKE: the equivalent OIDC login and get-credentials.
  2. For unavoidable files, store them in a secret manager and fetch at runtime, or encrypt the file in repo with gpg --symmetric and keep only the passphrase as a secret.

Why → Dynamic credentials remove both the size problem and the rotation problem.

Interview tip → Mention the 48 KB limit and the encrypted-file workaround from GitHub docs.

All GitHub Actions questions Roadmap: GitHub Actions

More on Secrets, OIDC & Environments