版本:7.0.0
描述
为了数据传输安全,确保网络连接是安全的。采用 Token 认证确保采集的应用数据是被信任的。
当前版本,仅支持简单的字符串 Token
配置
代理端配置文件
agent.config设置Authentication active is based on backend setting, see application.yml for more details.
agent.authentication = ${SW_AGENT_AUTHENTICATION:xxxx}
服务端
application.yml里面,receiver-sharing-server下authenticationreceiver-sharing-server: default: authentication: ${SW_AUTHENTICATION:""}
验证
当agent端配置的Token和OapServer端配置的Token不匹配时,agent端将会打印如下日志:
org.apache.skywalking.apm.dependencies.io.grpc.StatusRuntimeException: PERMISSION_DENIED