feat: add a message to the user that the session is recorded

Signed-off-by: Julian Mundhahs <julian.mundhahs@mailbox.org>
This commit is contained in:
Julian Mundhahs 2024-02-29 14:32:38 +01:00
parent 31ee9bb4a8
commit c6593a2bcb

View file

@ -356,6 +356,9 @@ func (pol *ACLPolicy) generateSSHRules(
recs = append(recs, netip.AddrPortFrom(rec.Addr(), 80)) recs = append(recs, netip.AddrPortFrom(rec.Addr(), 80))
} }
} }
if len(recs) > 0 {
action.Message = "# This session is being recorded.\n"
}
action.Recorders = recs action.Recorders = recs
if sshACL.EnforceRecorder { if sshACL.EnforceRecorder {