{"Name":"postgresdb","ID":"go.mondoo.com/mql/v13/providers/postgresdb","Version":"13.0.0","ConnectionTypes":["postgresdb"],"CrossProviderTypes":null,"Connectors":[{"Name":"postgresdb","Use":"postgresdb [host]","Short":"a PostgreSQL server","Long":"Use the postgresdb provider to query a PostgreSQL server.\n\nThe provider connects to a PostgreSQL server and runs read-only catalog\nqueries (pg_catalog and information_schema) to inventory roles, databases,\nschemas, privileges, settings, host-based authentication rules, extensions,\nforeign servers, and replication configuration.\n\nBy default the provider discovers every connectable database on the server as\nits own asset.\n\nExamples:\n  cnspec shell postgresdb db.contoso.com --user postgres --ask-pass\n  cnspec scan postgresdb db.contoso.com --database appdb --sslmode verify-full --sslrootcert ca.pem\n","Flags":[{"Long":"host","Desc":"PostgreSQL hostname or IP address","Type":3},{"Long":"port","Default":"5432","Desc":"PostgreSQL TCP port","Type":2},{"Long":"database","Default":"postgres","Desc":"Database to connect to for the initial (server) connection","Type":3},{"Long":"user","Short":"u","Desc":"Role name to authenticate as","Type":3},{"Long":"password","Short":"p","Desc":"Set the connection password","Type":3,"Option":8,"ConfigEntry":"-"},{"Long":"ask-pass","Default":"false","Desc":"Prompt for the connection password","Type":1,"ConfigEntry":"-"},{"Long":"sslmode","Default":"prefer","Desc":"TLS mode: disable, allow, prefer, require, verify-ca, or verify-full","Type":3},{"Long":"sslrootcert","Desc":"Path to the trusted CA certificate for TLS verification","Type":3},{"Long":"sslcert","Desc":"Path to the client certificate for TLS client authentication","Type":3},{"Long":"sslkey","Desc":"Path to the client private key for TLS client authentication","Type":3}],"Discovery":["auto","all","instance","databases","none"]}],"AssetUrlTrees":null,"Platforms":[{"name":"postgresdb","title":"PostgreSQL Server","family":["postgresdb"],"kind":["api"],"runtime":["postgresdb"]},{"name":"postgresdb-database","title":"PostgreSQL Database","family":["postgresdb"],"kind":["api"],"runtime":["postgresdb"]}]}