steampipe plugin install net

Net + Steampipe

Steampipe is a CLI to instantly query cloud APIs using SQL.

The net plugin is a set of utility tables for steampipe to query attributes of X.509 certificates associated with websites, DNS records, and connectivity to specific network socket addresses.

For example:

select
issuer,
not_after as exp_date
from
net_certificate
where
domain = 'steampipe.io';
+----------------------------+---------------------+
| issuer | exp_date |
+----------------------------+---------------------+
| CN=R3,O=Let's Encrypt,C=US | 2021-02-24 03:02:15 |
+----------------------------+---------------------+

Documentation

Get started

Install

Download and install the latest Steampipe Net plugin:

steampipe plugin install net

Credentials

ItemDescription
CredentialsNo creds required
Permissionsn/a
RadiusSteampipe limits searches to specific resources based on the provided Quals e.g. domain for certificates and DNS queries and address for network connection information
Resolutionn/a

Configuration

No configuration is needed. Installing the latest net plugin will create a config file (~/.steampipe/config/net.spc) with a single connection named net:

connection "net" {
plugin = "net"
}

Postgres FDW

This plugin is available as a native Postgres FDW. Unlike Steampipe CLI, which ships with an embedded Postgres server instance, the Postgres FDW can be installed in any supported Postgres database version.

You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_postgres_installer.sh script:

/bin/sh -c "$(curl -fsSL https://steampipe.io/install/postgres.sh)" -- net

The installer will prompt you for the plugin name and version, download and install the appropriate files for your OS, system architecture, and Postgres version.

To configure the Postgres FDW, you will create an extension, foreign server, and schema and import the foreign schema.

CREATE EXTENSION IF NOT EXISTS steampipe_postgres_net;
CREATE SERVER steampipe_net FOREIGN DATA WRAPPER steampipe_postgres_net OPTIONS (config '<your_config>');
CREATE SCHEMA net;
IMPORT FOREIGN SCHEMA net FROM SERVER steampipe_net INTO net;

SQLite Extension

This plugin is available as a SQLite Extension, making the tables available as SQLite virtual tables.

You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_sqlite_installer.sh script:

/bin/sh -c "$(curl -fsSL https://steampipe.io/install/sqlite.sh)" -- net

The installer will prompt you for the plugin name, version, and destination directory. It will then determine the OS and system architecture, and it will download and install the appropriate package.

To configure the SQLite extension, load the extension module and then run the steampipe_configure_net function to configure it with plugin-specific options.

$ sqlite3
sqlite> .load ./steampipe_sqlite_extension_net.so
sqlite> select steampipe_configure_net('<your_config>');

Export

This plugin is available as a standalone Export 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)" -- net

You can pass the configuration to the command with the --config argument:

steampipe_export_net --config '<your_config>' <table_name>