Explain it simpler
Apps need passwords too, for example to talk to a database. Writing those passwords directly into the app's code is like taping your house key to the front door: anyone who sees the code sees the password, and changing it means hunting down every copy. AWS gives you two locked boxes to keep them in. AWS Secrets Manager stores secrets and can change them on a schedule for you, a bit like a building that changes its door code every month and tells only the right people. AWS Systems Manager Parameter Store keeps settings and simple secrets organized in folders, at no extra cost for basic use. Your app asks the box for the value when it needs it.
Friday afternoon at Cedar Lane Credit, a developer named Felix makes a repository public so a partner can read the documentation. Ten minutes later a scanner bot has found what the repository also contained: the production database password, sitting in a configuration file since the project began. The password has never been changed because nobody knows which servers would break. Now you have to change it everywhere, today, and make sure it never lives in code again. What should hold that password instead?
Applications need secrets: database passwords, API keys for third-party services, tokens and certificates. The worst place to keep them is in source code or in plain text configuration files on a server, where they get copied into code repositories, backups, container images and logs, and are hard to change once leaked. AWS offers two services for storing such values centrally and retrieving them at runtime with access controlled by AWS Identity and Access Management (IAM): AWS Secrets Manager and AWS Systems Manager Parameter Store. Both services follow the same idea: the secret lives in one protected place, and code asks for it at runtime instead of carrying a copy around.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 7 more sections, 6 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.