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

[TACACS] Fix when set TACACS to "tacacs+, local" user can run blocked command with local permission issue. #17749

Merged
merged 2 commits into from
Jan 26, 2024

Conversation

liuh-80
Copy link
Contributor

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

Fix when set TACACS to "tacacs+, local" user can run blocked command with local permission issue.

Why I did it

When set TACACS to "tacacs+, local", user still can run a blocked command with local permission.

Work item tracking
  • Microsoft ADO: 26399545

How I did it

Fix code to reject command when authorized failed from TACACS server side.

How to verify it

Pass all UT.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

  • SONiC.master-17749.460496-3414b9841
  • SONiC.202205.459917-1239ef1d8

Description for the changelog

Fix when set TACACS to "tacacs+, local" user can run blocked command with local permission issue.

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@liuh-80
Copy link
Contributor Author

liuh-80 commented Jan 12, 2024

UT failed because it's protech the incorrect hehavior, so we need remove the code first with this PR:

sonic-net/sonic-mgmt#11261

@liuh-80
Copy link
Contributor Author

liuh-80 commented Jan 22, 2024

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liuh-80 liuh-80 marked this pull request as ready for review January 22, 2024 09:37
@liuh-80 liuh-80 requested a review from qiluo-msft January 22, 2024 09:37
@liuh-80
Copy link
Contributor Author

liuh-80 commented Jan 26, 2024

This PR depends on UT PR cherry-pick to every branch first:
sonic-net/sonic-mgmt#11261
[202205] sonic-net/sonic-mgmt#11407
In the UT PR, already add request label and create manually cherry-pick PR for conflict branch.

mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Jan 30, 2024
… command with local permission issue. (sonic-net#17749)

Fix when set TACACS to "tacacs+, local" user can run blocked command with local permission issue.

#### Why I did it
When set TACACS to "tacacs+, local", user still can run a blocked command with local permission.

##### Work item tracking
- Microsoft ADO: 26399545

#### How I did it
Fix code to reject command when authorized failed from TACACS server side.

#### How to verify it
Pass all UT.

### Description for the changelog
Fix when set TACACS to "tacacs+, local" user can run blocked command with local permission issue.
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202305: #17944

mssonicbld pushed a commit that referenced this pull request Jan 30, 2024
… command with local permission issue. (#17749)

Fix when set TACACS to "tacacs+, local" user can run blocked command with local permission issue.

#### Why I did it
When set TACACS to "tacacs+, local", user still can run a blocked command with local permission.

##### Work item tracking
- Microsoft ADO: 26399545

#### How I did it
Fix code to reject command when authorized failed from TACACS server side.

#### How to verify it
Pass all UT.

### Description for the changelog
Fix when set TACACS to "tacacs+, local" user can run blocked command with local permission issue.
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Feb 2, 2024
… command with local permission issue. (sonic-net#17749)

Fix when set TACACS to "tacacs+, local" user can run blocked command with local permission issue.

#### Why I did it
When set TACACS to "tacacs+, local", user still can run a blocked command with local permission.

##### Work item tracking
- Microsoft ADO: 26399545

#### How I did it
Fix code to reject command when authorized failed from TACACS server side.

#### How to verify it
Pass all UT.

### Description for the changelog
Fix when set TACACS to "tacacs+, local" user can run blocked command with local permission issue.
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202311: #17999

mssonicbld pushed a commit that referenced this pull request Feb 2, 2024
… command with local permission issue. (#17749)

Fix when set TACACS to "tacacs+, local" user can run blocked command with local permission issue.

#### Why I did it
When set TACACS to "tacacs+, local", user still can run a blocked command with local permission.

##### Work item tracking
- Microsoft ADO: 26399545

#### How I did it
Fix code to reject command when authorized failed from TACACS server side.

#### How to verify it
Pass all UT.

### Description for the changelog
Fix when set TACACS to "tacacs+, local" user can run blocked command with local permission issue.
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.

5 participants