
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
confabulous-postgres-loader
Advanced tools
Confabulous-Postgres-Loader is an PostgreSQL Loader for Confabulous - a hierarchical, asynchronous config loader and post processor.
const confabulous = require('confabulous')
const postgres = require('confabulous-postgres-loader')
const Confabulous = confabulous.Confabulous
const processors = confabulous.processors
new Confabulous()
.add((config) => postgres({
url: 'postgres://user:secret@localhost:5432/config',
query: 'SELECT data FROM config WHERE key=$1',
params: ['my-app']
}, [
(rows, cb) => cb(null, rows[0] && rows[0].data)
]))
.on('loaded', (config) => console.log('Loaded', JSON.stringify(config, null, 2)))
.on('reloaded', (config) => console.log('Reloaded', JSON.stringify(config, null, 2)))
.on('error', (err) => console.error('Error', err))
.on('reload_error', (err) => console.error('Reload Error', err))
.end()
Option | Type | Default | Notes |
---|---|---|---|
url | string | Postgres connection url | |
query | string | Query for selecting config | |
params | array | [] | Parameters to be passed to query |
mandatory | boolean | true | Causes an error/reload_error to be emitted if the configuration does not exist |
watch | object | Configures the watcher { query: 'SELECT last_modified FROM config WHERE key=$1', params: ['my-app']} , interval: '5m' } |
FAQs
A confabulous postgres loader
We found that confabulous-postgres-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.