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

Compliance / Logging Mode #47

Open
staaldraad opened this issue Jun 1, 2020 · 1 comment
Open

Compliance / Logging Mode #47

staaldraad opened this issue Jun 1, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@staaldraad
Copy link
Collaborator

In certain conditions it would be useful to have enforced logging available. Especially in cases where logs are required for compliance, having upterm record the session and export logs would be extremely useful.

This would also position upterm to fulfil a role similar to what sudo_pair does. It lacks the "approve" feature, but engineers who are performing sensitive actions have both another engineer reviewing actions during the session, and exported logs for future audit requirements.

Expected behaviour

There are multiple options here, but the first requirement would be that the session is started in "compliance" mode. This would be through a flag --compliance. The user could also specify a log file location.

One option with the log file generation is to only generate the log file on the host side. Alternatively a client that connects to a host that has --compliance enabled would also start recording logs. The benefit here is that there are two records of the logs and you remove the single party responsibility.

Actual logging can be added to the stdin, stdout and stderr of the session. This would need to be added to the session.stdin etc, maybe an io.Pipe that does session.stdin --> logger-pipe --> ptx.stdin

@staaldraad staaldraad added the enhancement New feature or request label Jun 1, 2020
@arogic
Copy link

arogic commented Aug 30, 2023

Hi @staaldraad, I totally agree. This would be a very useful feature. Just wondering if you have a workaround, something like using asciinema or script to achieve this?

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants