Commit Graph

22 Commits

Author SHA1 Message Date
pancho horrillo
1e63f3c104 feat: Control API uses automatic cross-pinning mTLS (Closes #119)
. 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>
2021-03-12 17:24:17 +01:00
pancho horrillo
68a25e68b8 feat: kapow server <initprgs> honors --debug
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2020-12-24 14:16:39 +01:00
pancho horrillo
26fa12c871 doc: drop mentions to .pow files ($deity REST their soul)
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2020-12-24 14:03:49 +01:00
Roberto Abdelkader Martínez Pérez
0c16b5472f feat: run multiple init programs
- We log their outputs and status codes
- Windows is supported as well, leveraging cmd.exe /c

Co-authored-by: pancho horrillo <pancho.horrillo@bbva.com>
2020-12-24 14:03:25 +01:00
pancho horrillo
41be4f9344 refactor: use a common logger for consistency
All kapow messages will end up in stderr (incl. debug mode).
stdout is reserved for the access logs.

Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2020-12-16 17:29:26 +01:00
pancho horrillo
4546fc65b6 fix: honor global flag --debug
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2020-12-15 18:59:29 +01:00
Héctor Hurtado
248f7d1fcc Added stderr output management to jaillover.
Added Spawn support for stderr redirection.
Added --debug option to server cmd.
Added debug information to documentation.
Finnished script logger.
2020-04-20 10:18:16 +02:00
Héctor Hurtado
4988c48e03 Correct typo assigning KAPOW_CONTROL_URL env variable 2020-04-06 19:38:43 +02:00
Héctor Hurtado
e6e25f25c7 Fix #102 2020-04-06 18:02:29 +02:00
Héctor Hurtado
73ef493f04 cmd/server sets now environment variables KAPOW_DATA_URL and KAPOW_CONTROL_URL
Remove golinter error S1036: unnecessary guard around map access in 
spawn package
2020-04-03 21:42:42 +02:00
Héctor Hurtado
cddc5ff351 Fixes #45: Added Support fot Mutual TLS Authentication 2020-01-23 17:39:58 +01:00
Héctor Hurtado
493e6be78c Added support fot https in user server 2020-01-22 17:27:24 +01:00
pancho horrillo
2d5743af84 Add blank line between legal header and package declaration
Otherwise, the legal header is rendered as package documentation.
2019-11-13 18:18:44 +01:00
Héctor Hurtado
19c4e8d482 Changed user server bind address to 0.0.0.0 to allow listen on a container 2019-10-31 15:22:56 +01:00
Héctor Hurtado
723e4787b3 Added legal header to all Go source files 2019-10-23 13:35:01 +02:00
Roberto Abdelkader Martínez Pérez
28a0be1d87 Allow kapow server to run without .pow file and non-interactive
Co-authored-by: pancho horrillo <pedrofelipe.horrillo@bbva.com>
2019-10-22 11:56:18 +02:00
Roberto Abdelkader Martínez Pérez
fa394ce997 Call server.StartServer() from cmd
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com>
2019-10-22 10:23:12 +02:00
pancho horrillo
5bbc341e10 Update internal/cmd/server.go
- Honour --bind, --control-bind, --data-bind
- Drop unused params (--interactive, --url, --control-url, --data-url)
- Minimize environment for running the powfile shell script
- Drop debug code

TODO: actual key and cert handling for https
2019-10-20 18:39:50 +02:00
pancho horrillo
341768ace8 internal/cmd/server.go: sort imports 2019-10-20 18:38:29 +02:00
pancho horrillo
b14ea93a64 Minor fixes on error handling
Co-authored-by: César Gallego <gallego.cesar@gmail.com>
2019-10-17 17:11:19 +02:00
pancho horrillo
4638bec5fe Gather binding vars for each server and run them
Co-authored-by: César Gallego <gallego.cesar@gmail.com>
2019-10-17 17:03:45 +02:00
pancho horrillo
23128026c7 Rework directory structure
Co-authored-by: Héctor Hurtado <hector.hurtado@bbva.com>
2019-10-03 12:05:53 +02:00