Permissions - Deno documentation

Classes

c
Deno.Permissions

Deno's permission management API.

c
Deno.PermissionStatus

An EventTarget returned from the Deno.permissions API which can provide updates to any state changes of the permission.

Interfaces

I
Deno.EnvPermissionDescriptor

The permission descriptor for the allow-env and deny-env permissions, which controls access to being able to read and write to the process environment variables as well as access other information about the environment. The option variable allows scoping the permission to a specific environment variable.

I
Deno.FfiPermissionDescriptor

The permission descriptor for the allow-ffi and deny-ffi permissions, which controls access to loading foreign code and interfacing with it via the Foreign Function Interface API available in Deno. The option path allows scoping the permission to a specific path on the host.

I
Deno.HrtimePermissionDescriptor

The permission descriptor for the allow-hrtime and deny-hrtime permissions, which controls if the runtime code has access to high resolution time. High resolution time is considered sensitive information, because it can be used by malicious code to gain information about the host that it might not otherwise have access to.

I
Deno.NetPermissionDescriptor

The permission descriptor for the allow-net and deny-net permissions, which controls access to opening network ports and connecting to remote hosts via the network. The option host allows scoping the permission for outbound connection to a specific host and port.

I
Deno.PermissionOptionsObject

A set of options which can define the permissions within a test or worker context at a highly specific level.

I
Deno.PermissionStatusEventMap

The interface which defines what event types are supported by PermissionStatus instances.

I
Deno.ReadPermissionDescriptor

The permission descriptor for the allow-read and deny-read permissions, which controls access to reading resources from the local host. The option path allows scoping the permission to a specific path (and if the path is a directory any sub paths).

I
Deno.RunPermissionDescriptor

The permission descriptor for the allow-run and deny-run permissions, which controls access to what sub-processes can be executed by Deno. The option command allows scoping the permission to a specific executable.

I
Deno.SysPermissionDescriptor

The permission descriptor for the allow-sys and deny-sys permissions, which controls access to sensitive host system information, which malicious code might attempt to exploit. The option kind allows scoping the permission to a specific piece of information.

I
Deno.WritePermissionDescriptor

The permission descriptor for the allow-write and deny-write permissions, which controls access to writing to resources from the local host. The option path allow scoping the permission to a specific path (and if the path is a directory any sub paths).

Type Aliases

T
Deno.PermissionDescriptor

Permission descriptors which define a permission and can be queried, requested, or revoked.

T
Deno.PermissionName

The name of a privileged feature which needs permission.

T
Deno.PermissionOptions

Options which define the permissions within a test or worker context.

T
Deno.PermissionState

The current status of the permission:

Variables

v
Deno.permissions

Deno's permission management API.