Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools oft miss.
docker-stream-cleanser
Advanced tools
This module cleans the docker headers from the log stream from a container. I never found them very useful, so I wrote this to clean them up either in bulk, or in between a piping. It's not as simple as just removing the first 8 bytes on every message
Docker Stream Cleanser is a drop-in module to clean the headers from Docker Logs (container attach or container logs)
Seeing weird characters at the beginning of each line coming from your Docker container's log stream? This will clear that right up! Docker places a header on each message to help you determine which stream (stdout or stderr) a message should belong to. Thanks Docker, but I just want to read the output! Since there is no setting to turn off this functionality, I wrote this.
More info on Docker's Container Logs
Usage with Docker Data Stream
const StreamCleanser = require('docker-stream-cleanser');
const streamCleanser = new StreamCleanser()
dockerLogStream
.pipe(streamCleanser)
.pipe(/* stream */);
Usage with Dockerode
const Docker = require('dockerode');
const container = new Docker().getContainer(containerId);
const StreamCleanser = require('docker-stream-cleanser');
const streamCleanser = new StreamCleanser()
container.logs({ stderr: true, stdout: true }, function (err, stream) {
stream
.pipe(streamCleanser)
.pipe(/* stream */);
});
npm install docker-stream-cleanser --save
MIT
FAQs
This module cleans the docker headers from the log stream from a container. I never found them very useful, so I wrote this to clean them up either in bulk, or in between a piping. It's not as simple as just removing the first 8 bytes on every message
The npm package docker-stream-cleanser receives a total of 7 weekly downloads. As such, docker-stream-cleanser popularity was classified as not popular.
We found that docker-stream-cleanser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools oft miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.