Rack middleware for end-to-end security through TCTP