Skip to content

feat: add support for secure encrypted access to Aliyun models#511

Merged
AlbumenJ merged 12 commits intoagentscope-ai:mainfrom
karsonto:develop-issue#497
Jan 14, 2026
Merged

feat: add support for secure encrypted access to Aliyun models#511
AlbumenJ merged 12 commits intoagentscope-ai:mainfrom
karsonto:develop-issue#497

Conversation

@karsonto
Copy link
Contributor

@karsonto karsonto commented Jan 11, 2026

This PR implements secure encrypted access to Aliyun DashScope models using AES-GCM encryption with RSA key exchange, addressing issue #497. The implementation follows Aliyun's encryption protocol requirements for secure cloud model inference, supporting TLS encryption and token-based authentication to comply with enterprise security policies.

With Encryption (New Feature):
DashScopeChatModel model = DashScopeChatModel.builder()
.apiKey(System.getenv("DASHSCOPE_API_KEY"))
.modelName("qwen-max")
.enableEncrypt(true) // Automatically fetches public key from API
.build();

@karsonto karsonto requested a review from a team January 11, 2026 15:32
@cla-assistant
Copy link

cla-assistant bot commented Jan 11, 2026

CLA assistant check
All committers have signed the CLA.

@codecov
Copy link

codecov bot commented Jan 11, 2026

@AlbumenJ
Copy link
Collaborator

Can we implement https://help.aliyun.com/zh/model-studio/model-interface-aes-encryption in DashScopeChatModel?

@karsonto
Copy link
Contributor Author

@AlbumenJ Could you please review this?

@AlbumenJ AlbumenJ merged commit 4555b06 into agentscope-ai:main Jan 14, 2026
4 checks passed
@karsonto karsonto deleted the develop-issue#497 branch January 14, 2026 03:10
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