- vừa được xem lúc

AWS Certified Solutions Architect Professional - Security - Secrets Manager

0 0 30

Người đăng: Quân Huỳnh

Theo Viblo Asia

Introduction

A quick note about AWS Secrets Manager. This post is a short note from the course Ultimate AWS Certified Solutions Architect Professional by Stephane Maarek. The only purpose of this post is a summary, if you want detailed learning, please buy a course by Stephane Maarek.

AWS Secrets Manager

AWS Secrets Manager helps you store and protect your secrets needed to access other applications. The service enables you to easily rotate, manage, and retrieve database credentials, API keys, and other secrets throughout their lifecycle.

Instead of hardcoding credentials in your apps, you can make calls to Secrets Manager to retrieve your credentials whenever needed.

With Secrets Manager, you can manage access to secrets using IAM policies and resource-based policies. For example, you can create a policy that enables developers to retrieve certain secrets only when they are used for the development environment.

Basic scenario

For example, the diagram displays you can store credentials for a database in Secrets Manager, and then the application retrieves those credentials to access the database.

  1. You create a set of credentials for a database.
  2. You store the credentials as a secret in Secrets Manager.
  3. When your application accesses the database, the application queries Secrets Manager for the secret.
  4. Secrets Manager returns the secret to the client app over a secured (HTTPS with TLS) channel.
  5. The client application parses the credentials and then uses the information to access the database server.

Secrets Manager Features

Automatically rotate your secrets

You can configure Secrets Manager to automatically rotate with an AWS Lambda function. This function defines how Secrets Manager performs the following tasks:

  • Creates a new version of the secret.
  • Stores the secret in Secrets Manager.
  • Configures the protected service to use the new version.
  • Verifies the new version.
  • Marks the new version as production ready.

Natively supports RDS

Secrets Manager natively supports the following Amazon RDS:

  • Amazon Aurora on Amazon RDS.
  • MySQL on Amazon RDS.
  • PostgreSQL on Amazon RDS.
  • Oracle on Amazon RDS.
  • MariaDB on Amazon RDS.
  • Microsoft SQL Server on Amazon RDS.

Secrets Manager Quotas

You can store a maximum of 500,000 secrets per Region.

The maximum version of a secret is ~100.

The maximum length of a secret is 65,536 bytes.

The length of a resource-based policy (JSON text) is 20,480 characters.

SSM Parameter Store vs Secrets Manager

Secrets Manager:

  • More cost.
  • Automatic rotation of secrets with AWS Lambda.
  • Lambda function is provided for RDS, Redshift, DocumentDB.
  • KMS encryption is mandatory.

SSM Parameter Store:

  • Less cost.
  • Simple API.
  • No secret rotation (can enable rotation using Lambda triggered by CW Events).
  • KMS encryption is optional.

SSM Parameter Store vs Secrets Manager Rotation

End

End short note about AWS Secrets Manager.

Bình luận

Bài viết tương tự

- vừa được xem lúc

PDF Export, cẩn thận với những input có thể truyền vào

Giới thiệu. Dạo gần đây mình tình cờ gặp rất nhiều lỗi XSS, tuy nhiên trang đó lại có sử dụng dữ liệu người dùng input vào để export ra PDF.

0 0 49

- vừa được xem lúc

Giới thiệu về AWS Batch

Khi sử dụng hệ thống cloud service, điều chúng ta thường phải quan tâm đến không chỉ là hiệu suất hoạt động (performance) mà còn phải chú ý đến cả chi phí bỏ ra để duy trì hoạt động của hệ thống. Chắn hẳn là hệ thống lớn hay nhỏ nào cũng đã từng phải dùng đến những instance chuyên để chạy batch thực

0 0 128

- vừa được xem lúc

Tìm hiểu về AWS KMS

1. AWS KMS là gì. Ở KMS bạn có thể lựa chọn tạo symetric key (khóa đối xứng) hoặc asymetric key (khóa bất đối xứng) để làm CMK (Customer Master Key). Sau khi tạo key thì có thể thiết đặt key policy để control quyền access và sử dụng key.

0 0 53

- vừa được xem lúc

AWS VPC cho người mới bắt đầu

Tuần này, tôi trình bày lại những gì tôi đã học được về Virtual Private Cloud (VPC) của Amazon. Nếu bạn muốn xem những gì tôi đã học được về AWS, hãy xem Tổng quan về DynamoDB và Tổng quan về S3. VPC là gì. Những điều cần lưu ý:.

0 0 69

- vừa được xem lúc

AWS Essentials (Phần 6): Guildline SNS Basic trên AWS

Tiếp tục với chuỗi bài viết về Basic AWS Setting, chúng ta tiếp tục tìm hiểu tiếp tới SNS (Simple Notification Service). Đây là một service của AWS cho phép người dùng setting thực hiện gửi email, text message hay push notification tự động tới mobile device dựa trên event người dùng setting phía AWS

0 0 125

- vừa được xem lúc

Sử dụng Amazon CloudFront Content Delivery Network với Private S3 Bucket — Signing URLs

Trong nhiều trường hợp, thì việc sử dụng CDN là bắt buộc. Mình đã trải nghiệm với một số CDN nhưng cuối cùng mình lựa chọn sử dụng AWS CloudFront.

0 0 105