You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ruso dixit: Kapow! should generate a random token each time it starts up, and share this token via environment variable to the init programs it will launch upon startup.
The control interface will only accept requests that contain the aforementioned token in the header X-Kapow-Token.
Furthermore, to prevent sniffing of the token by other parties, the communication should be done using https, by way of generating a self-signed certificate on the fly, which can be accomplished by taking code from this example:
. kapow server generates on startup a pair of certificates
that will use to secure communications to its control server.
It will communicate the server and client certificates as well
as the client private key to the init programs it launches,
via environment variables.
. kapow server now understands a new flag --control-reachable-addr
which accepts either a IP address or a DNS name, that can be used
to ensure that the generated server certificate will be appropiate
in case the control server must be accessed from something other
than localhost.
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
In the current implementation the control interface is over plain HTTP and bind to localhost by default.
This can be problematic on setups where an adversary is on the same machine as the server.
Proper bastion of the control interface is key to a secure Kapow! deployment.
Think a solution and implement it.
The text was updated successfully, but these errors were encountered: