How should secrets be protected in AI workflows?
Avoid placing secrets in prompts or logs, use scoped short-lived credentials, restrict file access, redact outputs, and rotate credentials if exposed.
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 385–396 of 3610 questions
Avoid placing secrets in prompts or logs, use scoped short-lived credentials, restrict file access, redact outputs, and rotate credentials if exposed.
An agent with access to sensitive files and network tools might transmit data to an unauthorized destination due to malicious content or mistakes.
Use parameterized queries or safe ORM parameter binding; never interpolate untrusted input into executable SQL text.
It may recommend a malicious or typosquatted package, an unpinned dependency, or an unsafe install script. Verify package identity, provenance, version, and maintenance.
It states required controls such as authentication, authorization, validation, safe error handling, logging hygiene, and tests as acceptance criteria.
Verify password handling, token validation, issuer/audience checks, expiration, key rotation, authorization, rate limiting, and failure behavior against established libraries and s
Follow organizational policy, inspect dependency licenses and source provenance, and use available repository or compliance scanning tools.
A false positive is a reported problem that does not represent a real defect in the relevant context.
A false negative is a real defect that the review fails to identify, so passing AI review cannot establish that a patch is defect-free.
It may log personal data, expose fields in API responses, or send sensitive content to an external service unnecessarily.
Define permitted data, approved tools, review requirements, secret handling, licensing, security gates, and accountability for code merged into production.
Track defects discovered after merge or release relative to delivered changes, comparing similar tasks and controlling for severity and exposure.