rook2pawn / curl-paste

http://curlpaste.com Curl POST any piece of text and share it!
http://curlpaste.com
3 stars 2 forks source link

Secure paste logged #4

Open chasgames opened 5 years ago

chasgames commented 5 years ago

Hello

After a secure paste has been expired or deleted after one minute, it still exists in the logfile in mydb on my instance.

image

Is there a setting to remove it from the logs also?

Many Thanks

rook2pawn commented 5 years ago

@chasgames

So, I'm using

https://github.com/rook2pawn/curl-paste/blob/master/lib/store.js#L64-L71

exports.deleteIfViewOnce = function(id) {
  viewOnce.get(id,function(err,value) {
    if (!err) {
      docs.del(id)
      viewOnce.del(id)
      sub.del(id)
    }
  })
}

I guess you discovered that the logfile is an artifact of leveldb. I had no idea that it was there, but it makes sense from a nosql standpoint. There is always "an artifact". Definitely keeping this issue open as I research on how to cleanse the log and still keep it working fine.

chasgames commented 5 years ago

Ok Great thanks!