You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Upgrading to v2.md
+24-2Lines changed: 24 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This guide attempts to cover everything needed for a seamless upgrade from GitPr
4
4
5
5
Most errors will be related to invalid database records added in v1 - mainly in the `user` and `repo` databases. As of writing, database migration files are not provided.
6
6
7
-
## Noteworthy changes and their consequences
7
+
## Breaking changes
8
8
9
9
Two important breaking changes were made:
10
10
@@ -24,7 +24,7 @@ However, as URL parsing is more strict, pushing to previously added GitHub repos
24
24
25
25
## Troubleshooting typical errors
26
26
27
-
Most of these errors can be easily **fixed by simply accessing the UI** to delete the offending repository, add it again, and restore all the allowed users. Manually editing the database entries is not recommended, but nevertheless a valid solution.
27
+
Most of these errors can be easily **fixed by simply accessing the UI** to delete the offending repository, add it again, and restore all the allowed users. Manually editing the database entries is not recommended, but also works.
28
28
29
29
If you encounter any errors not on this guide, feel free to [open a discussion](https://github.com/finos/git-proxy/discussions).
30
30
@@ -93,6 +93,8 @@ This is easily **solved by removing and re-adding the users from the dropdown li
93
93
-`checkEmptyBranch` simply checks whether the branch has had any new commits (if not, the push will be rejected)
94
94
- Added a settings page for configuring the JWT token to authenticate UI requests to API when `apiAuthentication` is enabled in [#1096](https://github.com/finos/git-proxy/pull/1096)
95
95
- Previously, requests from the UI were bypassing the JWT check if the user was logged in, and failing otherwise when `apiAuthentication` was set
96
+
- Added the ability to create new users via the GitProxy CLI in [#981](https://github.com/finos/git-proxy/pull/981)
97
+
- Added `/healthcheck` endpoint for AWS Load Balancer support [#1197](https://github.com/finos/git-proxy/pull/1197)
96
98
97
99
### Bugfixes
98
100
@@ -105,3 +107,23 @@ This is easily **solved by removing and re-adding the users from the dropdown li
105
107
- Fixed Push table committer and author links, replaced links to profile with `mailto:` in [#1179](https://github.com/finos/git-proxy/pull/1179)
106
108
- Fixed display errors when adding a new repo in [#1120](https://github.com/finos/git-proxy/pull/1120)
107
109
- Caused by an issue with server side errors being silently ignored
110
+
- Fixed `--force` pushes failing due to the `getDiff` action blocking legitimate empty diffs in [#1182](https://github.com/finos/git-proxy/pull/1182)
111
+
- Fixed incorrect error message on cloning unauthorized repos in [#1204](https://github.com/finos/git-proxy/pull/1204)
112
+
- Caused by improper Git protocol error handling for `GET /info/refs` requests, resulting in Git client receiving malformed `upload-pack` data
113
+
- Fixed duplicated chain execution when pushing a PR that has been approved in [#1209](https://github.com/finos/git-proxy/pull/1209)
114
+
- Caused by an issue with raw body extraction on `POST git-pack` requests
115
+
- Reimplemented push parsing to fix various issues related to packfile decoding in [#1187](https://github.com/finos/git-proxy/pull/1187)
116
+
- Fixed `Z_DATA_ERROR` when pushing
117
+
- Fixed Git object header parsing and packfile metadata reading
118
+
- Reimplemented decompression to better replicate how Git handles it (replaced inflating/deflating the object)
119
+
- Fixed logout failure in production caused by UI defaulting to `http://localhost:3000` when `VITE_API_URI` is unset in [#1201](https://github.com/finos/git-proxy/pull/1201)
120
+
- Refactors API URL usages to rely on a single source of truth, sets default values
121
+
- Fixed a potential denial-of-service vulnerability when pushing to an unknown repository in [#1095](https://github.com/finos/git-proxy/pull/1095)
122
+
- Caused by a bug in the MongoDB implementation `isUserPushAllowed` which assumed that the repository exists. If the repository wasn't found, the backend crash when attempting to access its properties
123
+
- Fixed `MongoServerError` when updating user due to attempting to override the pre-existent `_id` in [#1230](https://github.com/finos/git-proxy/pull/1230)
124
+
125
+
### Other improvements
126
+
127
+
- Optimized push speed by performing shallow clones by default in [#1189](https://github.com/finos/git-proxy/pull/1189)
128
+
- Increased push speeds for larger repos [by around 30~50%](https://github.com/finos/git-proxy/issues/985)
129
+
- Improved configuration validation and typing in [#1140](https://github.com/finos/git-proxy/pull/1140)
0 commit comments