Skip to content

CSE编程接口安全认证开启后,token 24小时后失效导致微服务全部下线 #1540

Description

@pishum

问题描述

在使用 Spring Cloud Huawei Service Engine (版本: 1.11.5-2022.0.x) 连接华为云 CSE 服务时,开启编程接口安全认证功能后,微服务在启动后正常运行,但在24小时后自动下线,与CSE服务断开连接。

环境信息

  • Spring Cloud 版本: 2022.0.5
  • Spring Boot 版本: 3.1.0
  • 华为云 Service Engine 版本: 1.11.5-2022.0.x
  • ServiceComb 引擎版本: 3.0.0.3

复现步骤

  1. bootstrap.yaml 中配置serviceComb的用户名密码。
  2. 启动微服务,服务正常注册到 CSE。
  3. 等待24小时后,微服务自动下线,与 CSE 服务断开连接。

预期行为

开启安全认证后,token 应该能够自动刷新,避免因 token 过期导致服务下线。

实际行为

token 在24小时后失效,导致微服务下线,服务注册状态异常。

建议

确认是否支持 token 自动刷新机制,或提供 token 刷新的配置项。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions