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:27
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 loading an ACL config when the provided file is empty and enforceTableACLConfig is true. This prevents silent failures when empty configuration files are loaded, improving error handling and debugging.

  • Adds validation to check if ACL config file is empty and returns an error
  • Includes comprehensive test coverage for the empty config file scenario

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 that returns an error when config file has no content
go/vt/tableacl/tableacl_test.go Adds test case to verify error handling for empty config files

@mhamza15 mhamza15 merged commit c703f98 into release-20.0-github Aug 7, 2025
179 of 186 checks passed
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.

4 participants