From d0f19815d2d3ea53474921952d683092795935e7 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Tue, 21 Apr 2020 09:43:58 -0400 Subject: [PATCH] Updates agnhost image VERSION and README --- test/images/agnhost/README.md | 8 ++++++-- test/images/agnhost/VERSION | 2 +- test/images/agnhost/agnhost.go | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/test/images/agnhost/README.md b/test/images/agnhost/README.md index bc630551f71..9224f80614a 100644 --- a/test/images/agnhost/README.md +++ b/test/images/agnhost/README.md @@ -375,7 +375,7 @@ HTTP server: ### netexec -Starts a HTTP server on given port with the following endpoints: +Starts a HTTP(S) server on given port with the following endpoints: - `/`: Returns the request's timestamp. - `/clientip`: Returns the request's IP address. @@ -407,6 +407,10 @@ Starts a HTTP server on given port with the following endpoints: Returns a JSON with the fields `output` (containing the file's name on the server) and `error` containing any potential server side errors. +If `--tls-cert-file` is added (ideally in conjunction with `--tls-private-key-file`, the HTTP server +will be upgraded to HTTPS. The image has default, `localhost`-based cert/privkey files at +`/localhost.crt` and `/localhost.key` (see: [`porter` subcommand](#porter)) + It will also start a UDP server on the indicated UDP port that responds to the following commands: - `hostname`: Returns the server's hostname @@ -419,7 +423,7 @@ responding to the same commands as the UDP server. Usage: ```console - kubectl exec test-agnhost -- /agnhost netexec [--http-port ] [--udp-port ] [--sctp-port ] + kubectl exec test-agnhost -- /agnhost netexec [--http-port ] [--udp-port ] [--sctp-port ] [--tls-cert-file ] [--tls-private-key-file ] ``` ### nettest diff --git a/test/images/agnhost/VERSION b/test/images/agnhost/VERSION index 123a39a8e91..e3d0696453e 100644 --- a/test/images/agnhost/VERSION +++ b/test/images/agnhost/VERSION @@ -1 +1 @@ -2.14 +2.15 diff --git a/test/images/agnhost/agnhost.go b/test/images/agnhost/agnhost.go index ade9f23c1e8..1bdedeb6382 100644 --- a/test/images/agnhost/agnhost.go +++ b/test/images/agnhost/agnhost.go @@ -49,7 +49,7 @@ import ( ) func main() { - rootCmd := &cobra.Command{Use: "app", Version: "2.14"} + rootCmd := &cobra.Command{Use: "app", Version: "2.15"} rootCmd.AddCommand(auditproxy.CmdAuditProxy) rootCmd.AddCommand(connect.CmdConnect)