docs: document DENO_AUDIT_PERMISSIONS=otel#3090
Merged
bartlomieju merged 4 commits intoMay 20, 2026
Merged
Conversation
Updates the Security guide's permission-audit description to cover the new \`otel\` mode, listing the OTel attributes (deno.permission.type / .value / .stack) and a runnable example. Adds a row for DENO_AUDIT_PERMISSIONS to the special-environment-variables table and cross-links to the security page. Refs denoland/deno#32501
The otel sink for DENO_AUDIT_PERMISSIONS shipped in 2.7.5 (deno#32501), not 2.8. Drop the 'Starting in Deno 2.8' / 'Deno 2.8+' qualifiers.
DENO_AUDIT_PERMISSIONS=otel (2.8)DENO_AUDIT_PERMISSIONS=otel
fibibot
requested changes
May 17, 2026
Contributor
fibibot
left a comment
There was a problem hiding this comment.
Thanks for documenting this. Please bump the YAML last_modified date on both changed pages before merge. This PR makes substantive content changes to runtime/fundamentals/security.md and runtime/reference/env_variables.md, but their frontmatter dates remain 2026-03-26 and 2025-12-19 respectively on the 2.8 base. The docs repo convention is to update last_modified for substantive content changes.
- Add a "Permission audit" subsection under the OpenTelemetry Logs section describing the DENO_AUDIT_PERMISSIONS=otel mode and the emitted log record attributes. - Bump last_modified on security.md and env_variables.md as requested in review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Documents the new
DENO_AUDIT_PERMISSIONS=otelmode shipping in Deno 2.8 (denoland/deno#32501). Permission audits can now emit as OpenTelemetry log records via the configured OTel exporter, instead of just JSONL on disk.runtime/fundamentals/security.md. The file-path mode and OTel mode are now described side-by-side, with the OTel attribute names listed (deno.permission.type,deno.permission.value,deno.permission.stack).DENO_AUDIT_PERMISSIONSrow to the Special environment variables table inruntime/reference/env_variables.md.OTEL_DENO=true DENO_AUDIT_PERMISSIONS=otel deno run -A main.tsexample.Test plan
deno task serve— security.md and env_variables.md render, the cross-link from the env-vars table to the security page resolves.