Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
http-reqtrace
Advanced tools
Readme
The application starts a Web server which logs details of all incoming HTTP requests such as:
The application accepts all HTTP methods and URIs. The routing is defined like this:
/status/:statusCode
: return an HTTP response with status code statusCode and body {"message":"OK|KO"}
/**/*
: return an HTTP response with status code 200 OK and body {"message":"OK"}
/metrics
: return Prometheus metrics regarding HTTP requestsFollowing query parameters are also supported:
?latencyInMs=60000
: wait for the given period in milliseconds before responding.This service can be used to :
$ docker run -ti --name http-reqtrace -p 80:80 julb/http-reqtrace:latest
$ docker run -ti --name http-reqtrace -p 80:8080 -e PORT=8080 -u 65534:65534 julb/http-reqtrace:latest
Note: the PORT
environment variable can be set to customize listening port.
$ curl http://localhost/context/uri?param1=value1¶m2=value2 -H "Authorization: Bearer jwt"
{"statusCode": 200,"message":"OK"}
http > [ GET ] HTTP/ 1.1 http://localhost/context/uri?param1=value1¶m2=value2
http >> Header : host : localhost
http >> Header : user-agent : curl/7.54.0
http >> Header : accept : */*
http >> Header : authorization : Bearer jwt
http >> Query : { param1: 'value1', param2: 'value2' }
http >> Body : {}
http < [ HTTP 200 ]
$ curl http://localhost/status/404 -H "Authorization: Bearer jwt"
{"statusCode":404,"message":"KO"}
$ curl http://localhost/status/500 -H "Authorization: Bearer jwt"
{"statusCode":500,"message":"KO"}
http > [ GET ] HTTP/ 1.1 http://localhost/status/404
http >> Header : host : localhost
http >> Header : user-agent : curl/7.54.0
http >> Header : accept : */*
http >> Header : authorization : Bearer jwt
http >> Query : {}
http >> Body : {}
http < [ HTTP 404 ]
http > [ GET ] HTTP/ 1.1 http://localhost/status/500
http >> Header : host : localhost
http >> Header : user-agent : curl/7.54.0
http >> Header : accept : */*
http >> Header : authorization : Bearer jwt
http >> Query : {}
http >> Body : {}
http < [ HTTP 500 ]
$ curl http://localhost/status/504?latencyInMs=60000
{"statusCode":504,"message":"KO"}
http > [ GET ] HTTP/ 1.1 http://localhost/status/504
http >> Header : host : localhost
http >> Header : user-agent : curl/7.54.0
http >> Header : accept : */*
http >> Query : {}
http >> Body : {}
<60s waiting...>
http < [ HTTP 504 ]
FAQs
A simple NodeJS application to view HTTP request details.
The npm package http-reqtrace receives a total of 0 weekly downloads. As such, http-reqtrace popularity was classified as not popular.
We found that http-reqtrace demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.