mirror of https://github.com/alibaba/nacos.git
Resolves #13824 This commit adds support for authentication of AI-related gRPC requests (AbstractMcpRequest and AbstractAgentRequest) in the Nacos auth module. Key changes: - Implement AiGrpcResourceParser to extract namespace, group and resource name from AI protocol requests. - Register AiGrpcResourceParser under SignType.AI in GrpcProtocolAuthService. - Add comprehensive unit tests using parameterized testing to cover both MCP and Agent request types, including edge cases (null/empty fields). - Fix missing security token refresh in AiGrpcClient by initializing SecurityProxy with scheduled login task. Ensures that all incoming AI gRPC requests are properly authenticated when security is enabled, closing a previous authorization gap. |
||
---|---|---|
.. | ||
src | ||
pom.xml |