{"slug":"secrets-management","group":"security","title":"Secrets management","short":"Passwords, keys and tokens outside the code: environment variables, secret managers, rotation and leaks.","icon":"vault","aliases":["sekrety","secrets","Vault","AWS Secrets Manager",".env","klucze API"],"order":953,"status":"available","articleCount":4,"groupTitle":"Cybersecurity","intro":"","servedLang":"en","primaryArticle":{"id":"6b09a4bfff996234422a2742","slug":"secrets-management","title":"Secrets management in practice – environment variables, AWS Secrets Manager and Parameter Store, Vault, rotation, Git leaks and CI/CD","summary":"A .env.production file in a public repository for 20 minutes was enough for someone to start crypto miners in the pierogi shop's AWS account. We build proper secrets management – what counts as a secret, where environment variables stop being enough, AWS Secrets Manager vs Parameter Store, cached and rotation-aware reads in Node.js, CDK with database password rotation, dynamic secrets in Vault, gitleaks in pre-commit and CI, and OIDC instead of keys in the pipeline.","servedLang":"en","availableLangs":["pl","en"],"topics":["secrets-management","aws-iam","secure-sdlc"],"techs":["node","typescript"],"tags":["secrets","aws-secrets-manager","ssm-parameter-store","vault","openbao","rotation","gitleaks","push-protection","github-actions","oidc","environment-variables","aws-cdk"],"level":"intermediate","kind":"tutorial","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":15,"stats":{"views":1,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T15:41:51.018Z","updatedAt":"2026-11-27T17:31:25.333Z","challengeCount":0,"quizCount":0},"articles":[{"id":"6b09aa7f5a5e2dbc3f20a485","slug":"kubernetes-production","title":"Kubernetes in production – Helm, namespaces and RBAC, NetworkPolicy, PDB, autoscaling, observability and GitOps","summary":"A cluster that works in a demo and a cluster you can trust with Friday-night sales are separated by a dozen decisions. We package the dumpling-shop API as a Helm chart, isolate teams with namespaces, quotas and RBAC, lock down traffic with network policies, protect availability with a disruption budget, scale pods (HPA, KEDA) and nodes, measure what users feel, and deploy through GitOps with Argo CD. Finally, a checklist and ways to lower the bill.","servedLang":"en","availableLangs":["pl","en"],"topics":["kubernetes","secrets-management","microservices"],"techs":["general"],"tags":["kubernetes","helm","rbac","network-policy","pod-disruption-budget","hpa","keda","karpenter","prometheus","grafana","argo-cd","gitops","finops"],"level":"advanced","kind":"tutorial","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":18,"stats":{"views":2,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T16:06:23.598Z","updatedAt":"2026-11-27T17:28:35.669Z","relation":{"position":1,"primary":false,"mainTopic":{"slug":"kubernetes","title":"Kubernetes"}}},{"id":"6b09a4b2ff996234422a2674","slug":"aws-iam-least-privilege","title":"IAM and least privilege on AWS – roles, policies, conditions, SCPs/RCPs, Access Analyzer and OIDC for GitHub Actions","summary":"We clean up permissions in the pierogi shop's AWS account – from \"everyone has AdministratorAccess\" to least privilege. Identities and roles instead of users, policy evaluation logic, ECS task and Lambda roles in CDK, condition keys, permissions boundaries and ABAC, organization guardrails (SCPs and RCPs), IAM Access Analyzer as a CI gate, and deployments from GitHub Actions through OIDC – with no long-lived keys.","servedLang":"en","availableLangs":["pl","en"],"topics":["aws-iam","secrets-management","aws-s3"],"techs":["typescript","node"],"tags":["aws","iam","least-privilege","scp","rcp","permissions-boundary","abac","access-analyzer","oidc","github-actions","ecs","lambda","aws-cdk"],"level":"intermediate","kind":"tutorial","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":17,"stats":{"views":0,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T15:41:38.622Z","updatedAt":"2026-11-27T15:41:38.674Z","relation":{"position":1,"primary":false,"mainTopic":{"slug":"aws-iam","title":"AWS IAM"}}},{"id":"6b09a4b5ff996234422a26a4","slug":"devsecops-pipeline","title":"A DevSecOps pipeline in GitHub Actions – threat modeling, SAST (Semgrep, CodeQL), SCA (npm audit, OSV), CycloneDX SBOMs, Trivy, DAST and dependency updates","summary":"We build a GitHub Actions pipeline that checks the pierogi store's security on every pull request – secrets (gitleaks), static analysis (Semgrep with custom rules, CodeQL), dependencies (npm audit, signatures, dependency review), a CycloneDX SBOM, image and IaC scanning (Trivy), DAST (ZAP) on staging and safe updates (Renovate, Dependabot with a cooldown). Plus threat modeling during planning and triage rules, so the scanners help rather than get in the way.","servedLang":"en","availableLangs":["pl","en"],"topics":["secure-sdlc","web-security","secrets-management"],"techs":["node","typescript"],"tags":["devsecops","github-actions","sast","semgrep","codeql","sca","npm-audit","osv-scanner","sbom","cyclonedx","trivy","dast","zap","renovate","dependabot","threat-modeling","supply-chain"],"level":"intermediate","kind":"tutorial","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":14,"stats":{"views":1,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T15:41:41.204Z","updatedAt":"2026-11-27T17:31:13.321Z","relation":{"position":2,"primary":false,"mainTopic":{"slug":"secure-sdlc","title":"DevSecOps & secure SDLC"}}}],"challenges":[],"resources":[{"id":"6b0857be3c96f2d34d0b4224","type":"article","provider":"web","url":"https://12factor.net/","embedUrl":null,"title":"The Twelve-Factor App","description":"A methodology for building modern, scalable, maintainable software-as-a-service apps.","author":"The Twelve-Factor App","thumbnailUrl":null,"durationSec":null,"lang":"en","topics":["microservices"],"techs":["general"],"tags":["system-design","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":75,"verifiedAt":"2026-11-26T11:26:15.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:59.965Z","updatedAt":"2026-11-26T16:00:59.965Z"},{"id":"6b0857bd3c96f2d34d0b40c4","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/us/podcast/episode-99-shhh-its-a-secret-storing-api-keys/id467641329?i=1000701187746","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id467641329?i=1000701187746","title":"Episode 99. SHHH! It’s a secret! (Storing API Keys / Passwords / tokens!)","description":"Ok, so is time to talk about something secretive! Like API Passwords, Auth tokens, or keys... these are things that we want to have as a Secret within our microservice. And yeah, adding them into your source code is a big no-no Here we cover the dos...","author":"Java Pub House","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts221/v4/ca/24/a7/ca24a7a6-e926-cc14-223a-444cf4127b70/mza_6810655170352985611.png/600x600bb.jpg","durationSec":null,"lang":"en","topics":["microservices"],"techs":["java"],"tags":["podcast","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"itunes","publishedAt":"2022-01-02T05:19:57.000Z","popularity":40,"verifiedAt":"2026-11-26T11:04:06.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:59.965Z","updatedAt":"2026-11-26T16:00:59.965Z"},{"id":"6b0857bb3c96f2d34d0b3fa6","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/us/podcast/he-who-controls-the-source/id1783181295?i=1000768001964","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id1783181295?i=1000768001964","title":"He Who Controls the Source","description":"This week we've got Kris and Jamie! They open with the Shai-Hulud worm chewing through the npm supply chain and close on the messy economics of who actually pays for open source labor. And there's plenty of great stuff in between: GitHub's everything-platform creep, the case for LLMs as a way out…","author":"Fallthrough","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts221/v4/0e/ce/32/0ece3249-7956-6641-2265-8c847be12e9d/mza_3129694515384490059.jpg/600x600bb.jpg","durationSec":5148,"lang":"en","topics":[],"techs":["node","go"],"tags":["podcast","llm","ai"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"itunes","publishedAt":"2026-05-16T12:00:00.000Z","popularity":48,"verifiedAt":"2026-11-26T11:06:53.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:57.868Z","updatedAt":"2026-11-26T16:00:57.868Z"},{"id":"6b0857bd3c96f2d34d0b41b0","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/pl/podcast/42-the-twelve-factor-app/id1372300262?i=1000498960467","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id1372300262?i=1000498960467","title":"#42 The Twelve-Factor App","description":"Z chmury wielu z nas programistów korzysta na co dzień. Wdrażamy swoje aplikacje w ramach mikroserwisów, w środowiska skonteneryzowanych. Jest kilka zasad, które musimy przestrzegać aby było to możliwe. Czasem podążamy za wytycznymi z dokumentacji danego rozwiązania. Natomiast istnieje metodologia…","author":"DevEnv - O programowaniu bez kaca","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts126/v4/fe/c3/7f/fec37f06-e060-6d46-6156-1b7e17401ad3/mza_17591795598137606579.jpg/600x600bb.jpg","durationSec":1548,"lang":"pl","topics":["microservices"],"techs":["general"],"tags":["podcast","cloud","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"itunes","publishedAt":"2020-03-25T22:50:44.000Z","popularity":25,"verifiedAt":"2026-11-26T11:08:06.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:59.965Z","updatedAt":"2026-11-26T16:00:59.965Z"},{"id":"6b0857c73c96f2d34d0b49d4","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=VcG_hdwF7q8","embedUrl":"https://www.youtube-nocookie.com/embed/VcG_hdwF7q8","title":"Ditch User Secrets: Use Secrets Store in Development","description":"Learn why API keys never belong on a development machine and how to load them from a secrets store through the standard .NET configuration system. Support me on Patreon ► https://www.patreon.com/zoranhorvat You can also learn much more from these wonderful resources: 𝘾𝙤𝙣𝙩𝙞𝙣𝙪𝙤𝙪𝙨…","author":"Zoran on C#","thumbnailUrl":"https://i.ytimg.com/vi/VcG_hdwF7q8/hqdefault.jpg","durationSec":null,"lang":"en","topics":[],"techs":["dotnet"],"tags":[],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"youtube-rss","publishedAt":"2026-08-11T06:27:22.000Z","popularity":60,"verifiedAt":"2026-11-26T10:54:25.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:10.095Z","updatedAt":"2026-11-26T16:01:10.095Z"},{"id":"6b0857bc3c96f2d34d0b4063","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/us/podcast/139-claude-codes-secrets-are-out/id1700169000?i=1000759515880","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id1700169000?i=1000759515880","title":"139: Claude Code’s Secrets Are Out","description":"This week, Anthropic accidentally leaked Claude Code’s source code to the world when it published a source map inside an npm release. While the offending file was quickly removed, the code was out there and folks got to work speculating about what’s next for Claude Code. Always running background…","author":"Front-End Fire","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts221/v4/8c/fb/fd/8cfbfdfe-aa7c-9bf7-7539-e165832595b1/mza_11977879437405956906.jpg/600x600bb.jpg","durationSec":2189,"lang":"en","topics":["ai-coding-assistants","ai-in-node"],"techs":["node","javascript"],"tags":["podcast","ai"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"itunes","publishedAt":"2026-04-06T10:00:00.000Z","popularity":43,"verifiedAt":"2026-11-26T11:06:11.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:59.965Z","updatedAt":"2026-11-26T16:00:59.965Z"}],"resourceGroups":[{"type":"video","items":[{"id":"6b0857c73c96f2d34d0b49d4","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=VcG_hdwF7q8","embedUrl":"https://www.youtube-nocookie.com/embed/VcG_hdwF7q8","title":"Ditch User Secrets: Use Secrets Store in Development","description":"Learn why API keys never belong on a development machine and how to load them from a secrets store through the standard .NET configuration system. Support me on Patreon ► https://www.patreon.com/zoranhorvat You can also learn much more from these wonderful resources: 𝘾𝙤𝙣𝙩𝙞𝙣𝙪𝙤𝙪𝙨…","author":"Zoran on C#","thumbnailUrl":"https://i.ytimg.com/vi/VcG_hdwF7q8/hqdefault.jpg","durationSec":null,"lang":"en","topics":[],"techs":["dotnet"],"tags":[],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"youtube-rss","publishedAt":"2026-08-11T06:27:22.000Z","popularity":60,"verifiedAt":"2026-11-26T10:54:25.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:10.095Z","updatedAt":"2026-11-26T16:01:10.095Z"}]},{"type":"podcast","items":[{"id":"6b0857bd3c96f2d34d0b40c4","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/us/podcast/episode-99-shhh-its-a-secret-storing-api-keys/id467641329?i=1000701187746","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id467641329?i=1000701187746","title":"Episode 99. SHHH! It’s a secret! (Storing API Keys / Passwords / tokens!)","description":"Ok, so is time to talk about something secretive! Like API Passwords, Auth tokens, or keys... these are things that we want to have as a Secret within our microservice. And yeah, adding them into your source code is a big no-no Here we cover the dos...","author":"Java Pub House","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts221/v4/ca/24/a7/ca24a7a6-e926-cc14-223a-444cf4127b70/mza_6810655170352985611.png/600x600bb.jpg","durationSec":null,"lang":"en","topics":["microservices"],"techs":["java"],"tags":["podcast","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"itunes","publishedAt":"2022-01-02T05:19:57.000Z","popularity":40,"verifiedAt":"2026-11-26T11:04:06.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:59.965Z","updatedAt":"2026-11-26T16:00:59.965Z"},{"id":"6b0857bb3c96f2d34d0b3fa6","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/us/podcast/he-who-controls-the-source/id1783181295?i=1000768001964","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id1783181295?i=1000768001964","title":"He Who Controls the Source","description":"This week we've got Kris and Jamie! They open with the Shai-Hulud worm chewing through the npm supply chain and close on the messy economics of who actually pays for open source labor. And there's plenty of great stuff in between: GitHub's everything-platform creep, the case for LLMs as a way out…","author":"Fallthrough","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts221/v4/0e/ce/32/0ece3249-7956-6641-2265-8c847be12e9d/mza_3129694515384490059.jpg/600x600bb.jpg","durationSec":5148,"lang":"en","topics":[],"techs":["node","go"],"tags":["podcast","llm","ai"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"itunes","publishedAt":"2026-05-16T12:00:00.000Z","popularity":48,"verifiedAt":"2026-11-26T11:06:53.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:57.868Z","updatedAt":"2026-11-26T16:00:57.868Z"},{"id":"6b0857bd3c96f2d34d0b41b0","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/pl/podcast/42-the-twelve-factor-app/id1372300262?i=1000498960467","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id1372300262?i=1000498960467","title":"#42 The Twelve-Factor App","description":"Z chmury wielu z nas programistów korzysta na co dzień. Wdrażamy swoje aplikacje w ramach mikroserwisów, w środowiska skonteneryzowanych. Jest kilka zasad, które musimy przestrzegać aby było to możliwe. Czasem podążamy za wytycznymi z dokumentacji danego rozwiązania. Natomiast istnieje metodologia…","author":"DevEnv - O programowaniu bez kaca","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts126/v4/fe/c3/7f/fec37f06-e060-6d46-6156-1b7e17401ad3/mza_17591795598137606579.jpg/600x600bb.jpg","durationSec":1548,"lang":"pl","topics":["microservices"],"techs":["general"],"tags":["podcast","cloud","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"itunes","publishedAt":"2020-03-25T22:50:44.000Z","popularity":25,"verifiedAt":"2026-11-26T11:08:06.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:59.965Z","updatedAt":"2026-11-26T16:00:59.965Z"},{"id":"6b0857bc3c96f2d34d0b4063","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/us/podcast/139-claude-codes-secrets-are-out/id1700169000?i=1000759515880","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id1700169000?i=1000759515880","title":"139: Claude Code’s Secrets Are Out","description":"This week, Anthropic accidentally leaked Claude Code’s source code to the world when it published a source map inside an npm release. While the offending file was quickly removed, the code was out there and folks got to work speculating about what’s next for Claude Code. Always running background…","author":"Front-End Fire","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts221/v4/8c/fb/fd/8cfbfdfe-aa7c-9bf7-7539-e165832595b1/mza_11977879437405956906.jpg/600x600bb.jpg","durationSec":2189,"lang":"en","topics":["ai-coding-assistants","ai-in-node"],"techs":["node","javascript"],"tags":["podcast","ai"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"itunes","publishedAt":"2026-04-06T10:00:00.000Z","popularity":43,"verifiedAt":"2026-11-26T11:06:11.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:59.965Z","updatedAt":"2026-11-26T16:00:59.965Z"}]},{"type":"article","items":[{"id":"6b0857be3c96f2d34d0b4224","type":"article","provider":"web","url":"https://12factor.net/","embedUrl":null,"title":"The Twelve-Factor App","description":"A methodology for building modern, scalable, maintainable software-as-a-service apps.","author":"The Twelve-Factor App","thumbnailUrl":null,"durationSec":null,"lang":"en","topics":["microservices"],"techs":["general"],"tags":["system-design","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":75,"verifiedAt":"2026-11-26T11:26:15.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:59.965Z","updatedAt":"2026-11-26T16:00:59.965Z"}]}],"siblings":[{"slug":"web-security","title":"Web application security","icon":"shield-alert","status":"available","current":false},{"slug":"api-security","title":"API security","icon":"lock-keyhole","status":"available","current":false},{"slug":"secrets-management","title":"Secrets management","icon":"vault","status":"available","current":true},{"slug":"secure-sdlc","title":"DevSecOps & secure SDLC","icon":"shield-ellipsis","status":"available","current":false}]}