Skip to content

docs: document DENO_AUDIT_PERMISSIONS=otel#3090

Merged
bartlomieju merged 4 commits into
denoland:2.8from
lunadogbot:docs/2.8-otel-permission-audit
May 20, 2026
Merged

docs: document DENO_AUDIT_PERMISSIONS=otel#3090
bartlomieju merged 4 commits into
denoland:2.8from
lunadogbot:docs/2.8-otel-permission-audit

Conversation

@lunadogbot
Copy link
Copy Markdown
Contributor

Summary

Documents the new DENO_AUDIT_PERMISSIONS=otel mode 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.

  • Updates the permission-audit description in 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).
  • Adds a DENO_AUDIT_PERMISSIONS row to the Special environment variables table in runtime/reference/env_variables.md.
  • Includes a OTEL_DENO=true DENO_AUDIT_PERMISSIONS=otel deno run -A main.ts example.

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.

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.
@lunadogbot lunadogbot changed the title docs: document DENO_AUDIT_PERMISSIONS=otel (2.8) docs: document DENO_AUDIT_PERMISSIONS=otel May 2, 2026
@crowlKats crowlKats changed the base branch from main to 2.8 May 5, 2026 11:42
Copy link
Copy Markdown
Contributor

@fibibot fibibot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@bartlomieju bartlomieju merged commit 1e58be1 into denoland:2.8 May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants