turbot/duo

GitHub
steampipe plugin install duosteampipe plugin install duo

Duo Security + Steampipe

Steampipe is an open source CLI to instantly query cloud APIs using SQL.

Duo Security provides cloud-based two-factor authentication services.

Example query:

select
username,
is_enrolled,
last_login
from
duo_user
order by
username;
+----------+-------------+---------------------------+
| username | is_enrolled | last_login |
+----------+-------------+---------------------------+
| dwight | true | 2022-04-17T07:36:34-04:00 |
| jim | true | 2022-04-17T09:36:34-04:00 |
| michael | false | <null> |
| pam | true | 2022-04-17T08:55:34-04:00 |
+----------+-------------+---------------------------+

Documentation

Get started

Install

Download and install the latest Duo plugin:

steampipe plugin install duo

Configuration

Installing the latest duo plugin will create a config file (~/.steampipe/config/duo.spc) with a single connection named duo:

connection "duo" {
plugin = "duo"
api_hostname = "api-28bcd3da.duosecurity.com"
integration_key = "DINXR28B7BSL5NB362QR"
secret_key = "Xo8ZbvGLOLkw8iFowK34Mp2LOqQEh7cxeMmDoHSO"
}
  • api_hostname - Unique API endpoint for your account, learn more.
  • integration_key - Integration key for your account, learn more.
  • secret_key - Secret key, learn more.

Environment variables are also available as an alternate configuration method:

  • DUO_API_HOSTNAME
  • DUO_INTEGRATION_KEY
  • DUO_SECRET_KEY

Get involved