Skip to content

feat(auth): grant RLA permission to SetMaintenance#792

Merged
kunzhao-nv merged 7 commits intoNVIDIA:mainfrom
kunzhao-nv:kunzhao/add-rla-set-maintenance
Apr 3, 2026
Merged

feat(auth): grant RLA permission to SetMaintenance#792
kunzhao-nv merged 7 commits intoNVIDIA:mainfrom
kunzhao-nv:kunzhao/add-rla-set-maintenance

Conversation

@kunzhao-nv
Copy link
Copy Markdown
Contributor

@kunzhao-nv kunzhao-nv commented Apr 2, 2026

Description

Allow the RLA internal caller to invoke SetMaintenance, aligning it with other RLA-authorized operations. This is a prerequisite to trigger power off api.

Type of Change

  • Add - New feature or capability
  • Change - Changes in existing functionality
  • Fix - Bug fixes
  • Remove - Removed features or deprecated functionality
  • Internal - Internal changes (refactoring, tests, docs, etc.)

Related Issues (Optional)

Breaking Changes

  • This PR contains breaking changes

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed
  • No testing required (docs, internal refactor, etc.)

Additional Notes

Copilot AI review requested due to automatic review settings April 2, 2026 20:10
@kunzhao-nv kunzhao-nv requested a review from a team as a code owner April 2, 2026 20:10
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot bot commented Apr 2, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

Copy link
Copy Markdown

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

Allows the internal Rla caller principal to invoke the SetMaintenance RPC, aligning SetMaintenance authorization with other RLA-authorized operations.

Changes:

  • Add Rla to the allowed principals list for the SetMaintenance permission in internal RBAC rules.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Matthias247
Copy link
Copy Markdown
Contributor

SetMaintenance is marked as deprecated and replaced by health-override APIs. You should use the latter.

Allow the Rla internal caller to invoke SetMaintenance, aligning it
with other RLA-authorized operations like TriggerHostReprovisioning.

Signed-off-by: Kun Zhao <kunzhao@nvidia.com>
Signed-off-by: Kun Zhao <kunzhao@nvidia.com>
@kunzhao-nv kunzhao-nv force-pushed the kunzhao/add-rla-set-maintenance branch from dd273a5 to a2a0ce4 Compare April 2, 2026 21:20
@kunzhao-nv kunzhao-nv changed the title feat(auth): grant Rla permission to SetMaintenance feat(auth): grant RLA permission to SetMaintenance Apr 2, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

🔐 TruffleHog Secret Scan

No secrets or credentials found!

Your code has been scanned for 700+ types of secrets and credentials. All clear! 🎉

🔗 View scan details

🕐 Last updated: 2026-04-02 21:22:21 UTC | Commit: d20dc3f

Add Rla to InsertHealthReportOverride and RemoveHealthReportOverride,
which are the preferred APIs over the legacy SetMaintenance wrapper.

Signed-off-by: Kun Zhao <kunzhao@nvidia.com>
@kunzhao-nv kunzhao-nv force-pushed the kunzhao/add-rla-set-maintenance branch from d20dc3f to 9f3cbcb Compare April 2, 2026 21:25
@kunzhao-nv
Copy link
Copy Markdown
Contributor Author

SetMaintenance is marked as deprecated and replaced by health-override APIs. You should use the latter.

Thanks for the info. Grant access for those apis as well.

@kunzhao-nv kunzhao-nv enabled auto-merge (squash) April 2, 2026 21:28
@kunzhao-nv kunzhao-nv merged commit ef64f14 into NVIDIA:main Apr 3, 2026
83 of 84 checks passed
wminckler pushed a commit to wminckler/ncx-infra-controller-core that referenced this pull request Apr 3, 2026
Allow the RLA internal caller to invoke SetMaintenance, aligning it with
other RLA-authorized operations. This is a prerequisite to trigger power
off api.

Signed-off-by: Kun Zhao <kunzhao@nvidia.com>
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.

7 participants