Part of log is
{“error”:“Temporary Redirect”,“kind”:“secret”,“level”:“trace”,“msg”:“secret: external: cannot get secret”,“name”:“gcr”,“time”:“2019-07-18T17:04:35+08:00”}
this tells me that something is trying to autoredirect the http request, e.g. from http to https. We disable auto-redirects because when an http POST is autoredirected it becomes a GET and therefore would fail anyway. My advice would therefore be to figure what is trying to redirect the http request (e.g. a reverse proxy, load balancer, etc) and to resolve the configuration.
Thanks for the advice, problem solved.
It’s the issue I set the wrong endpoint to the agent, should be drone/vault not vault.
The error occurs from that.