A user includes an API key in text for summarization.
Prevent storage and display.
Choose two controls.
Inspect and mask secrets in input and output, and keep authentication in a secret manager with short-lived least-privilege credentials.
Detailed explanation
Exposure paths are reduced.
Exposure paths are reduced.
Authentication is separate from prompts.
Authentication is separate from prompts.
It is not a secret manager.
It is not a secret manager.
Exposure expands.
Exposure expands.
Try it yourself
An example you can run in a temporary verification environment.
AWS公式AIF-C01 Domain 5.2のシークレット、認証、ログ保護を確認する。Expected result
プロンプトを秘密情報の保管場所にせず、認証経路を分離できる。Key points
- Secret
- Masking
- Short-lived credential
Notes
- Environment: AWS公式AIF-C01試験ガイドとAWS公式ドキュメントの確認
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.