版本: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
下authentication
receiver-sharing-server:
default:
authentication: ${SW_AUTHENTICATION:""}
驗證
當agent
端配置的Token
和OapServer
端配置的Token
不匹配時,agent
端將會打印如下日志:
org.apache.skywalking.apm.dependencies.io.grpc.StatusRuntimeException: PERMISSION_DENIED