Skip to content

Conversation

@Nikita-Shupletsov
Copy link
Contributor

@Nikita-Shupletsov Nikita-Shupletsov commented Oct 21, 2025

Implement KIP-1230.

Reviewers: Matthias J. Sax [email protected]

@github-actions github-actions bot added triage PRs from the community streams small Small PRs labels Oct 21, 2025
@mjsax mjsax added ci-approved and removed triage PRs from the community labels Oct 21, 2025
<td><code class="docutils literal"><span class="pre">10000</span></code></td>
</tr>
<tr class="row-even"><td>allow.os.group.write.access</td>
<td>Medium</td>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we think Medium is right? Maybe Low would be better? -- Did not bring this up on the KIP. Let me follow up there about it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my bad, overlooked when copied the code. fixed

.define(ALLOW_OS_GROUP_WRITE_ACCESS_CONFIG,
Type.BOOLEAN,
false,
Importance.LOW,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you set low -- We need to keep the code and cods consistent.

}

private void initializeStateDirectory(final boolean createStateDirectory, final boolean hasNamedTopology,
final boolean allowOsGroupWriteAccess) throws IOException {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: formatting -- we usually either keep all parameter in a single line, or make one line per parameter. The current formatting is kinda hard to read.


@Test
public void shouldHaveSecurePermissionsIfGroupWriteAccessAllowed() throws IOException {
initializeStateDirectory(true, false, true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we cleanup/delete the state directory we create in

    @BeforeEach
    public void before() throws IOException {
        initializeStateDirectory(true, false);
    }

before we init a new one?

Copy link
Contributor Author

@Nikita-Shupletsov Nikita-Shupletsov Oct 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to check that we update the permissions of the existing directories.
Updated the tests to better reflect that.

@mjsax
Copy link
Member

mjsax commented Oct 21, 2025

We would expect that an existing state directory get updated when the config is changed, ie, either revoke group write or grant it? We should add a test for it.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants