Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom fields to payload AFTER action is called #24

Merged
merged 1 commit into from
Mar 7, 2014

Conversation

Intrepidd
Copy link

Imagine we want to log the user id or some session variables, this will be called before any before_filter, including the rails before filter that handles csrf.

This can be bad, for example, devise memoizes the current resource, this means that if we want to add current_user.id to the custom fields, it will be computed before rails can nullify the session (default behaviour), meaning that CSRF protection will be completely bypassed.

shadabahmed added a commit that referenced this pull request Mar 7, 2014
Add custom fields to payload AFTER action is called
@shadabahmed shadabahmed merged commit 2061cd0 into shadabahmed:master Mar 7, 2014
@shadabahmed
Copy link
Owner

Thanks for this 👍

shadabahmed added a commit that referenced this pull request Mar 7, 2014
@shadabahmed
Copy link
Owner

Updated logstasher to version 0.5.0 for this. Thanks 👍

51326 pushed a commit to 51326/logstasher that referenced this pull request Oct 18, 2016
related issues
- Add custom fields to payload AFTER action is called [shadabahmed#24](shadabahmed#24)
- Custom fields to payload after action is called no longer working? [shadabahmed#102](shadabahmed#102)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants