Skip to content

Commit d0f1981

Browse files
committed
Updates agnhost image VERSION and README
1 parent c56d8df commit d0f1981

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

test/images/agnhost/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ HTTP server:
375375

376376
### netexec
377377

378-
Starts a HTTP server on given port with the following endpoints:
378+
Starts a HTTP(S) server on given port with the following endpoints:
379379

380380
- `/`: Returns the request's timestamp.
381381
- `/clientip`: Returns the request's IP address.
@@ -407,6 +407,10 @@ Starts a HTTP server on given port with the following endpoints:
407407
Returns a JSON with the fields `output` (containing the file's name on the server) and
408408
`error` containing any potential server side errors.
409409

410+
If `--tls-cert-file` is added (ideally in conjunction with `--tls-private-key-file`, the HTTP server
411+
will be upgraded to HTTPS. The image has default, `localhost`-based cert/privkey files at
412+
`/localhost.crt` and `/localhost.key` (see: [`porter` subcommand](#porter))
413+
410414
It will also start a UDP server on the indicated UDP port that responds to the following commands:
411415

412416
- `hostname`: Returns the server's hostname
@@ -419,7 +423,7 @@ responding to the same commands as the UDP server.
419423
Usage:
420424

421425
```console
422-
kubectl exec test-agnhost -- /agnhost netexec [--http-port <http-port>] [--udp-port <udp-port>] [--sctp-port <sctp-port>]
426+
kubectl exec test-agnhost -- /agnhost netexec [--http-port <http-port>] [--udp-port <udp-port>] [--sctp-port <sctp-port>] [--tls-cert-file <cert-file>] [--tls-private-key-file <privkey-file>]
423427
```
424428

425429
### nettest

test/images/agnhost/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.14
1+
2.15

test/images/agnhost/agnhost.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import (
4949
)
5050

5151
func main() {
52-
rootCmd := &cobra.Command{Use: "app", Version: "2.14"}
52+
rootCmd := &cobra.Command{Use: "app", Version: "2.15"}
5353

5454
rootCmd.AddCommand(auditproxy.CmdAuditProxy)
5555
rootCmd.AddCommand(connect.CmdConnect)

0 commit comments

Comments
 (0)