-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Labels
bugunexpected problem or unintended behaviorunexpected problem or unintended behavior
Description
The entire 'server' parameter is included in the tags of measurements sent by the plugin. This is a security concern as the password is transmitted in the clear.
Example shown here. I replaced my password with XXXXX.
$ telegraf -config /etc/telegraf/telegraf.conf -test |grep post
* Plugin: postgresql, Collection 1
> postgresql,db=pdns,server=postgres://telegraf:XXXXX@localhost/pdns?sslmode\=disable blk_read_time=0,blk_write_time=0,blks_hit=3518854i,blks_read=1130i,conflicts=0i,deadlocks=0i,numbackends=17i,temp_bytes=0i,temp_files=0i,tup_deleted=1i,tup_fetched=585944i,tup_inserted=558i,tup_returned=54061355i,tup_updated=61i,xact_commit=159798i,xact_rollback=2i 1457552702321056243
> postgresql,db=postgres,server=postgres://telegraf:XXXXX@localhost/pdns?sslmode\=disable buffers_alloc=2119i,buffers_backend=25i,buffers_backend_fsync=0i,buffers_checkpoint=128i,buffers_clean=0i,checkpoint_sync_time=7,checkpoint_write_time=11339,checkpoints_req=2i,checkpoints_timed=10351i,maxwritten_clean=0i 1457552702322387204
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugunexpected problem or unintended behaviorunexpected problem or unintended behavior