172 Commits

Author SHA1 Message Date
Pragyesh Mishra
2ec6fb8a58 [fix]: [AH-952]: fix override of files for maven artifacts (#3692)
* [fix]: [AH-952]: Fixed pr check
* [fix]: [AH-952]: Fixed pr check
* [fix]: [AH-952]: Fixed pr check
* [fix]: [AH-952]: Fixed pr check
* [fix]: [AH-952]: Fixed pr check
* [fix]: [AH-952]: Fixed pr check
* [fix]: [AH-952]: fix override of files for maven artifacts
2025-05-02 18:54:52 +00:00
Sourabh Awashti
8311ae2c2f feat:[AH-1260]: fix for yarn package install (#3747)
* feat:[AH-1260]: fix for yarn package install
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness
* Merge branch 'release/registry-api_1.18.0' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness
* feat:[AH-1083]: url fix (#3669)

* feat:[AH-1083]: url fix
2025-05-02 07:17:49 +00:00
Arvind Choudhary
4f7dc32dcc fix: [AH-1197]: Fixing table creation (#3754)
* [AH-1197]: Fixing table creation
2025-04-30 21:23:06 +00:00
Shivanand Sonnad
ebe634e5df fix: [AH-1197]: fix failing OCI delete image and artifact (#3741)
* feat: [AH-1197]: update SQL migration queries for sqlite
* feat: [AH-1197]: fix failing tests
* feat: [AH-1197]: delete manifest on delete oci image
* feat: [AH-1197]: fix failing nodes because of foreign key constraint
* feat: [AH-1197]: remove unused functions
* feat: [AH-1197]: hard delete artifact and images for oci flow as well
* fix: [AH-1197]: fix failing OCI delete image and artifact
2025-04-30 20:31:14 +00:00
Pragyesh Mishra
c91ba3d8d3 [fix]: [AH-1262]: Fix get files api for maven when artifact id contains dot (#3730)
* [fix]: [AH-1262]: Fix get files api when artifact id contains dot
* [fix]: [AH-1262]: Fix get files api when artifact id contains dot
* [fix]: [AH-1262]: Fix get files api when artifact id contains dot
2025-04-30 13:53:49 +00:00
Tudor Macari
c62f822571 feat: [AH-1221]: Implement distributed locking for repo data (#3731)
* rebase
* feat: [AH-1221]: Implement distributed locking for repo data
2025-04-30 05:33:35 +00:00
Tudor Macari
57f613cac1 feat: [AH-1261]: fix auth issue in gitness (#3732)
* feat: [AH-1261]: fix auth issue in gitness
2025-04-29 20:05:51 +00:00
Pragyesh Mishra
6aa9e3cfbc [fix]: [AH-1271]: fixed panic in download file flow in file manager framework (#3749)
* [ix]: [AH-1271]: fixed panic in download file flow in file manager framework
2025-04-29 15:20:56 +00:00
Pragyesh Mishra
7d8b1f1b76 [fix]: [AH-1271]: fixed panic by fixing NPE in Manifests and Blobs APIs of OCI (#3740)
* [ix]: [AH-1271]: fixed pr check
* [fix]: [AH-1271]: fixed panic by fixing NPE in Manifests and Blobs APIs of OCI
2025-04-29 09:38:17 +00:00
Arvind Choudhary
cc13edd9f1 fix: [AH-1189]: Added checks for empty artifact/package name (#3735)
* [AH-1189]: Added checks for empty artifact/package name
2025-04-29 00:52:29 +00:00
Pragyesh Mishra
7e85afab0e [fix]: [AH-1271]: fixed panic when we call this method with error or other types as input (#3737)
* [fix]: [AH-1271]: fixed panic when we call this method with error or values types as input
* [fix]: [AH-1271]: fixed panic when we call this method with error or values types as input
2025-04-28 07:04:47 +00:00
Sourabh Awashti
ca888e532b feat:[AH-1093]: NPM search package support (#3711)
* feat:[AH-1093]: NPM search package support
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness
* Merge branch 'release/registry-api_1.18.0' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness
* feat:[AH-1083]: url fix (#3669)

* feat:[AH-1083]: url fix
2025-04-28 06:53:28 +00:00
Sourabh Awashti
3e07a681a1 feat:[AH-1231]: changes for switching routes for generic artifacts (#3703)
* feat:[AH-1231]: fix checks
* feat:[AH-1231]: review changes
* feat:[AH-1231]: changes for switching routes for generic artifacts
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness
* Merge branch 'release/registry-api_1.18.0' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness
* feat:[AH-1083]: url fix (#3669)

* feat:[AH-1083]: url fix
2025-04-28 05:10:07 +00:00
Tudor Macari
c3a70ca12e feat: [AH-1146]: add support for RPM artifact details (#3697)
* feat: [AH-1063]: RPM client setup details (#3726)

* add credentials
* feat: [AH-1063]: RPM client setup details
* fix lint issues
* fix lint issue
* refactoring
* refactoring
* fix tests
* fix rebase issues
* feat: [AH-1146]: add support for RPM artifact details
2025-04-24 05:21:14 +00:00
Pragyesh Mishra
fc18529e08 [fix]: [AH-1232]: move maven routes to new routes (#3723)
* [fix]: [AH-1243]: move maven routes to new routes
* [fix]: [AH-1243]: move maven routes to new routes
* [fix]: [AH-1243]: move maven routes to new routes
* [fix]: [AH-1243]: move maven routes to new routes
* [fix]: [AH-1243]: move maven routes to new routes
2025-04-23 05:23:05 +00:00
Arvind Choudhary
d493a9bf87 fix: [AH-1237]: Fixing spaces in www-authenticate header (#3721)
* [AH-1237]: Fixing spaces in www-authenticate header
2025-04-22 22:48:13 +00:00
Manjunatha EN
a73113f8e6 fix: [AH-771]: gitness unit test refactoring (#3589)
* fix merge conflicts
* fix merge conflicts
* fix review comment
* fix review comment
* fix review comment
* fix: [AH-771]: gitness unit test refactoring
* fix: [AH-771]: resolved review comments
* fix: [AH-771]: resolved review comments
* fix: [AH-771] Registry test refactoring and improvements

- Refactored registry metadata test implementations
- Improved code organization and readability
- Fixed line length issues in test files
- Removed unused fields from request.go
- Added proper license headers
- Fixed linting issues in mock files
- Simplified test setup and assertions
- Updated wire generation for cmd package
- Added nolint:exhaustive directive for package type switch

fix: [AH-771] Registry test refactoring and improvements

- Refactored registry metadata test implementations
- Improved code organization and readability
- Fixed line length issues in test files
- Removed unused fields from request.go
- Added proper license headers
- Fixed linting issues in mock files
- Simplifi
2025-04-22 14:49:24 +00:00
Shivanand Sonnad
646cb57578 feat: [AH-1197]: implement delete image for non oci flow (#3700)
* feat: [AH-1197]: implement delete image for non oci flow
2025-04-22 09:34:32 +00:00
Sourabh Awashti
d361fc3f5a feat:[AH-1241]: fix for yarn package and delete tag issue for NPM (#3704)
* feat:[AH-1241]: fix for yarn package and delete tag issue for NPM
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness
* Merge branch 'release/registry-api_1.18.0' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness
* feat:[AH-1083]: url fix (#3669)

* feat:[AH-1083]: url fix
2025-04-22 07:00:16 +00:00
Shivanand Sonnad
8b277e62d7 feat: [AH-1223]: Implement delete version for non oci package types (#3684)
* feat: [AH-1223]: fix failing go lint
* feat: [AH-1223]: fix failing go lint
* feat: [AH-1223]: file name change
* feat: [AH-1223]: file name change
* feat: [AH-1223]: fix go lint errors
* feat: [AH-1223]: add RPM package type in switch case
* feat: [AH-1223]: cascade delete download_stats and bandwidth_stats
* feat: [AH-1223]: resolve PR comments
* feat: [AH-1223]: resolve PR comments
* feat: [AH-1223]: fix failing go lint checks
* feat: [AH-1223]: add different switch case for delete based on package type
* feat: [AH-1223]: Implement delete version for non oci package types
2025-04-18 09:01:07 +00:00
Tudor Macari
2d385d1137 feat: [AH-1198]: Avoid loading artifact to memory or on disk. (#3688)
* resolve PR comments
* fix lint issue
* fix mapping to ArtifactMetadata
* fix lint issues
* feat: [AH-1198]: Avoid loading artifact to memory or on disk.
2025-04-17 09:35:07 +00:00
Tudor Macari
57bcb5c2aa fix: [AH-1153]: fix GetTotalDownloadsForManifests query (#3693)
* fix: [AH-1153]: fix GetTotalDownloadsForManifests query
2025-04-16 16:08:00 +00:00
Sourabh Awashti
b8603e7f07 feat:[AH-1083]: added npmjs upstream proxy (#3689)
* feat:[AH-1083]: added npmjs upstream proxy
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness
* Merge branch 'release/registry-api_1.18.0' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness
* feat:[AH-1083]: url fix (#3669)

* feat:[AH-1083]: url fix
2025-04-16 10:36:35 +00:00
Tudor Macari
a3d828f0a2 feat: [AH-1060]: RPM flows skeleton, RPM package upload (#3599)
* resolve PR comments
* fix lint
* resolve PR comments
* fix lint issue
* resolve PR comments
* resolve PR comments
* fix lint issue
* feat: [AH-1060]: RPM flows skeleton, RPM package upload/install
2025-04-16 06:05:50 +00:00
Sourabh Awashti
266591513c feat:[AH-1083]: fix download count and upstream proxy for NPM (#3678)
* feat:[AH-1083]: review changes
* feat:[AH-1083]: review changes
* feat:[AH-1083]: fix checks
* feat:[AH-1083]: fix download count
* feat:[AH-1083]: fix download count
* feat:[AH-1083]: NPM upstream proxy fix
2025-04-15 10:21:54 +00:00
Sourabh Awashti
d83669c098 feat:[AH-1083]: URL fix for NPM package (#3668)
* feat:[AH-1083]: url fix
2025-04-11 14:31:18 +00:00
Vikyath Harekal
31519b68d3 feat: [CDE-722]: Truncate gitspace config identifier to accommodate the unique identifier and -disk suffixes (#3667)
* feat: [CDE-722]: Truncate gitspace config name to accommodate the unique identifier and -disk suffixes
2025-04-11 12:59:41 +00:00
Sourabh Awashti
961687e883 feat:[AH-1083]: NPM remote changes (#3660)
* feat:[AH-1083]: file close fix
* feat:[AH-1083]: fix upstream
* feat:[AH-1083]: fix upstream
* feat:[AH-1083]: fix upstream
* feat:[AH-1083]: add is_deleted field for image and version
* feat:[AH-1083]: add is_deleted field for image and version
* feat:[AH-1083]: fix url
* feat:[AH-1083]: fixed the remote fetch metadata
* feat:[AH-1083]: fix url
* feat:[AH-1083]: fix url
* feat:[AH-1083]: fix npm metadata
* feat:[AH-1083]: fix checks
* feat:[AH-1083]: fix checks
* feat:[AH-1083]: fix checks
* feat:[AH-1083]: NPM remote changes
* feat:[AH-1083]: npm changes

dummy

dummy
* feat:[AH-1083]: add get size and set size methods for metadata
* feat:[AH-1083]: remove remote implementation
* feat:[AH-1083]: Implementation of NPM registry
2025-04-11 08:58:52 +00:00
Sourabh Awashti
105afe37db feat:[AH-1083]: Implementation of NPM registry (#3608)
* feat:[AH-1083]: fix checks
* feat:[AH-1083]: fix checks
* feat:[AH-1083]: merge conficts
* feat:[AH-1083]: merge conficts
* feat:[AH-1083]: merge conficts
* feat:[AH-1083]: fix checks
* feat:[AH-1083]: fix checks
* feat:[AH-1083]: fix checks
* feat:[AH-1083]: fix checks
* feat:[AH-1083]: fix checks
* feat:[AH-1083]: fix checks
* feat:[AH-1083]: fix checks
* feat:[AH-1083]: review changes
* feat:[AH-1083]: review changes
* feat:[AH-1083]: review changes
* feat:[AH-1083]: fix download_count
* feat:[AH-1083]: merge conflicst
* feat:[AH-1083]: merge conflicst
* feat:[AH-1083]: merge conflicst
* feat:[AH-1083]: merge conflicst
* feat:[AH-1083]: bug fixes
* feat:[AH-1083]: bug fixes
* feat:[AH-1083]: bug fixes
* feat:[AH-1083]: review changes
* feat:[AH-1083]: review changes
* Merge branch 'main' into AH-1083
* feat:[AH-1083]: add get size and set size methods for metadata
* feat:[AH-1083]: remove remote implementation
* feat:[AH-1083]: Implementation of NPM registry
2025-04-09 21:19:49 +00:00
Darko Draskovic
8d7fc35548 fix: [CODE-3014]: Return 401 in case of unauthorized call without auth data (#3634)
* Remove IsAuthErr helper
* Merge remote-tracking branch 'origin/main' into dd/auth
* Fix registry tests
* Add IsAuthErr app api auth package
* Add hasAccess helper method
* Merge remote-tracking branch 'origin/main' into dd/auth
* Merge remote-tracking branch 'origin/main' into dd/auth
* Merge remote-tracking branch 'origin/main' into dd/auth
* Clean up controllers and handle anonymous in Check
* Return 401 in case of unauthorized call without auth data
2025-04-09 15:24:54 +00:00
Arvind Choudhary
f98d8cd693 feat: [AH-1195]: Updated python adapter (#3650)
* [AH-1195]: Updated python adapter
2025-04-08 23:34:12 +00:00
Tudor Macari
c58fdbc4d0 fix: [AH-1153]: fix download count per image and per manifest (#3609)
* fix: [AH-1153]: fix query
* fix: [AH-1153]: fix download count per image and per manifest
2025-04-07 18:46:44 +00:00
Arvind Choudhary
b5b463245f feat: [AH-992]: Added UTS (#3641)
* [AH-992]: Added junits
2025-04-07 18:44:02 +00:00
Arvind Choudhary
970a9e8a04 feat: [AH-1168]: Added replication rule and migration API handlers (#3621)
* [AH-1168]: Updated properties
* [AH-1168]: Updated properties
* [AH-1168]: Updated description and params
* [AH-1168]: Added replication rule and migration API handlers
* [AH-1168]: Updated OpenAPI spec for all CRUDs
2025-04-04 00:24:42 +00:00
Arvind Choudhary
cc86280a6c feat: [AH-1158]: Fixed around auth, download command and metadata api update (#3610)
* [AH-1158]: Fixed around auth, download command and metadata api update
2025-04-02 16:34:00 +00:00
Pragyesh Mishra
a6985a55ad [feat]: [AH-1033]: nuget implmentation (#3570)
* [AH-1033]: [feat]: pr check
* [feat]: [AH-1033]: pr check
* [feat]: [AH-1033]: pr check
* [feat]: [AH-1033]: pr check
* [feat]: [AH-1033]: pr check
* [feat]: [AH-1033]: pr check
* [feat]: [AH-1033]: upload flow
* [feat]: [AH-1033]: resolve conflicts
* [AH-1033]: [feat]: nuget service endpoint api
* [AH-1036]: [feat]: added routes and apis for nuget
* [AH-1033]: nuget implmentation
* [AH-993]: Updated local file
* [AH-993]: Added support for local and created arch to support different package types
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into AH-993-upstream-implementation
* [AH-993]: temp commit
* [AH-993]: Merge commit:
* [AH-993]: temp update
2025-03-28 14:57:56 +00:00
Arvind Choudhary
93c3f324ce feat: [AH-1137]: Added cleanup policy; cleaned up error framework; updated upload flows in case of conflicts; misc (#3592)
* [AH-1137]: PR Review comments
* [AH-1137]: PR Review comments
* [AH-1137]: Fixed auth issue
* [AH-1137]: Added default route:
* [AH-1137]: Added cleanup policy; cleaned up error framework; updated upload flows in case of conflicts; misc
* [AH-1137]: Merge commit
* [AH-993]: Review comments fixed
* [AH-993]: Merge commit
* [AH-993]: Updated upstream creation
* [AH-993]: Cleanup
* [AH-993]: Updated messages
* [AH-993]: Merge commit
* [AH-993]: Upstream flows support for Python Packages
* [AH-993]: Updated local file
* [AH-993]: Added support for local and created arch to support different package types
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into AH-993-upstream-implementation
* [AH-993]: temp commit
* [AH-993]: Merge commit:
* [AH-993]: temp update
2025-03-28 04:57:32 +00:00
Shivanand Sonnad
0c7097d4b7 fix: [AH-1139]: fix pull command for helm artifact (#3593)
* fix: [AH-1139]: fix failing tests
* fix: [AH-1139]: fix failing tests
* fix: [AH-1139]: fix pull command for helm artifact
2025-03-26 06:10:30 +00:00
Pragyesh Mishra
97740138aa [fix]: [AH-954]: fix pagination for list artifact api in registry page (#3493)
* [fix]: [AH-954]: Fix pagination
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into AH-954-fix
* [fix]: [AH-959]: fix pagination
2025-03-25 13:20:15 +00:00
Sourabh Awashti
17aaa3e521 feat:[AH-1001]: API changes for NPM packages (#3587)
* feat:[AH-1001]: API changes for NPM packages
2025-03-25 11:05:09 +00:00
Shivakumar Ningappa
4fc663ed04 feat: [AH-900]: implement: write event to redis every time a blob is stored in storage. Implement for both OCI and generic blobs (#3548)
* feat: [AH-900]: lint error
* feat: [AH-900]: lint error
* feat: [AH-900]: implement: - add helper function to generate path
* feat: [AH-900]: rebase
* feat: [AH-900]: cleanup
* feat: [AH-900]: don't send event if the blob was updated. send only for created
* feat: [AH-900]: extract common method
* feat: [AH-900]: implement: - review comments
* feat: [AH-900]: implement: - review comments
* feat: [AH-900]: rebase
2025-03-25 05:58:33 +00:00
Arvind Choudhary
ced5ce2f65 feat: [AH-993]: Complete implementation of Upstream changes of Python Package (#3573)
* [AH-993]: Review comments fixed
* [AH-993]: Merge commit
* [AH-993]: Updated upstream creation
* [AH-993]: Cleanup
* [AH-993]: Updated messages
* [AH-993]: Merge commit
* [AH-993]: Upstream flows support for Python Packages
* [AH-993]: Updated local file
* [AH-993]: Added support for local and created arch to support different package types
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into AH-993-upstream-implementation
* [AH-993]: temp commit
* [AH-993]: Merge commit:
* [AH-993]: temp update
2025-03-25 05:36:47 +00:00
Tudor Macari
d84b5cc7e1 feat: [AH-1116]: remove artifact updated event (#3559)
* feat: [AH-1116]: remove artifact updated event
2025-03-24 09:08:32 +00:00
Shivakumar Ningappa
9becc91abb fix: [AH-923]: check params before conversion to avoid printing unwanted errors (#3554)
* fix: [AH-923]: check params before conversion to print unwanted errors
2025-03-19 04:28:42 +00:00
Arvind Choudhary
1cfdf10e08 feat: [AH-993]: Added support for local and created arch to support different package types (#3561)
* [AH-993]: Merge commit
* [AH-993]: Merge commit
* [AH-993]: PR Review comments
* [AH-993]: Updated local file
* [AH-993]: Added support for local and created arch to support different package types
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into AH-993-upstream-implementation
* [AH-993]: temp commit
* [AH-993]: Merge commit:
* [AH-993]: temp update
2025-03-18 21:29:24 +00:00
Arvind Choudhary
e6ac0ef996 feat: [AH-895]: Added support for upstream registries to not show push commands (#3564)
* [AH-895]: Added support for upstream registries to not show push commands
2025-03-18 15:56:22 +00:00
Tudor Macari
45246b7ba9 feat: [AH-1116]: fix error responses (#3567)
* feat: [AH-1116]: fix error responses
* feat: [AH-1116]: fix error responses
2025-03-18 12:00:05 +00:00
Tudor Macari
89b2a19837 feat: [AH-1077]: Change secretSpaceId from int to int64 (#3553)
* feat: [AH-1077]: fix tests
* resolve conflicts
* feat: [AH-1077]: Change secretSpaceId from int to int64
2025-03-18 11:47:49 +00:00
Tudor Macari
6fb141f027 feat: [AH-983]: add unit tests (#3544)
* feat: [AH-983]: add unit tests
2025-03-13 22:51:50 +00:00
Arvind Choudhary
f660d8b0cd feat: [AH-994]: Updated Client setup details. Update pypi to python (#3547)
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into AH-994-client-setup-details-update
* [AH-994]: Merge conflict fixed
* [AH-994]: Merge conflict fixed
* [AH-994]: Updated makefile
* [AH-994]: Merge conflict fixed
* [AH-994]: Updated Client setup details. Update pypi to python
2025-03-13 04:45:55 +00:00