Skip to content

docs: document DENO_AUDIT_PERMISSIONS=otel (2.8)#3090

Open
lunadogbot wants to merge 1 commit intodenoland:mainfrom
lunadogbot:docs/2.8-otel-permission-audit
Open

docs: document DENO_AUDIT_PERMISSIONS=otel (2.8)#3090
lunadogbot wants to merge 1 commit intodenoland:mainfrom
lunadogbot:docs/2.8-otel-permission-audit

Conversation

@lunadogbot
Copy link
Copy Markdown

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
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.

1 participant