{"id":16800007,"url":"https://github.com/dajudge/mssqlproxy","last_synced_at":"2025-03-17T05:17:07.536Z","repository":{"id":137028257,"uuid":"259058487","full_name":"dajudge/mssqlproxy","owner":"dajudge","description":"A proxy sidecar for moving security with MSSQL out of your services.","archived":false,"fork":false,"pushed_at":"2020-05-16T11:42:38.000Z","size":106,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T14:51:18.418Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dajudge.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":"2020-04-26T15:01:26.000Z","updated_at":"2024-11-20T07:51:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"c3dac4d3-75d2-49e1-abf7-2993e5381b93","html_url":"https://github.com/dajudge/mssqlproxy","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dajudge%2Fmssqlproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dajudge%2Fmssqlproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dajudge%2Fmssqlproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dajudge%2Fmssqlproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dajudge","download_url":"https://codeload.github.com/dajudge/mssqlproxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243976474,"owners_count":20377691,"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-10-13T09:30:29.708Z","updated_at":"2025-03-17T05:17:07.518Z","avatar_url":"https://github.com/dajudge.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"mssqlproxy\n-\nA proxy sidecar for moving security with MSSQL out of your services.\n\nYou connect to the proxy with any username / password combination and the proxy injects the correct login credentials.\n\n# Usage\n```shell script\n$ docker run -p 1433:1433 -e MSSQLPROXY_PROXIES=\"0.0.0.0:1433=username:password@mssql-server:1433\" -d dajudge/mssqlproxy:0.0.2\n```\n\n`MSSQLPROXY_PROXIES` is a comma-separated list of proxy definitions where each proxy definition looks like this:\n```\n\u003cbindAddress\u003e:\u003cbindPort\u003e=\u003cusername\u003e:\u003cpassword\u003e@\u003cserverHostname\u003e:\u003cserverPort\u003e\n```\nFields:\n* `bindAddress`: the local address to listen on\n* `bindPort`: the local port to listen on\n* `username`: the username to use for logging in to the MSSQL server\n* `password`: the password to use for logging into the MSQQL server\n* `serverHostname`: the hostname of the MSSQL server\n* `serverPort`: the port of the MSSQL server\n\n# Example\nStart a MSSQL server instance with the password `MyPassword100` (runs on port `1433`):\n```shell script\n$ docker run -e ACCEPT_EULA=y -e SA_PASSWORD=MyPassword100 --net host -d mcr.microsoft.com/mssql/server:2017-CU8-ubuntu\n```\nStart a mssqlproxy on port `51433`:\n```shell script\n$ docker run --net host -e MSSQLPROXY_PROXIES=\"0.0.0.0:51433=sa:MyPassword100@localhost:1433\" -d dajudge/mssqlproxy:0.0.2\n```\nTalk to the MSSQL server via the proxy with invalid credentials:\n```shell script\n$ docker run --rm --net host -it mcr.microsoft.com/mssql-tools /opt/mssql-tools/bin/sqlcmd -S tcp:localhost,51433 -U sa -P wrong\n1\u003e select @@version\n2\u003e go\n                                                                                                                                                                                                                                                                                                            \n------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\nMicrosoft SQL Server 2017 (RTM-CU8) (KB4338363) - 14.0.3029.16 (X64) \n\tJun 13 2018 13:35:56 \n\tCopyright (C) 2017 Microsoft Corporation\n\tDeveloper Edition (64-bit) on Linux (Ubuntu 16.04.4 LTS)                                                                                                            \n\n(1 rows affected)\n1\u003e exit\n```\n\n# TODO\n* Improved handling of various protocol versions.\n* Strong server certificate verification (waiting for a [feature in r2dbc-mssql](https://github.com/r2dbc/r2dbc-mssql/issues/148)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdajudge%2Fmssqlproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdajudge%2Fmssqlproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdajudge%2Fmssqlproxy/lists"}