Skip to content

Conversation

@mhamza15
Copy link

@mhamza15 mhamza15 commented Aug 7, 2025

…ableACLConfig is true (vitessio#17274)

This is a backport of vitessio#17274

Description

Related Issue(s)

Checklist

  • "Backport to:" labels have been added if this change should be back-ported
  • Tests were added or are not required
  • Documentation was added or is not required

Deployment Notes

…ableACLConfig is true (vitessio#17274)

Signed-off-by: garfthoffman <[email protected]>
Signed-off-by: Mohamed Hamza <[email protected]>
Co-authored-by: Mohamed Hamza <[email protected]>
@mhamza15 mhamza15 self-assigned this Aug 7, 2025
Copilot AI review requested due to automatic review settings August 7, 2025 16:53
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds validation to fail ACL config loading when the provided file is empty and enforceTableACLConfig is true. It's a backport of a change from the main branch to ensure proper error handling for empty ACL configuration files.

  • Adds validation to reject empty ACL configuration files
  • Includes test coverage for the new empty file validation behavior

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
go/vt/tableacl/tableacl.go Adds empty file validation in the init method to return an error when config file is empty
go/vt/tableacl/tableacl_test.go Adds test case to verify error handling for empty ACL config files

@mhamza15 mhamza15 merged commit d0c5269 into release-21.0-github Sep 3, 2025
161 of 196 checks passed
@mhamza15 mhamza15 deleted the mhamza/backport-17274-v21 branch September 3, 2025 15:34
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.

3 participants