{"id":22576965,"url":"https://github.com/unitvectory-labs/gologhttpbinary","last_synced_at":"2025-07-05T00:33:26.694Z","repository":{"id":264379823,"uuid":"893199848","full_name":"UnitVectorY-Labs/gologhttpbinary","owner":"UnitVectorY-Labs","description":"A lightweight HTTP server that logs HTTP requests, including the body encoded in base64, enabling logging of binary payloads.","archived":false,"fork":false,"pushed_at":"2025-03-26T00:38:57.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T01:30:36.472Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UnitVectorY-Labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-23T19:47:39.000Z","updated_at":"2025-03-26T00:39:00.000Z","dependencies_parsed_at":"2025-01-11T20:26:52.123Z","dependency_job_id":"13cc77f9-5295-4224-95c4-d92314f77ed5","html_url":"https://github.com/UnitVectorY-Labs/gologhttpbinary","commit_stats":null,"previous_names":["unitvectory-labs/gologhttpbinary"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnitVectorY-Labs%2Fgologhttpbinary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnitVectorY-Labs%2Fgologhttpbinary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnitVectorY-Labs%2Fgologhttpbinary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnitVectorY-Labs%2Fgologhttpbinary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UnitVectorY-Labs","download_url":"https://codeload.github.com/UnitVectorY-Labs/gologhttpbinary/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246057965,"owners_count":20717023,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-08T04:10:32.126Z","updated_at":"2025-07-05T00:33:26.688Z","avatar_url":"https://github.com/UnitVectorY-Labs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GitHub release](https://img.shields.io/github/release/UnitVectorY-Labs/gologhttpbinary.svg)](https://github.com/UnitVectorY-Labs/gologhttpbinary/releases/latest) [![License](https://img.shields.io/badge/license-MIT-blue)](https://opensource.org/licenses/MIT) [![Active](https://img.shields.io/badge/Status-Active-green)](https://guide.unitvectorylabs.com/bestpractices/status/#active) [![Go Report Card](https://goreportcard.com/badge/github.com/UnitVectorY-Labs/gologhttpbinary)](https://goreportcard.com/report/github.com/UnitVectorY-Labs/gologhttpbinary)\n\n# gologhttpbinary\n\nA lightweight HTTP server that logs HTTP requests, including the body encoded in base64, enabling logging of binary payloads.\n\n## Purpose\n\nThis application captures all incoming HTTP requests and logs the path, headers, and the body of the request as a base64 encoded string. This is useful for debugging and logging binary payloads in a container environment.\n\n**Why use this?** It’s a straightforward tool for debugging, testing, and development, providing an easy way log requests to an HTTP server for inspection. The reason this was created was to log progobufs that were being sent to a server for debugging and testing as other tools were not capturing the binary data therefore logging the request as base64 as a solution.\n\n**Should I run this in production?** Absolutely not! This could expose sensitive information passed in the body or headers of the request.\n\n## Usage\n\nThe latest gologhttpbinary Docker image is available for deployment from GitHub Packages at [gologhttpbinary on GitHub Packages](https://github.com/UnitVectorY-Labs/gologhttpbinary/pkgs/container/gologhttpbinary).\n\nYou can easily deploy this application locally to test it out with the following command:\n\n```bash\ndocker run -p 8080:8080 ghcr.io/unitvectory-labs/gologhttpbinary:v0.2.1\n```\n\n## Example Log Output\n\nAll responses from this server return an HTTP 200 status code with a body of `OK`.  This application is designed to log request payloads for inspection.\n\nThe actual log payload has three attributes `path`, `headers`, and the one we are interested in `bodyBase64`.  The JSON is logged as a single line but is shown below as pretty printed as an example.\n\nFor exmaple:\n\n```json\n{\n  \"bodyBase64\": \"QklOQVJZIFJFUVVFU1QgR09FUyBIRVJF\",\n  \"headers\": {\n    \"Accept\": \"*/*\",\n    \"Accept-Encoding\": \"gzip, deflate, br\",\n    \"Connection\": \"keep-alive\",\n    \"Content-Length\": \"24\",\n    \"Content-Type\": \"text/plain\",\n    \"User-Agent\": \"demo-client\"\n  },\n  \"path\": \"/example\"\n}\n```\n\n## Configuration\n\nThis application runs as a docker container and can utilize the following environment variables:\n\n- `PORT` - The port the application listens on. (default `8080`).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funitvectory-labs%2Fgologhttpbinary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funitvectory-labs%2Fgologhttpbinary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funitvectory-labs%2Fgologhttpbinary/lists"}