Skip to content

Commit cc2a888

Browse files
committed
remove noise in summary
1 parent 81a9e99 commit cc2a888

5 files changed

Lines changed: 47 additions & 49 deletions

File tree

action/dist/post.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20050,7 +20050,7 @@ function filterDNSNoise(connections) {
2005020050
const result = [];
2005120051
for (const [, conns] of byDomain) {
2005220052
const hasActualConnection = conns.some(
20053-
(c) => !["DNS", "DNS-response"].includes(c.protocol) && c.reason === "ip-allowed"
20053+
(c) => !["DNS"].includes(c.protocol) && c.reason === "ip-allowed"
2005420054
);
2005520055
if (hasActualConnection) {
2005620056
const filtered = conns.filter(

action/dist/post.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

action/src/post.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,7 @@ function filterDNSNoise(connections: Connection[]): Connection[] {
288288
for (const [, conns] of byDomain) {
289289
// Check if there are any non-DNS connections with reason "ip-allowed"
290290
const hasActualConnection = conns.some(
291-
(c) =>
292-
!["DNS", "DNS-response"].includes(c.protocol) &&
293-
c.reason === "ip-allowed",
291+
(c) => !["DNS"].includes(c.protocol) && c.reason === "ip-allowed",
294292
);
295293

296294
if (hasActualConnection) {

agent/agent.go

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -507,52 +507,52 @@ func (a *Agent) processDNSTypeAResponse(domain string, answer *layers.DNSResourc
507507
// Add to in-memory allowed IPs map
508508
// No need to update nftables - Go agent handles all decisions
509509
a.allowedIps[ip] = true
510-
a.addConnectionLog(ConnectionLog{
511-
Decision: "allowed",
512-
Protocol: "DNS-response",
513-
SrcIP: pkt.SrcIP,
514-
SrcPort: pkt.SrcPort,
515-
DstIP: ip,
516-
DstPort: "53",
517-
Domain: domain,
518-
Reason: "dns-resolved",
519-
PID: pkt.PID,
520-
ProcessName: pkt.ProcessName,
521-
CommandLine: pkt.CommandLine,
522-
ExecutablePath: pkt.ExecutablePath,
523-
})
510+
// a.addConnectionLog(ConnectionLog{
511+
// Decision: "allowed",
512+
// Protocol: "DNS-response",
513+
// SrcIP: pkt.SrcIP,
514+
// SrcPort: pkt.SrcPort,
515+
// DstIP: ip,
516+
// DstPort: "53",
517+
// Domain: domain,
518+
// Reason: "dns-resolved",
519+
// PID: pkt.PID,
520+
// ProcessName: pkt.ProcessName,
521+
// CommandLine: pkt.CommandLine,
522+
// ExecutablePath: pkt.ExecutablePath,
523+
// })
524524
}
525525
} else if a.isIpAllowed(ip) {
526526
fmt.Println("-> Allowed request")
527-
a.addConnectionLog(ConnectionLog{
528-
Decision: "allowed",
529-
Protocol: "DNS-response",
530-
SrcIP: pkt.SrcIP,
531-
SrcPort: pkt.SrcPort,
532-
DstIP: ip,
533-
DstPort: "53",
534-
Domain: domain,
535-
Reason: "ip-allowed",
536-
PID: pkt.PID,
537-
ProcessName: pkt.ProcessName,
538-
CommandLine: pkt.CommandLine,
539-
ExecutablePath: pkt.ExecutablePath,
540-
})
527+
// a.addConnectionLog(ConnectionLog{
528+
// Decision: "allowed",
529+
// Protocol: "DNS-response",
530+
// SrcIP: pkt.SrcIP,
531+
// SrcPort: pkt.SrcPort,
532+
// DstIP: ip,
533+
// DstPort: "53",
534+
// Domain: domain,
535+
// Reason: "ip-allowed",
536+
// PID: pkt.PID,
537+
// ProcessName: pkt.ProcessName,
538+
// CommandLine: pkt.CommandLine,
539+
// ExecutablePath: pkt.ExecutablePath,
540+
// })
541541
} else {
542-
a.addConnectionLog(ConnectionLog{
543-
Decision: "blocked",
544-
Protocol: "DNS-response",
545-
SrcIP: pkt.SrcIP,
546-
SrcPort: pkt.SrcPort,
547-
DstIP: ip,
548-
DstPort: "53",
549-
Domain: domain,
550-
Reason: "domain-not-allowed",
551-
PID: pkt.PID,
552-
ProcessName: pkt.ProcessName,
553-
CommandLine: pkt.CommandLine,
554-
ExecutablePath: pkt.ExecutablePath,
555-
})
542+
// a.addConnectionLog(ConnectionLog{
543+
// Decision: "blocked",
544+
// Protocol: "DNS-response",
545+
// SrcIP: pkt.SrcIP,
546+
// SrcPort: pkt.SrcPort,
547+
// DstIP: ip,
548+
// DstPort: "53",
549+
// Domain: domain,
550+
// Reason: "domain-not-allowed",
551+
// PID: pkt.PID,
552+
// ProcessName: pkt.ProcessName,
553+
// CommandLine: pkt.CommandLine,
554+
// ExecutablePath: pkt.ExecutablePath,
555+
// })
556556
if blocking {
557557
fmt.Println("-> Blocked request")
558558
} else {

agent/agent.sha256

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0fb94434598724968f610f15fe4457a081ea1875d343cfcae48ec1004326f398 agent
1+
8779de29392565a926da97e9aa065bf5e4bf2a4041dde8d298aed2f4388f2238 agent

0 commit comments

Comments
 (0)