[GH-ISSUE #672] [Bug] 部署gcore报错 #451

Closed
opened 2026-03-03 01:03:27 +03:00 by kerem · 0 comments
Owner

Originally created by @HanadaLee on GitHub (May 10, 2025).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/672

软件版本 / Release Version

v0.3.10

缺陷描述 / Description

gcore更新证书时在关联新证书到资源时入参错误

复现步骤 / Steps to reproduce

  1. 从gcore获得key
  2. 创建工作流,指定部署到gcore cdn
  3. 执行工作流,具体日志如上,似乎是有字段不能为null

日志 / Logs

[2025-05-10 13:38:04]
ready to deploy ...
[2025-05-10 13:38:06]
sdk request 'sslcerts.Create'
[2025-05-10 13:38:06]
ssl certificate uploaded
[2025-05-10 13:48:21]
sdk request 'resources.Get'
resourceId:
689895
response:
{"id":689895,"name":"","created":"2024-06-27T17:06:03.733487Z","updated":"2025-05-10T05:48:07.535103Z","status":"active","active":true,"client":369788,"originGroup":837673,"cname":"dockerhub.example.com","description":"docker images - nexus","secondaryHostnames":["gcr.example.com","ghcr.example.com","quay.example.com","registry.example.com"],"shielded":false,"sslEnabled":true,"sslData":206395,"originProtocol":"MATCH","proxy_ssl_enabled":false,"proxy_ssl_ca":0,"proxy_ssl_data":0,"primary_resource":0,"options":{"allowedHttpMethods":null,"bot_challenge_module":null,"brotli_compression":null,"browser_cache_settings":{"enabled":true,"value":""},"cache_http_headers":null,"cors":null,"country_acl":{"enabled":false,"policy_type":"allow","excepted_values":[]},"disable_cache":null,"disable_proxy_force_ranges":null,"edge_cache_settings":{"enabled":true,"value":"","custom_values":null,"default":"0s"},"fastedge":null,"fetch_compressed":null,"follow_origin_redirect":null,"force_return":{"enabled":false,"code":200,"body":""},"forward_host_header":{"enabled":true,"value":true},"gzipOn":null,"hostHeader":null,"http3_enabled":null,"ignore_cookie":{"enabled":true,"value":true},"ignoreQueryString":null,"image_stack":null,"ip_address_acl":null,"limit_bandwidth":null,"proxy_cache_key":null,"proxy_cache_methods_set":null,"proxy_connect_timeout":{"enabled":true,"value":"5"},"proxy_read_timeout":{"enabled":true,"value":"30"},"query_params_blacklist":null,"query_params_whitelist":null,"query_string_forwarding":null,"redirect_https_to_http":null,"redirect_http_to_https":{"enabled":true,"value":true},"referrer_acl":null,"request_limiter":null,"response_headers_hiding_policy":{"enabled":false,"mode":"hide","excepted":["etag","date","keep-alive","vary","content-type","connection","cache-control","accept-ranges","last-modified","content-encoding","expires","content-length","server"]},"rewrite":null,"secure_key":null,"slice":{"enabled":true,"value":true},"sni":{"enabled":true,"sni_type":"dynamic","custom_hostname":""},"stale":{"enabled":true,"value":["error","updating","timeout"]},"staticHeaders":null,"staticRequestHeaders":{"enabled":true,"value":{"X-Cdn":"Gcore","X-Forwarded-Proto":"https","X-Resty-Server-Port":"443"}},"static_response_headers":{"enabled":true,"value":[{"name":"X-Cdn","value":["Gcore"],"always":true}]},"tls_versions":{"enabled":true,"value":["TLSv1.3","TLSv1.2"]},"use_default_le_chain":null,"use_dns01_le_challenge":null,"user_agent_acl":null,"use_rsa_le_cert":null,"waap":null,"waf":null,"websockets":null}}
[2025-05-10 13:38:07]
sdk request 'resources.Update'
request:
{"description":"docker images - nexus","active":true,"originGroup":837673,"originProtocol":"HTTPS","secondaryHostnames":["gcr.example.com","ghcr.example.com","quay.example.com","registry.example.com"],"sslEnabled":true,"sslData":245720,"proxy_ssl_enabled":false,"proxy_ssl_ca":null,"proxy_ssl_data":null,"options":{"allowedHttpMethods":null,"bot_challenge_module":null,"brotli_compression":null,"browser_cache_settings":{"enabled":true,"value":""},"cache_http_headers":null,"cors":null,"country_acl":{"enabled":false,"policy_type":"allow","excepted_values":[]},"disable_cache":null,"disable_proxy_force_ranges":null,"edge_cache_settings":{"enabled":true,"value":"","custom_values":null,"default":"0s"},"fastedge":null,"fetch_compressed":null,"follow_origin_redirect":null,"force_return":{"enabled":false,"code":200,"body":""},"forward_host_header":{"enabled":true,"value":true},"gzipOn":null,"hostHeader":null,"http3_enabled":null,"ignore_cookie":{"enabled":true,"value":true},"ignoreQueryString":null,"image_stack":null,"ip_address_acl":null,"limit_bandwidth":null,"proxy_cache_key":null,"proxy_cache_methods_set":null,"proxy_connect_timeout":{"enabled":true,"value":"5"},"proxy_read_timeout":{"enabled":true,"value":"30"},"query_params_blacklist":null,"query_params_whitelist":null,"query_string_forwarding":null,"redirect_https_to_http":null,"redirect_http_to_https":{"enabled":true,"value":true},"referrer_acl":null,"request_limiter":null,"response_headers_hiding_policy":null,"rewrite":null,"secure_key":null,"slice":{"enabled":true,"value":true},"sni":{"enabled":true,"sni_type":"dynamic","custom_hostname":""},"stale":{"enabled":true,"value":["error","updating","timeout"]},"staticHeaders":null,"staticRequestHeaders":{"enabled":true,"value":{"X-Cdn":"Gcore","X-Forwarded-Proto":"https","X-Resty-Server-Port":"443"}},"static_response_headers":{"enabled":true,"value":[{"name":"X-Cdn","value":["Gcore"],"always":true}]},"tls_versions":{"enabled":true,"value":["TLSv1.3","TLSv1.2"]},"use_default_le_chain":null,"use_dns01_le_challenge":null,"user_agent_acl":null,"use_rsa_le_cert":null,"waap":null,"waf":null,"websockets":null}}
resourceId:
689895
response:
null
[2025-05-10 13:38:07]
failed to deploy
[2025-05-10 13:38:07]
failed to execute sdk request 'resources.Update': request: { "options": { "edge_cache_settings": { "custom_values": [ "This field may not be null." ] } } }

其他 / Miscellaneous

在官方控制台发起修改请求时的POST信息,似乎没有修改的字段不需要入参

{"sslData":206395,"sslEnabled":true,"id":689895,"name":null,"enabled":true,"active":true,"originGroup":837673,"originProtocol":"MATCH","description":"docker images - nexus","origin":null,"cname":"dockerhub.example.com","secondaryHostnames":["gcr.example.com","ghcr.example.com","quay.example.com","registry.example.com"],"shieldDatacenter":null,"shielded":false,"vp_enabled":false,"options":{}}

上面这个我只修改了回源协议,也就是originProtocol

Originally created by @HanadaLee on GitHub (May 10, 2025). Original GitHub issue: https://github.com/certimate-go/certimate/issues/672 ### 软件版本 / Release Version v0.3.10 ### 缺陷描述 / Description gcore更新证书时在关联新证书到资源时入参错误 ### 复现步骤 / Steps to reproduce 1. 从gcore获得key 2. 创建工作流,指定部署到gcore cdn 3. 执行工作流,具体日志如上,似乎是有字段不能为null ### 日志 / Logs <details> ```console [2025-05-10 13:38:04] ready to deploy ... [2025-05-10 13:38:06] sdk request 'sslcerts.Create' [2025-05-10 13:38:06] ssl certificate uploaded [2025-05-10 13:48:21] sdk request 'resources.Get' resourceId: 689895 response: {"id":689895,"name":"","created":"2024-06-27T17:06:03.733487Z","updated":"2025-05-10T05:48:07.535103Z","status":"active","active":true,"client":369788,"originGroup":837673,"cname":"dockerhub.example.com","description":"docker images - nexus","secondaryHostnames":["gcr.example.com","ghcr.example.com","quay.example.com","registry.example.com"],"shielded":false,"sslEnabled":true,"sslData":206395,"originProtocol":"MATCH","proxy_ssl_enabled":false,"proxy_ssl_ca":0,"proxy_ssl_data":0,"primary_resource":0,"options":{"allowedHttpMethods":null,"bot_challenge_module":null,"brotli_compression":null,"browser_cache_settings":{"enabled":true,"value":""},"cache_http_headers":null,"cors":null,"country_acl":{"enabled":false,"policy_type":"allow","excepted_values":[]},"disable_cache":null,"disable_proxy_force_ranges":null,"edge_cache_settings":{"enabled":true,"value":"","custom_values":null,"default":"0s"},"fastedge":null,"fetch_compressed":null,"follow_origin_redirect":null,"force_return":{"enabled":false,"code":200,"body":""},"forward_host_header":{"enabled":true,"value":true},"gzipOn":null,"hostHeader":null,"http3_enabled":null,"ignore_cookie":{"enabled":true,"value":true},"ignoreQueryString":null,"image_stack":null,"ip_address_acl":null,"limit_bandwidth":null,"proxy_cache_key":null,"proxy_cache_methods_set":null,"proxy_connect_timeout":{"enabled":true,"value":"5"},"proxy_read_timeout":{"enabled":true,"value":"30"},"query_params_blacklist":null,"query_params_whitelist":null,"query_string_forwarding":null,"redirect_https_to_http":null,"redirect_http_to_https":{"enabled":true,"value":true},"referrer_acl":null,"request_limiter":null,"response_headers_hiding_policy":{"enabled":false,"mode":"hide","excepted":["etag","date","keep-alive","vary","content-type","connection","cache-control","accept-ranges","last-modified","content-encoding","expires","content-length","server"]},"rewrite":null,"secure_key":null,"slice":{"enabled":true,"value":true},"sni":{"enabled":true,"sni_type":"dynamic","custom_hostname":""},"stale":{"enabled":true,"value":["error","updating","timeout"]},"staticHeaders":null,"staticRequestHeaders":{"enabled":true,"value":{"X-Cdn":"Gcore","X-Forwarded-Proto":"https","X-Resty-Server-Port":"443"}},"static_response_headers":{"enabled":true,"value":[{"name":"X-Cdn","value":["Gcore"],"always":true}]},"tls_versions":{"enabled":true,"value":["TLSv1.3","TLSv1.2"]},"use_default_le_chain":null,"use_dns01_le_challenge":null,"user_agent_acl":null,"use_rsa_le_cert":null,"waap":null,"waf":null,"websockets":null}} [2025-05-10 13:38:07] sdk request 'resources.Update' request: {"description":"docker images - nexus","active":true,"originGroup":837673,"originProtocol":"HTTPS","secondaryHostnames":["gcr.example.com","ghcr.example.com","quay.example.com","registry.example.com"],"sslEnabled":true,"sslData":245720,"proxy_ssl_enabled":false,"proxy_ssl_ca":null,"proxy_ssl_data":null,"options":{"allowedHttpMethods":null,"bot_challenge_module":null,"brotli_compression":null,"browser_cache_settings":{"enabled":true,"value":""},"cache_http_headers":null,"cors":null,"country_acl":{"enabled":false,"policy_type":"allow","excepted_values":[]},"disable_cache":null,"disable_proxy_force_ranges":null,"edge_cache_settings":{"enabled":true,"value":"","custom_values":null,"default":"0s"},"fastedge":null,"fetch_compressed":null,"follow_origin_redirect":null,"force_return":{"enabled":false,"code":200,"body":""},"forward_host_header":{"enabled":true,"value":true},"gzipOn":null,"hostHeader":null,"http3_enabled":null,"ignore_cookie":{"enabled":true,"value":true},"ignoreQueryString":null,"image_stack":null,"ip_address_acl":null,"limit_bandwidth":null,"proxy_cache_key":null,"proxy_cache_methods_set":null,"proxy_connect_timeout":{"enabled":true,"value":"5"},"proxy_read_timeout":{"enabled":true,"value":"30"},"query_params_blacklist":null,"query_params_whitelist":null,"query_string_forwarding":null,"redirect_https_to_http":null,"redirect_http_to_https":{"enabled":true,"value":true},"referrer_acl":null,"request_limiter":null,"response_headers_hiding_policy":null,"rewrite":null,"secure_key":null,"slice":{"enabled":true,"value":true},"sni":{"enabled":true,"sni_type":"dynamic","custom_hostname":""},"stale":{"enabled":true,"value":["error","updating","timeout"]},"staticHeaders":null,"staticRequestHeaders":{"enabled":true,"value":{"X-Cdn":"Gcore","X-Forwarded-Proto":"https","X-Resty-Server-Port":"443"}},"static_response_headers":{"enabled":true,"value":[{"name":"X-Cdn","value":["Gcore"],"always":true}]},"tls_versions":{"enabled":true,"value":["TLSv1.3","TLSv1.2"]},"use_default_le_chain":null,"use_dns01_le_challenge":null,"user_agent_acl":null,"use_rsa_le_cert":null,"waap":null,"waf":null,"websockets":null}} resourceId: 689895 response: null [2025-05-10 13:38:07] failed to deploy [2025-05-10 13:38:07] failed to execute sdk request 'resources.Update': request: { "options": { "edge_cache_settings": { "custom_values": [ "This field may not be null." ] } } } ``` </details> ### 其他 / Miscellaneous 在官方控制台发起修改请求时的POST信息,似乎没有修改的字段不需要入参 ```json {"sslData":206395,"sslEnabled":true,"id":689895,"name":null,"enabled":true,"active":true,"originGroup":837673,"originProtocol":"MATCH","description":"docker images - nexus","origin":null,"cname":"dockerhub.example.com","secondaryHostnames":["gcr.example.com","ghcr.example.com","quay.example.com","registry.example.com"],"shieldDatacenter":null,"shielded":false,"vp_enabled":false,"options":{}} ``` 上面这个我只修改了回源协议,也就是originProtocol
kerem 2026-03-03 01:03:27 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/certimate#451
No description provided.