Censoring cookies

1 view
Skip to first unread message

sebastien piquemal

unread,
Apr 12, 2011, 5:05:43 AM4/12/11
to django-sentry
Hi !

First thanks for django-sentry, that's really cool stuff ... We are
currently using it to log errors from all our internal services.
We are currently thinking of opening it for customer projects, which
would eventually expose personal information, like some cookies. I am
therefore looking for an easy way to censor all those things because
we don't want them to appear in the logs. Could you point me to an
easy/secure way to do that ?

I was thinking of just writing a middleware that would substitute the
confidential infos by a dummy string ... But if you have a better
solution I would like to know it !

Cheers,

Sébastien

David Cramer

unread,
Apr 12, 2011, 2:56:51 PM4/12/11
to django...@googlegroups.com, sebastien piquemal
You could override the process method on a custom client, and just
post-process the information. We can probably make it easier to do
this, but I haven't had the need yet so I'm really open to suggestions
on that end.

--
David Cramer
http://justcramer.com

sebastien piquemal

unread,
Apr 13, 2011, 8:21:13 AM4/13/11
to django-sentry
Hi !

Actually, I have did like I said : I implemented a middleware on
server-side, that uses BeautifulSoup to parse the response content,
and hide what I want to hide. This is quite hackish, but it will do
the trick for the moment. However, if we do open this service for our
customer projects, we'll probably need something cleaner, and in that
case I'll come back to you !

Cheers,

Sébastien

On Apr 12, 9:56 pm, David Cramer <dcra...@gmail.com> wrote:
> You could override the process method on a custom client, and just
> post-process the information. We can probably make it easier to do
> this, but I haven't had the need yet so I'm really open to suggestions
> on that end.
>
> --
> David Cramerhttp://justcramer.com
Reply all
Reply to author
Forward
0 new messages