Comments (7)
Hey @alaniai
Interesting point but I don't think it adds any additional constraints above the one already mentioned in the security section.
https://github.com/IBM/core-dump-handler/#security-implications
Core dumps can contain sensitive runtime data and the storage bucket access must be managed accordingly.
That said the book will provide guidance on recommended configurations for deployment
e.g.. install in a dedicated namespace, only use private endpoints for S3 access.
from core-dump-handler.
;)
That's no problem at all just trying to get a bit of help.
I see there is an iNotify library that should be very easy to integrate
https://github.com/hannobraun/inotify-rs
I've marked this issue as 5.0.0 and I will be looking to get that out in November sometime along with the scheduling feature.
from core-dump-handler.
There was some initial consideration of this when I first wrote the agent but I 've not had good experiences with inotify on other projects so was a little hesitant leaning on it right away and polling is easier to reason about and debug.
That said it I agree it would be cleaner and I like your idea of falling back onto the poller on init.
I would be happy to take this as a PR that was flagged so the user has the option keeping the current functionality or using inotify.
Another feature that should be considered as part of this is a scheduled upload so that the dump uploads don't interfere with peak usage times.
The PR for inotify doesn't need to have a scheduler implementation but it needs to be mindful of the requirement.
from core-dump-handler.
@No9 - kinda obtuse, but if we scanned the "." on init/wake up - there is an 'avenue' here for a rogue process to create a "coredump" file , knowing that the handler will then export it out of the secure Environment - of course, a second exploit would be needed to fetch if from the s3:// resource.
A bad actor bound by firewalls etc.., could harness that
from core-dump-handler.
@No9 But I've never written rust code before... 😂
Actually, I'm working on something similar to core-dump-handler in my team, but there are some issues so I'm considering whether to use my solution or core-dump-handler. This is the reason why I recently posted a few issues.
I won't promise to do it, but I'll consider posting a PR someday.
from core-dump-handler.
Hey @isbee there is an initial implementation of iNotify here
https://github.com/IBM/core-dump-handler/tree/schedule-watch
You should be able to checkout that branch and run it with your usual settings but note the scheduled approach and Inotify are mutually exclusive.
As you suggested the service sweeps the folder on startup
https://github.com/IBM/core-dump-handler/blob/schedule-watch/core-dump-agent/src/main.rs#L121
Let us know how you get on with it and if you have any comments.
from core-dump-handler.
Merging as part of PR #43
from core-dump-handler.
Related Issues (20)
- Unable to use ODF S3 compatible storage in Red hat openshift for IBM Core dump handler HOT 6
- Clarify compatibility with Google Kubernetes HOT 4
- got error Bucket Creation Failed: serde_xml: ParseIntError: invalid digit found in string with AWS IAM s3 HOT 8
- pullSecrets is not used inside daemonset.yaml HOT 6
- multi tenant support HOT 6
- latest musl images are not available HOT 3
- Support for application level artifacts HOT 3
- composer.log is missing in agent HOT 5
- Kubernetes 1.23+ does not mount service account token anymore HOT 1
- SELinux blocks cdc from running
- Additional troubleshooting advice? HOT 1
- Deployment error fails to EKS HOT 3
- Duplicate file names in generated zip files HOT 1
- Core dump files housekeeping HOT 2
- Compatibility with Oracle Kubernetes Engine. HOT 11
- Core dump generates random uuid instead of using pod uuid HOT 2
- Memory cleanup after crash dump taken
- configurable priorityClassName for daemonset pods HOT 1
- Using an s3 compatible storage - fails to connect on error upload Failed reqwest: HOT 7
- In Kubernetes: Mounts of the hostdir doubling with every restart HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core-dump-handler.