Commit graph

67 commits

Author SHA1 Message Date
6fe2370844
Fix probable race conditions 2021-07-05 19:14:14 +02:00
64a02cacde
Fix linter issues 2021-06-21 19:54:14 +02:00
62d89d37b5
Add HTTP health handler 2021-05-11 20:28:13 +02:00
499895fc71
Cleanup
- add more tests for orchestrator
- move some common code to netutils package
- unify and improve IP parsing
2021-05-10 07:48:09 +02:00
e2c30b0c3c
Update to multierr 1.7 and update usages 2021-05-07 11:53:14 +02:00
7dcd480523
Test endpoint 2021-05-06 21:34:20 +02:00
8a285e1142
Cleanup
- allow checks to be read from STDIN
- reduce log level to debug for a lot of logs
2021-05-06 12:31:55 +02:00
6ec6561a93
Add check command to imctl 2021-05-05 22:09:36 +02:00
23d0dfc39d
Complete HTTP endpoint health checks
- allow basic validation rules and basic HTTP methods
- add some basic checks to config
2021-05-05 20:33:27 +02:00
780b36133c
Cleanup tests 2021-05-04 16:54:30 +02:00
1b8245f2bf
Rework checker 2021-05-03 13:11:24 +02:00
2220c17be3
Rework checker API
- migrate gRPC API to official health check
- add HTTP endpoint implementation for checker
- add some gRPC middlewares
2021-05-03 08:27:14 +02:00
806ba20f8a
Remove unnecessary proto import 2021-05-03 08:16:22 +02:00
fbba072e76
Update auto-generated code and server implementation 2021-05-02 17:57:03 +02:00
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
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
6442f9f915 Cleanup 2021-04-22 20:19:07 +00:00
2239e34d3a
Fix linter issues 2021-03-04 18:41:24 +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
9b6e10212f
Adopt protobuf linting changes 2021-02-22 11:38:09 +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
41b5f905fd
Fix golangci-lint findings 2021-02-18 21:54:22 +01:00
bcea9e9682
Format imports 2021-02-18 17:06:51 +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
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
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
2c02b0c941
Add basic metric sink 2021-01-26 19:00:46 +01:00
cc72595398
Subscribe sinks with a context to automatically remove them when context is canceled 2021-01-26 18:50:53 +01:00
6d2737b501
Move HTTPS handling to http_mock handler 2021-01-26 18:42:07 +01:00
63a6516d99
Added audit stream to HTTP proxy 2021-01-26 18:20:52 +01:00
af0a7a2375
Capture source and destination addresses as byte arrays
- update necessary tests

This removes a lot of complexity because IPv4 and IPv6 addresses can be handled the same way.
To distinguish between them it's enough to take their length into account.
Parsing should be straight forward in any language.
2021-01-26 18:20:51 +01:00
37c87adaf3
Apply comments 2021-01-26 18:19:54 +01:00
2f0f3edfdf
Moved code of commands to their main package
- add init code to reduce code duplication of connection setup
2021-01-26 18:19:52 +01:00
af31b1166a
Audit API prototype
- watch events interactively
- pipe events to files
- remove file subscriptions
2021-01-26 18:19:03 +01:00
bb9f45ce91
Move sinks to extra package 2021-01-26 18:17:37 +01:00
6c448fd318
Add DNS details 2021-01-26 18:17:37 +01:00
0468c93671
Integrate into handlers 2021-01-26 18:17:37 +01:00
63607dfd67
Implement log and writer sinks
Add reader
2021-01-26 18:17:37 +01:00
1e8139e845
Add first draft of event stream 2021-01-26 18:17:37 +01:00
9041da7245 Resolve "generate-ca command has wrong validity" 2021-01-04 16:21:03 +00:00
49e58ac2e4 Add advanced matching options to HTTP handler
- move to Gitlab
- make code better testable
- create app abstraction for server
- cleanup
2020-12-26 13:11:49 +00:00
57a7e10e74
Add Prometheus metrics (#10)
* Add Prometheus metrics

- cleanup
- update dependencies
- improve parsing of options where possible
- Update Go to latest version
2020-10-02 11:56:48 +02:00
460940e4d8
Fixed TLS issue with mismatching certificates
- fixed fallback to P256 curve
- added option to configure minimal TLS version
- added option to include insecure cipher suites
2020-06-24 12:25:34 +02:00
108444e094 Add health API and basic CLI support
- remove plugin API due to incompatibility issues
- add Docker build to GitHub Actions
- add custom container friendly config file
2020-06-15 12:32:18 +02:00
def844c5fe Cleanup
- remove *.pb.go files
- remove *.mock.go files
- remove config2 references to get cleaner imports
- update dependencies
2020-06-15 12:32:18 +02:00