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

Ensure the request init hook is bound by the open_basedir INI directive #579

Merged
merged 1 commit into from Sep 18, 2019

Conversation

SammyK
Copy link
Contributor

@SammyK SammyK commented Sep 18, 2019

Description

This PR ensures that the ddtrace.request_init_hook is still bound by the open_basedir INI directive. It also sandboxes the request init hook so that errors or exceptions within the request init hook do not affect the main script execution.

Readiness checklist

  • (only for Members) Changelog has been added to the appropriate release draft. Create one if necessary.
  • [ ] Tests added for this feature/bug. The master build tests are expected to fail for this PR; this will be addressed ASAP

Reviewer checklist

  • Appropriate labels assigned.
  • Milestone is set.
  • Changelog has been added to the appropriate release draft. For community contributors the reviewer is in charge of this task.

@SammyK SammyK force-pushed the sammyk/sandbox-request-init-hook branch from e19c081 to 035cf08 Compare September 18, 2019 21:38
Copy link
Collaborator

@morrisonlevi morrisonlevi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Hopefully it won't take us long to figure out how to fix all the tests.

@SammyK SammyK force-pushed the sammyk/sandbox-request-init-hook branch from 035cf08 to 20478c8 Compare September 18, 2019 21:46
@SammyK SammyK added this to the 0.30.2 milestone Sep 18, 2019
@SammyK SammyK added c-extension Apply this label to issues and prs related to the C-extension 🍏 core Changes to the core tracing functionality 🐛 bug Something isn't working labels Sep 18, 2019
@SammyK SammyK force-pushed the sammyk/sandbox-request-init-hook branch 2 times, most recently from 4f4f503 to 58e8e98 Compare September 18, 2019 22:51
Also sandbox the request init hook so that errors and exceptions are ignored
@SammyK SammyK force-pushed the sammyk/sandbox-request-init-hook branch from 58e8e98 to d648734 Compare September 18, 2019 23:04
@SammyK SammyK merged commit 9c63e94 into ddtrace-0.30 Sep 18, 2019
SammyK added a commit that referenced this pull request Sep 18, 2019
Ensure the request init hook is bound by the open_basedir INI directive
SammyK added a commit that referenced this pull request Sep 19, 2019
Ensure the request init hook is bound by the open_basedir INI directive
@SammyK SammyK mentioned this pull request Sep 19, 2019
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working c-extension Apply this label to issues and prs related to the C-extension 🍏 core Changes to the core tracing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants