hi @eddie-rowe, Resolved it by removing the default token from the consul.json config file and adding deny policy. Thanks for your help!
Deny anonymous policy content:
service_prefix "" { policy = "deny" }
service "" { policy = "deny" }
key_prefix "" { policy = "deny" }
node_prefix "" { policy = "deny" }
agent_prefix "" { policy = "deny" }
query_prefix "" { policy = "deny" }
Current consul config:
{
"addresses": {"https": "0.0.0.0","http": "127.0.0.1"},
"ports": {"https": 8500,"http": 8400},
"acl" : {
"enabled": true,
"default_policy": "deny",
"down_policy": "extend-cache",
"tokens" : {
"agent" : "my-agent-token"
}
},
"verify_outgoing": true,
"verify_incoming_rpc": false
}
Earlier had the default token along with the agent in the config file! Guess i had missed it in my previous response.