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

Executing 'nsenter -at pid' to enter a container does not generate any logs. #10101

Open
Schorem2 opened this issue Apr 22, 2024 · 1 comment

Comments

@Schorem2
Copy link

Schorem2 commented Apr 22, 2024

What is the problem you're trying to solve

Issue Description:
Currently, there is no logging of login and logout events when logging into a container via Containerd. This represents a certain deficiency in terms of security. Therefore, I suggest improving Containerdto log relevant events when users log into a container.

Describe the solution you'd like

Proposed Improvement:

1.Logging Login Events: Log login events to the Containerd logs when users log into a container, including the timestamp of the login and relevant user information (such as username or ID).

2.Logging Command History: In addition to login events, log the command history of users executing commands within the container. This helps users understand the operational flow within the container and aids in troubleshooting when needed.

3.Configurability: To cater to different user needs, suggest designing this logging feature to be configurable, allowing users to flexibly enable or disable it as per their requirements.

Expected Outcome:

With these improvements, users will be able to more easily track the operations and events within containers, thereby facilitating faster troubleshooting and debugging.

Additional Information:

If more information is needed or if I should provide additional details, please let me know. Thank you for considering this proposal!

Additional context

No response

@AkihiroSuda
Copy link
Member

Feasibility has to be shown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants