Skip to content

[202411] Add cert multiple roles support #438

Merged
kperumalbfn merged 3 commits intosonic-net:202411from
liuh-80:dev/liuh/multirole_202411_cp
Jul 24, 2025
Merged

[202411] Add cert multiple roles support #438
kperumalbfn merged 3 commits intosonic-net:202411from
liuh-80:dev/liuh/multirole_202411_cp

Conversation

@liuh-80
Copy link
Copy Markdown
Contributor

@liuh-80 liuh-80 commented Jul 8, 2025

Add cert multiple roles support

Why I did it

Some scenarios need GNMI support multiple roles
Cherry-pick #366

How I did it

Change CONFIG_DB schema and read multiple roles from CONFIG_DB

How to verify it

Manually test.
Add new UT.

Work item tracking

Microsoft ADO (number only): 31561802

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

Add cert multiple roles support

Link to config_db schema for YANG module changes

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

* Update clientCertAuth.go

* Update server_test.go

* Add strings package import in clientCertAuth.go

* Fix role key lookup in clientCertAuth

* Add backward compatibility for single role schema

* Add tests for client certificate authentication
@mssonicbld
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@liuh-80 liuh-80 requested a review from ganglyu July 8, 2025 09:22
@kperumalbfn kperumalbfn merged commit 1f1eccf into sonic-net:202411 Jul 24, 2025
5 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