Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
zone.cogni.lib.vinz-clortho:vinz-clortho
Advanced tools
A lightweight replacement for Zuul when using spring boot 2.7+
A lightweight replacement for Zuul when using spring boot 2.7+
In your code just add the @EnableVinzClorthoProxy
annotation on any @Configuration
class.
Then setup the routing configuration like this:
cognizone:
vinz:
routes:
- name: firstRoute # just a name, make it unique, nothing else special here
path: /proxy/route1/** # the path on your server (if you use a servlet context path, this will be the part after the context path)
url: http://example.com/route1 # The destination url to proxy to
- name: secondRoute
path: /proxy/route2/**
url: http://example.com/route2
headers:
response-set:
- key: Access-Control-Allow-Headers
value: "*"
filter: "#{[request].getHeader('Origin') != null}"
That's it, you're all set.
Create a spring bean implementing cogni.zone.vinzclortho.BodyEditor
.
If such a bean exists, it will be called with the original HttpRequest and content body as an InputStream, so you can change the content of the request body.
The new body has to be returned as a org.apache.http.HttpEntity
object.
Create a spring bean implementing cogni.zone.vinzclortho.RequestValidator
.
If such a bean exists, it will be called with the original request information.
If you return a non-null value, that value with be used to send the response and no proxying will be done.
At the moment following HTTP methods are supported: GET, POST, PUT, DELETE
Follow headers will be passed from the original request:
After the proxied request, following response headers will be sent back to the client:
In the example above Access-Control-Allow-Headers: *
will be added to the response of secondRoute in case the filter matches.
The filter should be a spel expression that returns a boolean.
In this example (#{[request].getHeader('Origin') != null}
) the header will be set if the original request contains an Origin
header.
FAQs
Unknown package
We found that zone.cogni.lib.vinz-clortho:vinz-clortho demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.