
Security News
Security Community Slams MIT-linked Report Claiming AI Powers 80% of Ransomware
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.
@icewhale/casaos-gateway-openapi
Advanced tools
CasaOS Gateway is a dynamic API gateway service that can be used to expose APIs from different other HTTP based services.
This gateway service comes with a simple management API for other services to register their APIs by route paths. A HTTP request arrived at gateway port will be forwarded to the service that is registered for the route path.
As a best practice, a service behind this gateway should bind to localhost (
127.0.0.1for IPv4,::1for IPv6) ONLY, so no external network access is allowed.
Upon launching, it will search for gateway.ini file in the following order:
./gateway.ini
./conf/gateway.ini
$HOME/.casaos/gateway.ini
/etc/casaos/gateway.ini
See gateway.ini.sample for default configuration.
Once running, gateway address and management address will be available in the files under RuntimePath  specified in configuration.
$ cat /var/run/casaos/gateway.url 
[::]:8080 # port is specified in configuration
$ cat /var/run/casaos/management.url 
[::]:34703 # port is randomly assigned
Assuming that
347038080http://localhost:12345/ping that simply returns pong.Then register the API as follows:
POST http://localhost:34703/v1/gateway/routes
{
        "path": "/ping",
        "target": "http://localhost:12345"
}
or in command line:
$ curl 'localhost:34703/v1/gateway/routes' --data-raw '
    {"path": "/ping", "target": "http://localhost:12345"}
  '
Now run
$ curl localhost:8080/ping
{"message":"pong"}
... which is equivalent as
$ curl localhost:12345/ping
{"message":"pong"}
FAQs
CasaOS Gateway Typescript+Axios SDK
The npm package @icewhale/casaos-gateway-openapi receives a total of 9 weekly downloads. As such, @icewhale/casaos-gateway-openapi popularity was classified as not popular.
We found that @icewhale/casaos-gateway-openapi demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.

Research
/Security News
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.