where to add Trusted IP authentication

i want to expose my localhost:8000 to outside world to prometheus which is on K8. how to do that,

That sounds more like a networking an K8 question than a KumoMTA question as long as you have trusted_hosts configured for the listener.

no i want to expose outside like http://155.137.202.150:8000/metrics

i am getting this if i put in crome browser:
Missing Authorization header

i have hosted kumomta on this server: 155.137.202.150

And how is your listener configured?

kumo.start_http_listener {
listen = ‘0.0.0.0:8000’,
}

like this.

when i do curl localhost:8000 from server it self it is working, but in browser it is coming Missing Authorization header

but not working with its own public IP

KumoMTA has no default Auth header so there must be some code checking for that. It’s hard to tell without your configs.

tell me which file should i share

Init.lua would be helpful

Usually we want all your config s

Thanks. I deleted that because it seemed to contain secure data

any update ?

I did not see anything in your code that would indicate a problem. My best guess is that your host is interfering with port 8000 somehow. Maybe try another port.
This is not a behaviour I have ever seen and I have installed this literally thousands of times.

Assuming this is working and will close