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

[202205] [TACACS] Fix TACACS authorization issue: user can run rejected command when enable local authorization as fallback. #11407

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

liuh-80
Copy link
Contributor

@liuh-80 liuh-80 commented Jan 26, 2024

Fix TACACS authorization issue: user can run rejected command when enable local authorization as fallback.
This is a cherry-pick PR for #11261

Description of PR

Fix TACACS authorization issue: user can run rejected command when enable local authorization as fallback.

Work item tracking
  • Microsoft ADO: 26399545

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

per-command authorization found a code bug: When set per-command authorization to "tacacs+, local", user command blocked by server side but has local permission should failed. but currently it can success.

The UT code changed by this PR is testing and protect this incorrect behavior.

How did you do it?

Create issue: #11349
Fix UT and ignore it temporarily by this issue.

How did you verify/test it?

Pass all UT

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

…d when enable local authorization as fallback. (sonic-net#11261)

What is the motivation for this PR?
per-command authorization found a code bug: When set per-command authorization to "tacacs+, local", user command blocked by server side but has local permission should failed. but currently it can success.

The UT code changed by this PR is testing and protect this incorrect behavior.

How did you do it?
Create issue: sonic-net#11349
Fix UT and ignore it temporarily by this issue.

How did you verify/test it?
Pass all UT
@wangxin wangxin merged commit 4c5b44c into sonic-net:202205 Feb 2, 2024
10 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.

2 participants