Table: datadog_permission - Query Datadog Permissions using SQL
Datadog is a monitoring and analytics platform that allows you to see inside any stack, any app, at any scale, anywhere. With Datadog Permissions, you can manage and control what actions a user or a group of users can perform in your organization. Permissions are assigned to roles, which can then be assigned to users, providing granular control over access and actions within Datadog.
Table Usage Guide
The datadog_permission
table provides insights into Permissions within Datadog. As a security analyst, explore permission-specific details through this table, including the roles they are assigned to, and their associated metadata. Utilize it to uncover information about permissions, such as those with high-level access, the roles associated with each permission, and the potential security risks.
Examples
Basic info
Explore the permissions within your Datadog setup to understand which are restricted and how they are grouped. This can help ensure appropriate access levels and maintain security standards.
select name, id, restricted, group_namefrom datadog_permissionorder by group_name, name;
select name, id, restricted, group_namefrom datadog_permissionorder by group_name, name;
List restricted permissions
Analyze the settings to understand which permissions are restricted in Datadog. This is beneficial in managing user access and ensuring security protocols are adhered to.
select name, id, restricted, group_namefrom datadog_permissionwhere restricted;
select name, id, restricted, group_namefrom datadog_permissionwhere restricted = 1;
List all the permissions for a specific role
Determine the areas in which a particular role has access by identifying the permissions associated with it. This can be useful for auditing security measures and ensuring appropriate access levels.
select role.name as role_name, dd_perms.name as permission_name, dd_perms.description as permission_descriptionfrom datadog_role as role, jsonb_array_elements(permissions) as role_perms, datadog_permission as dd_permswhere role.name = 'Datadog Standard Role' and dd_perms.id = role_perms ->> 'id';
select role.name as role_name, dd_perms.name as permission_name, dd_perms.description as permission_descriptionfrom datadog_role as role, json_each(permissions) as role_perms, datadog_permission as dd_permswhere role.name = 'Datadog Standard Role' and dd_perms.id = json_extract(role_perms.value, '$.id');
Schema for datadog_permission
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
created_at | timestamp with time zone | Creation time of the permission. | |
description | text | Description of the permission. | |
display_name | text | Displayed name for the permission. | |
display_type | text | Displayed type the permission. | |
group_name | text | Name of the permission group. | |
id | text | Id of the permission. | |
name | text | Name of the permission. | |
restricted | boolean | Whether or not the permission is restricted. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. |
Export
This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.
You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh
script:
/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- datadog
You can pass the configuration to the command with the --config
argument:
steampipe_export_datadog --config '<your_config>' datadog_permission