-
Notifications
You must be signed in to change notification settings - Fork 59
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
vdk-plugins: introduced vdk-audit plugin #1221
Conversation
Visibility into the actions provides opportunities for test frameworks, logging frameworks, and security tools to monitor and optionally limit actions taken by the runtime. This plugin provides the ability to audit and potentially limit user actions. In order to have a better understanding of what precisely the job does, we will log not permitted job actions. It is based on the Python Audit Hook - https://peps.python.org/pep-0578/. Testing Done: local job execution and unit tests Signed-off-by: Miroslav Ivanov [email protected]
Visibility into the actions provides opportunities for test frameworks, logging frameworks, and security tools to monitor and optionally limit actions taken by the runtime. This plugin provides the ability to audit and potentially limit user actions. In order to have a better understanding of what precisely the job does, we will log not permitted job actions. It is based on the Python Audit Hook - https://peps.python.org/pep-0578/. Testing Done: local job execution and unit tests Signed-off-by: Miroslav Ivanov [email protected]
Visibility into the actions provides opportunities for test frameworks, logging frameworks, and security tools to monitor and optionally limit actions taken by the runtime. This plugin provides the ability to audit and potentially limit user actions. In order to have a better understanding of what precisely the job does, we will log not permitted job actions. It is based on the Python Audit Hook - https://peps.python.org/pep-0578/. Testing Done: local job execution and unit tests Signed-off-by: Miroslav Ivanov [email protected]
Visibility into the actions provides opportunities for test frameworks, logging frameworks, and security tools to monitor and optionally limit actions taken by the runtime. This plugin provides the ability to audit and potentially limit user actions. In order to have a better understanding of what precisely the job does, we will log not permitted job actions. It is based on the Python Audit Hook - https://peps.python.org/pep-0578/. Testing Done: local job execution and unit tests Signed-off-by: Miroslav Ivanov [email protected]
Let's name the plugin And while I understand that this is referring to PEP 578 audit hooks, I still think vdk-audit is clear enough and I will be grateful if you change it |
projects/vdk-plugins/vdk-audit-hook/src/vdk/plugin/audit_hook/audit_hook_config.py
Outdated
Show resolved
Hide resolved
projects/vdk-plugins/vdk-audit-hook/src/vdk/plugin/audit_hook/audit_hook_plugin.py
Outdated
Show resolved
Hide resolved
projects/vdk-plugins/vdk-audit-hook/tests/functional/test_audit_hook_plugin.py
Outdated
Show resolved
Hide resolved
projects/vdk-plugins/vdk-audit-hook/tests/functional/test_audit_hook_plugin.py
Outdated
Show resolved
Hide resolved
…e/versatile-data-kit into person/miroslavi/audit-hook-plugin
projects/vdk-plugins/vdk-audit/src/vdk/plugin/audit/audit_config.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a really cool feature.
projects/vdk-plugins/vdk-audit/src/vdk/plugin/audit/audit_plugin.py
Outdated
Show resolved
Hide resolved
projects/vdk-plugins/vdk-audit/src/vdk/plugin/audit/audit_plugin.py
Outdated
Show resolved
Hide resolved
projects/vdk-plugins/vdk-audit/src/vdk/plugin/audit/audit_plugin.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Currently, the VDK users have the ability to execute any kind of system commands through the data job. This increases the risk to the system as data jobs contain arbitrary user code.
Visibility into the actions provides opportunities for test frameworks, logging frameworks, and security tools to monitor and optionally limit actions taken by the runtime.
This plugin provides the ability to audit and potentially limit user actions. In order to reduce the attack surface, we will limit the user actions related to the interaction with the system like os commands (e.g.
os.system("ls")
). Also, to have a better understanding of what precisely the job does, we will log not permitted job actions. The plugin is based on the Python Audit Hook and you can find more information here - https://peps.python.org/pep-0578/.Testing Done: local job execution and unit tests
Signed-off-by: Miroslav Ivanov [email protected]