Commit graph

371 commits

Author SHA1 Message Date
9d4bd8d873
Refactored http_mock to use new routing rule grammar
- removed old regex router
- refactored tests to use new simplified routing rules
- updated configs
- make router behavior and filters way easier to test
2021-04-28 17:03:04 +02:00
490dacaefb
Fix caller offset in logger 2021-04-28 17:03:04 +02:00
9f53b01e49
Restructure config and setup of handlers
- move initialization and dependency resolving to registration of protocol handlers
- replace file opening in HTTP mock with fs.FS - depends on having a FS that returns an io.ReadSeeker - could be worked around in the future
- update config for new routing rules to see how they look like in production
- extend grammar tests
2021-04-28 17:03:04 +02:00
45a6d11d5b
Extend grammar and test suite 2021-04-28 17:03:04 +02:00
8d77dd0669
Declare build dependencies 2021-04-28 17:03:04 +02:00
27c01a1918
Add basic grammar 2021-04-28 17:02:54 +02:00
dc59524d24
Return ConsumerKey when recording is started 2021-04-28 11:31:25 +02:00
e6fc96aa14 Get rid of reflect.DeepEqual
- add security scanners
- extend test suite
2021-04-24 14:52:34 +00:00
5ad18c44e3 Remove obsolete tls interceptor 2021-04-23 09:55:06 +00:00
778d1fb49c Add tests for regex router
- apply linter findings
- make regex router testable
- add convenience methods
- add in memory listener
2021-04-23 09:55:06 +00:00
27be459319 Fix /index.html handling
- add integration test to ensure file is handled properly
2021-04-23 09:55:06 +00:00
22c54fb273
Fix data directory permissions and add missing capability to binary 2021-04-22 22:24:46 +02:00
6442f9f915 Cleanup 2021-04-22 20:19:07 +00:00
29662726f6
Cleanup go.sum 2021-04-22 21:52:38 +02:00
bcd4f4fd18
Cleanup go.sum 2021-03-04 18:45:04 +01:00
2239e34d3a
Fix linter issues 2021-03-04 18:41:24 +01:00
52c3ec3242
Configure DIND in CI 2021-03-04 18:34:35 +01:00
463c66b073
Concise StopPCAPFileRecord gRPC method
- fix logging issue in test logger
- adopt change in all components
- update dependencies
2021-03-04 18:19:28 +01:00
37c43139cc
Fix regeneration of protobuf assets and mocks 2021-02-22 12:08:48 +01:00
e81048734f
Skip tests for release because they should already be executed in the CI pipeline previously 2021-02-22 11:50:54 +01:00
9b6e10212f
Adopt protobuf linting changes 2021-02-22 11:38:09 +01:00
12edfc7b87
Update Go package in protobuf files 2021-02-22 10:59:40 +01:00
1f87e6e6c3
Merge commit '231f06b9a1f3cf357627b4913e7a04b69403d010' into update-api-definition 2021-02-22 08:29:47 +01:00
231f06b9a1 Squashed 'api/' changes from 08b8eb8..fe0a378
fe0a378 Add buf linting anf fix linter issues
27cd7f5 Format protobuf code
24ae082 Rename gRPC PCAP entities
e30a129 Complete CLI integration
d01a9de Initial draft of PCAP capturing
4504b96 Fix wrong import path in proto
80fa8f4 Merge commit '9a3c410ee8dfe2a380dc1ab36a5778e2c0f7049b' as 'api'
795f9c0 Move existing protos to external repo
1618dc3 Move docs to deploy stage
d70ba74 Introduce Lifecycle for every endpoint and manage listeners in the renamed Orchestrator
dd4b191 Merge branch '10-handler-event-stream' into 'master'
2d97bea Refactor gRPC sink
85b0123 Update container config
55dfcfa Ship default CA with container build
c97207e Update builtin CA
2c02b0c Add basic metric sink
cc72595 Subscribe sinks with a context to automatically remove them when context is canceled
6d2737b Move HTTPS handling to http_mock handler
63a6516 Added audit stream to HTTP proxy
03f3ae4 Enable gRPC reflection to support gRPCurl and gRPCui
af0a7a2 Capture source and destination addresses as byte arrays
66f2aab Add commands to list sinks and to read a protocol file to JSON
a76d1d1 Cleanup in server app
0138b57 Merged CLI and server app init
37c87ad Apply comments
38293bb Remove caching for now
af5c55d Cache .task/ directory to lazy run tasks across stages
41aa132 Cache .task/ directory to lazy run tasks across stages
2f0f3ed Moved code of commands to their main package
af31b11 Audit API prototype
dc4a9b1 Moved endpoint handlers in tree
bb9f45c Move sinks to extra package
6c448fd Add DNS details
0468c93 Integrate into handlers
63607df Implement log and writer sinks Add reader
1e8139e Add first draft of event stream
eaddf26 Add test and coverage reports
81c4be6 Replace CI job token with API token
fa5c649 Merge branch '15-generate-ca-command-has-wrong-validity' into 'master'
9041da7 Resolve "generate-ca command has wrong validity"
e9f79cd Merge branch '7-add-advanced-matching-options' into 'master'
49e58ac Add advanced matching options to HTTP handler
57a7e10 Add Prometheus metrics (#10)
460940e Fixed TLS issue with mismatching certificates
9a50ce5 Complete health API
191d352 fix container build and add missing demo CA files
6899c6c Removed generated mocks
108444e Add health API and basic CLI support
2ff0e7c Fix container build
38f8ff3 Apply commented improvements
def844c Cleanup
d89ab3a Split to server and CLI binaries
13a3829 Add output format options for upcoming CLI client
1ef1f59 Add gRPC API implementation
6184164 Add gRPC spec
3466037 Remove plugin commands feature
91f0cf6 Improve config and startup handling
1775d3d Add GoReport badge
480388c Update README
666b137 Add some status badges
127d40e Merge pull request #3 from baez90/feature/add-http_proxy
a67b8ed Improve TLS connection tracking to avoid memory or connection leaks
7c2a41a Move TLS/cert handling to main app
43d3c62 Move mocks to internal package
9236a38 Moved endpoint handling to new module
f4ca8e9 Add some tests to ensure proper configuration parsing
671958e Complete first naive HTTP proxy implementation
63a446d Prepare systemd deployment
ca1ac7d Move plugins to top level directory in repository
ac62eab Initial commit http_proxy
9123d01 Fix module problems and update release v0.0.1
ac067cd Fix plugin modules and test make target
8134110 Move plugins to sub-modules
d8b7cfa Merge pull request #4 from baez90/add-license
cd79537 Create LICENSE
ca76e18 Merge pull request #1 from baez90/add-github-ci
6051ea1 Add goreleaser
d7f7427 Add Go GitHub actions config
2475f88 Add Makefile and reference to docs
c3e362c Add some basic docs
63ba6da Add basic DNS and DNS-over-TLS implementation
0ed9070 Allow plugins to be resided in subdirectories
02d8b44 Introduce lifetime parameters to generate-ca cmd
a720b0e Initial working version
6012f10 Initial commit

git-subtree-dir: api
git-subtree-split: fe0a378cdc00040176eb05fcaaa12a175bd50f30
2021-02-22 08:29:16 +01:00
065eb3e022
Ensure that consumers are removed when their context is canceled 2021-02-19 17:00:57 +01:00
be5bf2a359
Remove CaptureParams 2021-02-19 16:33:51 +01:00
feca4c7732
Handle init errors in PCAP consumers 2021-02-19 16:27:41 +01:00
e5ae9c67b8
Extend test suite
- did some cleanup
- applied renaming of the proto entities
- completed PCAP CLI
2021-02-19 15:46:09 +01:00
2917715edc
Rename gRPC PCAP entities 2021-02-19 13:59:14 +01:00
41b5f905fd
Fix golangci-lint findings 2021-02-18 21:54:22 +01:00
bcea9e9682
Format imports 2021-02-18 17:06:51 +01:00
404751fa61
Prepared API integration tests 2021-02-18 16:57:01 +01:00
5880b42a99
Fixed dependency chain to get x-platform support 2021-02-17 17:42:27 +01:00
c05141f0f4
Drop MacOS and FreeBSD support for now in releases 2021-02-17 16:57:08 +01:00
6ed23aa62d
Add tests for recorder 2021-02-17 16:34:14 +01:00
3ae3eefbac
Complete CLI integration 2021-02-17 15:39:06 +01:00
864de9f20b
Initial draft of PCAP capturing 2021-02-16 16:50:23 +01:00
8d81af64d4
Remove LittleEndian byte order
- update/fix test suite with updated test messages
2021-02-15 17:19:19 +01:00
eeb5c4b8be
Include generated proto files
This allows everyone else to import those for using the client
2021-02-15 17:09:19 +01:00
7246b719eb
Adopt new proto structure 2021-02-15 17:07:04 +01:00
803872966b
Fix wrong import path in proto 2021-02-15 17:06:50 +01:00
9a3c410ee8 Squashed 'api/' content from commit 08b8eb8
git-subtree-dir: api
git-subtree-split: 08b8eb82f54325faf2f86806c6ab4f40e9fc0af1
2021-02-15 16:48:06 +01:00
a5c194782e Merge commit '9a3c410ee8dfe2a380dc1ab36a5778e2c0f7049b' as 'api' 2021-02-15 16:48:06 +01:00
795f9c0b83
Move existing protos to external repo 2021-02-15 16:47:37 +01:00
1618dc317f
Move docs to deploy stage 2021-02-10 22:07:33 +01:00
d70ba748f5 Introduce Lifecycle for every endpoint and manage listeners in the renamed Orchestrator
- merge packages to get a more concise layout because plugins are no more and therefore there's not a lot to be exported
- fix test logger
- rework config parsing to be easier and more transparent
- remove unnecessary APIs because dynamic endpoint handling is rather a won't implement
2021-02-10 20:26:45 +00:00
dd4b191abb Merge branch '10-handler-event-stream' into 'master'
Resolve "Handler Event Stream"

Closes #13 and #10

See merge request inetmock/inetmock!12
2021-01-27 12:53:22 +00:00
2d97beaf70
Refactor gRPC sink
- rename it to GenericSink
- add tests
- update dependencies
- improve test step to always get a report
- add NoOpSink for tests
2021-01-27 13:31:51 +01:00
85b0123711
Update container config 2021-01-27 11:29:10 +01:00
55dfcfabab
Ship default CA with container build 2021-01-27 11:05:06 +01:00