generated from dynatrace-oss/template-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TR-3756 Integrate Honeypatch tool, adapt documentation
- Loading branch information
Showing
31 changed files
with
2,435 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Honeypatch | ||
|
||
Honeypatch is stand-alone tool to inject traps into arbitrary, text-based payload. | ||
|
||
> [!IMPORTANT] | ||
> Honeypatch is still in development and only in a proof-of-concept stage. | ||
> It is not integrated with the rest of Honeyquest yet. | ||
## 🚀 Usage | ||
|
||
List all available honeywire templates. | ||
|
||
```sh | ||
honeypatch list -p ./querydb/honeyaml | ||
``` | ||
|
||
Inject additional headers into HTTP responses. | ||
|
||
```sh | ||
honeypatch inject -p ./querydb/honeyaml -w httpheader-apiserver ./docs/examples/http-response.txt | ||
honeypatch inject -p ./querydb/honeyaml -w httpheader-devtoken ./docs/examples/http-response.txt | ||
``` | ||
|
||
### List of available arguments | ||
|
||
Please refer to the `--help` command for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
HTTP/1.1 200 OK | ||
Date: Mon, 23 May 2005 22:38:34 GMT | ||
Content-Type: text/html; charset=UTF-8 | ||
Content-Length: 155 | ||
Last-Modified: Wed, 08 Jan 2003 23:11:55 GMT | ||
Server: Apache/1.3.3.7 (Unix) (Red-Hat/Linux) | ||
ETag: "3f80f-1b6-3e1cb03b" | ||
Accept-Ranges: bytes | ||
Connection: close |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
honeywire: | ||
kind: httpheader | ||
name: httpheader-apiserver | ||
description: Adds an HTTP header that hints at some API server location | ||
operations: | ||
- op: add | ||
key: X-Kube-ApiServer | ||
value: /hko/api | ||
--- | ||
honeywire: | ||
kind: httpheader | ||
name: httpheader-devtoken | ||
description: Adds an HTTP header that looks like a JWT developer token (secret 'honeypatch' was used for the signature) | ||
operations: | ||
- op: add | ||
key: X-DevToken | ||
value: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbiI6IjMwZDk4NGI4Iiwicm9sZSI6ImNsdXN0ZXIifQ.J2c1XH2RsXDjaWJhCHSWR4bBNxEm7l2Q7WxrlG2vph4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.