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

Restrict classes allowed for cluster config and event types (#18165) #18179

Merged
merged 3 commits into from
Feb 6, 2024

Conversation

bernd
Copy link
Member

@bernd bernd commented Feb 6, 2024

Add a new safe_classes configuration option to restrict the classes allowed to be used as cluster config and event types.
The configuration option allows to specify a comma-separated set of prefixes matched against the fully qualified class name.

For now, the default value for the configuration is org.graylog.,org.graylog2., which will allow all classes that Graylog maintains.

This should work out of the box for almost all setups. Changing the default value might only be necessary if external plugins require cluster config or event types outside the "org.graylog." or "org.graylog2." namespaces. If that is the case, the configuration setting can be adjusted to cover this use case, e.b. by setting it to

safe_classes = org.graylog.,org.graylog2.,custom.plugin.namespace.

if said classes are located within the custom.plugin.namespace package.

Refs: GHSA-p6gg-5hf4-4rgj

(cherry picked from commit 8132032)

Verified

This commit was signed with the committer’s verified signature.
bernd Bernd Ahlers
Add a new safe_classes configuration option to restrict the classes allowed to be used
as cluster config and event types.
The configuration option allows to specify a comma-separated set of prefixes matched
against the fully qualified class name.

For now, the default value for the configuration is org.graylog.,org.graylog2., which will
allow all classes that Graylog maintains.

This should work out of the box for almost all setups. Changing the default value might
only be necessary if external plugins require cluster config or event types outside the
"org.graylog." or "org.graylog2." namespaces. If that is the case, the configuration setting
can be adjusted to cover this use case, e.b. by setting it to

    safe_classes = org.graylog.,org.graylog2.,custom.plugin.namespace.

if said classes are located within the custom.plugin.namespace package.

Refs: GHSA-p6gg-5hf4-4rgj

(cherry picked from commit 8132032)
@bernd bernd requested a review from kroepke February 6, 2024 14:54
bernd added 2 commits February 6, 2024 15:57

Verified

This commit was signed with the committer’s verified signature.
bernd Bernd Ahlers

Verified

This commit was signed with the committer’s verified signature.
bernd Bernd Ahlers
@bernd bernd merged commit 75ef2b8 into 5.1 Feb 6, 2024
@bernd bernd deleted the add/restricted-classloader-5.1 branch February 6, 2024 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants