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

[APIGW]: signature management #613

Merged
merged 1 commit into from
Jan 18, 2024
Merged

[APIGW]: signature management #613

merged 1 commit into from
Jan 18, 2024

Conversation

artem-lifshits
Copy link
Member

@artem-lifshits artem-lifshits commented Jan 18, 2024

What this PR does / why we need it

Management for APIGW signature keys.
Refers to: #2403.

Acceptance tests

=== RUN TestSignatureKeyLifecycle
tools.go:72: {
"name": "test_sign_key_2Nz7Q",
"sign_type": "aes",
"sign_key": "etWoMAzS6aYwydgD",
"sign_secret": "7ddwhkMyocfNFpdd",
"sign_algorithm": "aes-128-cfb",
"update_time": "2024-01-18T10:27:20.433961966Z",
"create_time": "2024-01-18T10:27:20Z",
"id": "e8d4927872e84862a8bb471d298464dd"
}
--- PASS: TestSignatureKeyLifecycle (1.09s)
=== RUN TestSignatureKeyList
tools.go:72: []
--- PASS: TestSignatureKeyList (0.50s)
=== RUN TestSignatureKeyBinding
tools.go:72: [
{
"publish_id": "bb7847c7f9d8402e90013a1c1592672c",
"api_id": "3f8b081a45a84c8498afbe35e2f43463",
"api_type": 2,
"api_name": "test_api_n8IOQ",
"api_remark": "test env",
"env_id": "e93fa328459a4da09a0887ea1d3cd877",
"env_name": "test_env_Rw2ia",
"group_name": "apigw_group-tDW",
"name": "",
"sign_type": "aes",
"sign_key": "qdpSh6679jMrkEqrhRYbMldUDNK93yd3",
"sign_secret": "LheVzuvOH1Q7W1wX",
"sign_algorithm": "",
"binding_time": "2024-01-18T10:27:23Z",
"id": "c8d5a77c12be42288cb5f069aa8d1800",
"sign_id": "bb7942bf09c045baa7f09ed44507c2fb",
"sign_name": "test_sign_key_7DEPG"
}
]
tools.go:72: [
{
"publish_id": "bb7847c7f9d8402e90013a1c1592672c",
"api_id": "3f8b081a45a84c8498afbe35e2f43463",
"api_type": 2,
"api_name": "test_api_n8IOQ",
"api_remark": "test env",
"env_id": "e93fa328459a4da09a0887ea1d3cd877",
"env_name": "test_env_Rw2ia",
"group_name": "apigw_group-tDW",
"name": "",
"sign_type": "",
"sign_key": "",
"sign_secret": "",
"sign_algorithm": "",
"binding_time": "2024-01-18T10:27:23Z",
"id": "c8d5a77c12be42288cb5f069aa8d1800",
"sign_id": "bb7942bf09c045baa7f09ed44507c2fb",
"sign_name": "test_sign_key_7DEPG"
}
]
tools.go:72: [
{
"auth_type": "IAM",
"run_env_name": "test_env_Rw2ia",
"group_name": "apigw_group-tDW",
"publish_id": "bb7847c7f9d8402e90013a1c1592672c",
"group_id": "b5dd967189d340909c00f6a9b0631a64",
"name": "test_api_n8IOQ",
"Remark": "test env",
"run_env_id": "e93fa328459a4da09a0887ea1d3cd877",
"id": "3f8b081a45a84c8498afbe35e2f43463",
"req_uri": "/test/http",
"type": 2,
"signature_name": ""
}
]
--- PASS: TestSignatureKeyBinding (4.19s)
PASS

Process finished with the exit code 0

@artem-lifshits artem-lifshits added the gate Merge PR label Jan 18, 2024
Copy link
Contributor

otc-zuul bot commented Jan 18, 2024

Build succeeded.
https://zuul.otc-service.com/t/eco/buildset/bce28a595a1244879200799716f36de2

✔️ otc-golangci-lint SUCCESS in 2m 26s
✔️ golang-make-vet SUCCESS in 2m 13s
✔️ golang-make-test SUCCESS in 6m 17s
✔️ golang-make-functional SUCCESS in 10m 52s

@otc-zuul otc-zuul bot merged commit 1eed883 into devel Jan 18, 2024
2 checks passed
@otc-zuul otc-zuul bot deleted the signature_key branch January 18, 2024 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gate Merge PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants