security_pghba_check
PostgreSQL pg_hba.conf security check — Offline audit of a PostgreSQL pg_hba.conf. Parses every rule (local/host/hostssl/hostnossl/gssenc, address+netmask, options, line continuations, include directives) and flags trust from the network, trust on local sockets, replication without passwords, cleartext password and deprecated md5 auth, ident over TCP, LDAP without TLS, host/hostnossl allowing plaintext from remote clients, 0.0.0.0/0 and very wide public ranges, all-databases/all-users rules, rules made unreachable by an earlier line (first match wins) and syntax errors that stop PostgreSQL loading the file. Verdict PASS/REVIEW/FIX BEFORE DEPLOY/BLOCK with score, grade, parsed rules and fixes. Params: text= (file contents) or url=. Price: $0.005 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "security_pghba_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | local all all peer host all all 0.0.0.0/0 trust |