Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send additional fields from ebpf-discovery: url-scheme, domain #94

Merged

Conversation

lnarolski
Copy link
Collaborator

eBPF-discovery should send additional information in each json:

  • URL scheme in text format (currently only “http” or “https”)
  • domain (from “Host:” header) - for now, we only have the resulting IP.
    If we accidentally have IP in the header, it’s ok, don’t do reverse DNS
2024-06-21 15:53:42.894 [126305] debug [ebpfdiscovery] Handling new request. (method: GET, host: example.com, url: /, X-Forwarded-For client: 8.8.8.8, sourceIPv4: 127.0.0.1, pid: 127614)
{"service":[{"pid":127614,"endpoint":"example.com/","externalClientsNumber":1,"domain":"example.com","scheme":"http"}]}
2024-06-21 15:54:32.148 [126305] debug [ebpfdiscovery] Handling new request. (method: GET, host: google.com:4443, url: /test/other, X-Forwarded-For client: 8.8.8.8, sourceIPv4: 127.0.0.1, pid: 127197)
{"service":[{"pid":127197,"endpoint":"google.com:4443/test/other","externalClientsNumber":1,"domain":"google.com","scheme":"https"}]}
2024-06-21 16:12:25.232 [126305] debug [ebpfdiscovery] Handling new request. (method: GET, host: google.com:4443, url: /test/other, X-Forwarded-For client: fe00::, sourceIPv4: 127.0.0.1, pid: 134011)
{"service":[{"pid":134011,"endpoint":"google.com:4443/test/other","externalClientsNumber":1,"domain":"google.com","scheme":"https"}]}
2024-06-21 16:14:21.741 [126305] debug [ebpfdiscovery] Handling new request. (method: GET, host: google.com, url: /test/other, X-Forwarded-For client: fe00::, sourceIPv4: 127.0.0.1, pid: 127614)
{"service":[{"pid":127614,"endpoint":"google.com/test/other","externalClientsNumber":1,"domain":"google.com","scheme":"http"}]}

@lnarolski
Copy link
Collaborator Author

2024-06-26 14:07:31.719 [830732] debug [ebpfdiscovery] Handling new request. (method: GET, host: google.com:4443, url: /test/other, X-Forwarded-For client: fe00::, sourceIPv4: 127.0.0.1, pid: 162099)
{"service":[{"pid":162099,"endpoint":"google.com:4443/test/other","domain":"google.com","scheme":"https","externalClientsNumber":1}]}
2024-06-26 14:08:33.974 [830732] debug [ebpfdiscovery] Handling new request. (method: GET, host: google.com, url: /test/other, X-Forwarded-For client: fe00::, sourceIPv4: 127.0.0.1, pid: 127614)
{"service":[{"pid":127614,"endpoint":"google.com/test/other","domain":"google.com","scheme":"http","externalClientsNumber":1}]}

@lnarolski lnarolski requested a review from asias91 June 26, 2024 12:33
@lnarolski lnarolski merged commit 964d4a1 into main Jun 26, 2024
4 of 5 checks passed
@lnarolski lnarolski deleted the send-additional-fields-from-ebpf-discovery-url-scheme-domain branch June 26, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants