skywalking权限验证功能

版本:7.0.0

描述

为了数据传输安全,确保网络连接是安全的。采用 Token 认证确保采集的应用数据是被信任的。
当前版本,仅支持简单的字符串 Token

配置

  1. 代理端配置文件agent.config设置
# Authentication active is based on backend setting, see application.yml for more details.
agent.authentication = ${SW_AGENT_AUTHENTICATION:xxxx}
  1. 服务端application.yml里面,receiver-sharing-serverauthentication
receiver-sharing-server:
  default:
    authentication: ${SW_AUTHENTICATION:""}

验证

agent端配置的TokenOapServer端配置的Token不匹配时,agent端将会打印如下日志:

org.apache.skywalking.apm.dependencies.io.grpc.StatusRuntimeException: PERMISSION_DENIED
原文地址:https://www.cnblogs.com/kebibuluan/p/14024134.html