66 Commits

Author SHA1 Message Date
Ritek Rounak
f463f8f7f5 fix: [AH-745] fix summary page sql query for sqlite | Gitness (#3110)
* fix: [AH-745] Added sql query in logs
* feat: [AH-745] Added Separate Queries for Postgres & Sqlite
* fix: [AH-745] fix summary page sql query for sqlite
2024-12-09 18:08:32 +00:00
Ritek Rounak
ff1cbd654e fix: [AH-556] fix error on creation of duplicate artifact registry | Gitness (#3117)
* fix: [AH-556] Fix NilError Lint
* fix: [AH-556] fix error on creation of duplicate artifact registry
2024-12-09 14:26:41 +00:00
Tudor Macari
9cd6480f9d fix: [AH-757]: do nothing if manifets manifest is already referenced (#3128)
* fix: [AH-757]: do nothing if manifets manifest is already referenced
2024-12-09 09:53:31 +00:00
Arvind Choudhary
cfa4e351c4 fix: [AH-717]: Added fix to return 404 in case manifest or blobs are not available (#3107)
* [AH-717]: updated lint issues
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into AH-717-404-fix-registry
* [AH-717]: Added fix to return 404 in case manifest or blobs are not available
2024-12-06 03:33:51 +00:00
Shivakumar Ningappa
aea3067a06 fix: [AH-746]: add separate sql syntax for sqlite while recursively listing registries (#3104)
* fix: [AH-746]: add separate sql syntax for sqlite while recursively listing registries
2024-12-04 05:40:57 +00:00
Ritek Rounak
d4987eb0cb fix: [AH-489] Fix Docker & Helm DownloadCount | Gitness (#3032)
* fix: [AH-489] Update Tag DB Queries
* fix: [AH-489] Fix Docker Download Count in Get Manifests
* add Download Count in Docker manifest Details
* fix: [AH-489] Fix Docker DownloadCount in Details Page
* fix: [AH-489] Fix Helm DownloadCount DB Query
2024-12-04 03:16:17 +00:00
Tudor Macari
ed2597bdcc feat: [AH-713]: add method to get base UI url (#3103)
* feat: [AH-713]: add method to get base UI url
2024-12-03 13:37:48 +00:00
Shivakumar Ningappa
393a14682f fix: [AH-674]: support upstream proxies at org/acct - minor refactor for better readability (#3076)
* fix: [AH-674]: support upstream proxies at org/acct - minor refactor for better readability
2024-11-29 13:22:43 +00:00
Shivakumar Ningappa
facd2431a3 fix: [AH-674]: support upstream proxies at org/acct, multiple levels (#3055)
* fix: [AH-674]: support upstream proxies at org/acct, multiple levels. change the default to false:non-recursive
* fix: [AH-674]: support upstream proxies at org/acct, multiple levels. add a flag in API for recursive or non-recursive
* fix: [AH-674]: support upstream proxies at org/acct, multiple levels. combine recursive and non-recursive for better maintance, optimze quries
* fix: [AH-674]: support upstream proxies at org/acct, multiple levels
* fix: [AH-674]: support upstream proxies at org/acct, multiple levels
2024-11-29 01:54:49 +00:00
Pragyesh Mishra
91aad4cf96 [fix]: [AH-528]: Fixed upstream proxy flow for without /library for dockerhub images (#3073)
* [fix]: [AH-528]: Fixed upstream proxy flow for without /library for dockerhub images
2024-11-28 14:34:49 +00:00
Ritek Rounak
dbe74b149d feat: [AH-704]: Update Client-Setup API response (#3056)
* feat: [AH-704]: Update Client-Setup API response
2024-11-27 08:54:36 +00:00
Ritek Rounak
675dbb858a fix: [AH-536] Fix Artifact Page PackageType Filter | Gitness (#3038)
* fix: [AH-536] Fix PackageType Filter DB Query
* fix: [AH-536] Fix PackageType Filter
2024-11-26 12:39:02 +00:00
Ritek Rounak
75578cfb4c fix: [AH-598] Fix Registry Page SortBy Type | Gitness (#3048)
* fix: [AH-598] Fix Registry Page SortBy Type
2024-11-26 12:30:47 +00:00
Ritek Rounak
98363cf455 feat: [AH-704]: Update Client-Setup API response | Gitness (#3042)
* feat: [AH-704]: Update Client-Setup API response
* feat: [AH-704]: Update Client-Setup API response
* feat: [AH-704]: Update Client-Setup API response
2024-11-26 12:29:07 +00:00
Ritek Rounak
e5456d663f fix: [AH-479] Fix Total Downloads Count for Summary Page (#3027)
* fix: [AH-479] include download stats in query result for tag details
2024-11-26 08:53:21 +00:00
Marko Gaćeša
ad8f74ce71 feat: [CODE-2531]: replace os.IsNotExist(err) with error.Is(err, fs.ErrNotExist) (#3036)
* replace os.IsNotExist(err) with error.Is(err, fs.ErrNotExist)
2024-11-22 12:17:56 +00:00
Tudor Macari
eb6af94cbd feat: [AH-690]: log errors (#3026)
* feat: [AH-690]: log errors
* fix: [AH-597]: fix layers api for application/vnd.oci.image.manifest.v1+json manifests
2024-11-20 13:27:40 +00:00
Ritek Rounak
036f615cc0 fix: [AH-566] Fix DB Query for Image Download Stats Deletion (#3022)
* fix: [AH-566] Fix DB Query for Image Download Stats Deletion
2024-11-20 11:11:16 +00:00
Tudor Macari
8e4fa152bd fix: [AH-532]: fix helm client setup details (#3021)
* fix: [AH-532]: fix helm client setup details
2024-11-20 08:38:07 +00:00
Tudor Macari
8abf21b7b1 feat: [AH-597]: improve errors logging in layers api (#3019)
* feat: [AH-597]: foramt
* feat: [AH-597]: foramt
* feat: [AH-597]: improve errors logging in layers api
2024-11-19 21:02:49 +00:00
Ritek Rounak
7a0a0de89b fix: [AH-566] : Improve error handling for duplicate Artifact Registry | Gitness (#2990)
* fix: [AH-566] Resolved PR Comments
* fix: [AH-579] Removed GetByName Method
* fix: [AH-566] : Fix Lint
* fix: [AH-566] : removed unused code
* fix: [AH-566] : Improved Error Query Method
* fix: [AH-566] : Improve error msg with details

Signed-off-by: Ritek Rounak <ritek.rounak@harness.io>
* fix: [AH-566] : Improve error handling for duplicate Artifact Registry
* fix: [AH-566] : Improve error handling for duplicate Artifact Registry
2024-11-19 16:45:45 +00:00
Pragyesh Mishra
13e68709ee [fix]: [AH-570]: fix upstream proxy delete flow (#3017)
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into AH-570
* [fix]: [AH-570]: fixed linting issue
* [fix]: [AH-570]: fixed linting issue
* [fix]: [AH-570]: fix upstream proxy delete flow
2024-11-19 14:33:49 +00:00
Tudor Macari
5526086acc fix: [AH-664]: fix registry diff (#3005)
* fix: [AH-664]: fix registry diff
2024-11-18 07:42:02 +00:00
Shivakumar Ningappa
edf01c5a9b fix: [AH-585]: add index to improve query performance found during load testing (#2982)
* fix: [AH-585]: add index to improve query performance found during load testing
2024-11-12 13:18:42 +00:00
Pragyesh Mishra
0f4df14661 [fix]: [AH-487]: added oci prefix in helm pull command (#2968)
* [fix]: [AH-487]: added oci prefix in helm command
2024-11-11 10:30:11 +00:00
Andreas Deininger
ff2da8563e [GH] Fix typos (#3566)
This PR fixes various typos i spotted in the project.
2024-11-07 11:34:07 -08:00
Arvind Choudhary
0871584eaa feat: [AH-431]: Updated registry url generation for Vanity flows (#2933)
* [AH-431]: Updated registry url generation
2024-11-06 07:35:16 +00:00
Tudor Macari
0d65a0df3a fix: [AH-602]: fix registry urls (#2931)
* fix: [AH-602]: fix registry urls
2024-11-05 21:16:41 +00:00
Tudor Macari
ddd8b47f62 feat: [AH-602]: refactoring (#2920)
* rezolve PR comments
* rezolve PR comments
* refactoring
* feat: [AH-602]: refactoring
2024-11-05 12:44:11 +00:00
Tudor Macari
9227b297bb fix: [AH-492]: add default size (#2898)
* 

fix: [AH-492]: add default size
2024-10-29 13:53:05 +00:00
Tudor Macari
1e305866b4 fix: [AH-492]: return history layer size (#2889)
* fix formatting
* fix: [AH-492]: return history layer size
2024-10-29 11:31:48 +00:00
Arvind Choudhary
86036dc43b feat: [AH-586]: Fix OCI tests and enable check on gitness repo (#2885)
* [AH-586]: Fix OCI tests and enable check on gitness repo
2024-10-28 23:03:12 +00:00
Pragyesh Mishra
aabc684606 [fix]: [AH-559]: fixed upstream proxy update flow (#2883)
* [fix]: [AH-559]: fixed upstream proxy update flow
* [fix]: [AH-559]: fixed upstream proxy update flow
2024-10-28 17:15:16 +00:00
Pragyesh Mishra
e5d5ce6a04 [fix]: [AH-388]: Move tracking of Bandwidth and Download Stats to Middleware (#2800)
* [fix]: [AH-388]: fix lint
* [fix]: [AH-388]: fix lint
* [fix]: [AH-388]: fix lint
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into fix-stats
* [fix]: [AH-388]: fix merge conflict
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into fix-stats
* fixed upstream proxy issues
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into fix-stats
* [fix]: [AH-388]: fix image and artifact upsert
* [fix]: [AH-388]: fix dependency
* [fix]: [AH-388]: Fix Download Stats
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into fix-stats
* [fix]: [AH-388]: Fix Download Stats
* [fix]: [AH-388]: Fix Bandwidth Stats
2024-10-28 13:52:24 +00:00
Arvind Choudhary
a03b6f0dce feat: [AH-569]: Updated method to return correct storage size (#2871)
* 

[AH-569]: Updated method to return correct storage size
2024-10-26 13:41:13 +00:00
Shivakumar Ningappa
e9f6f1228a fix: [AH-420]: handle error (#2759)
* 







fix: [AH-420]: handle error
2024-10-23 06:41:02 +00:00
Arvind Choudhary
c27a2f7201 feat: [AH-554]: Updated swagger changes (#2854)
* 

[AH-554]: Updated swagger changes
2024-10-23 05:04:55 +00:00
Tudor Macari
5af278c2bb fix: [AH-544]: fix cross registry mount (#2846)
* fix: [AH_544]: fix cross registry mount
2024-10-22 11:08:07 +00:00
Pragyesh Mishra
874f9957ab [fix]: [AH-465]: fixed creation of upstream proxy (#2845)
* [fix]: [AH-465]: fixed creation of upstream proxy
2024-10-22 10:18:36 +00:00
Pragyesh Mishra
18eb27aa15 [feat]: [AH-284]: Delete Artifact and Delete Artifact Version (#2788)
* pr review
* lint
* pr reviews
* pr reviews
* pr reviews
* fix
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into AH-284-delete-flows
* [feat]: [AH-284]: Delete flows
2024-10-21 10:11:14 +00:00
Shivakumar Ningappa
884d7b3612 feat: [AH-392]: support multiple scanners - gitness changes (#2834)
* feat: [AH-392]: support multiple scanners - review comments
* feat: [AH-392]: support multiple scanners - lint errors
* feat: [AH-392]: support multiple scanners - gitness changes
2024-10-18 20:58:44 +00:00
Pragyesh Mishra
d21176e612 fix: [AH-471]: fixed package type filter (#2829)
* 



fixed package type filter
2024-10-18 11:31:33 +00:00
Tudor Macari
bdf84d4941 fix: [AH-431]: fix manifests request (#2817)
* fix: [AH-431]: fix manifests request
2024-10-15 16:06:50 +00:00
Tudor Macari
138cebe6d4 feat: [AH-339]: refactor garbage collector (#2761)
* resolve comments
* fix formatting
* refactor gc
2024-10-03 11:03:33 +00:00
Arvind Choudhary
8e4fd70ef0 feat: [AH-406]: Added Registry Metrics for OSS (#2760)
* [AH-406]: Fixes for review comments
* [AH-406]: Added Registry Metrics for OSS
2024-10-02 21:49:26 +00:00
Shivakumar Ningappa
b761fa9de1 feat: [AH-364]: SSCA/STO integrations - global artifacts, summary card (#2752)
* feat: [AH-364]: SSCA/STO integrations - global artifacts, summary card: review comments
* feat: [AH-364]: SSCA/STO integrations - global artifacts, summary card
2024-09-30 22:11:42 +00:00
Tudor Macari
4da5778f21 fix: [AH-413]: add file to FS (#2746)
* add header
* fix name
* add file to FS
2024-09-26 12:52:07 +00:00
Pragyesh Mishra
2b3b8b3503 [feat]: [AH-363]: made few fields public in RegistryRequestParams (#2734)
* [feat]: [AH-363]: made few fields public in RegistryRequestParams
* [feat]: [AH-363]: made few fields public in RegistryRequestParams
2024-09-25 05:21:46 +00:00
Arvind Choudhary
31ec4d1069 feat: [AH-231]: Upstream features (#2733)
* [AH-231]: Updated PR comments and some artifact/image issues
* [AH-231]: Cleanup extra table
* [AH-231]: Updated versions
* [AH-231]: Lint fixed
* [AH-231]: Merge commit
* [AH-231]: Updated logic to get child manifests
* [AH-231]: Updated sleep time
* [AH-231]: Completed implementation of manifest lists
* [AH-231]: Updated manifest list flows
* [AH-231]: Temp changes
* [AH-231]: Wiring fixed
* [AH-231]: Initial commit; minor fixes
* [AH-307]: Updated lint
* fix comment
* add new method to spacestore
* feat: [AH-307]: fix after rebase with main
* [AH-307]: Removing comments
* [AH-307]: linting fixes
* feat: [AH-286]: define proto, interface and no-op reporter implementation to publish artifact events (#2657)

* feat: [AH-286]: publish artifact event - no row found is not error
* feat: [AH-286]: publish artifact event - no row found is not error
* feat: [AH-286]: publish artifact event - lint errors, move publishing event outside DB transaction
* feat: [AH-286]: publish artifact event - review comments
* feat: [AH-286]: publish artifact event - address review comments
* feat: [AH-286]: publish artifact event - keep payload generic
* feat: [AH-286]: publish artifact event - as sqlite locks DB, perform db operation outside goroutine publishing of events
* feat: [AH-286]: publish artifact event - make publishing event async
* feat: [AH-286]: publish artifact event - use api types
* feat: [AH-286]: Publish event for SSCA to trigger scans - no need to export spacePathStore
* feat: [AH-286]: Publish event for SSCA to trigger scans - send spacePath instead of parentID
* feat: [AH-286]: Publish event for SSCA to trigger scans - rename scanner as generic reporter
* feat: [AH-286]: Publish event for SSCA to trigger scans - rename scanner as generic reporter
* feat: [AH-286]: publish artifact event - reuse redis.Send()
* feat: [AH-286]: Publish event for SSCA to trigger scans - review comments
* feat: [AH-286]: Publish event for SSCA to trigger scans - remove unused interface
* feat: [AH-286]: Publish event for SSCA to trigger scans - update msg format
* feat: [AH-286]: define proto, interface and no-op reporter implementation to publish artifact events
* feat: [AH-286]: Publish event for SSCA to trigger scans - extract acctID/orgID/projectID from spacepathStore
* feat: [AH-286]: publish artifact event - remove protobuf reference, fix lint errors
* feat: [AH-286]: publish artifact event - fix msg format
* feat: [AH-286]: define proto, interface and no-op reporter implementation to publish artifact events
* feat: [AH-286]: define proto, interface and no-op reporter implementation to publish artifact events
* feat: [AH-321]: make repo form disabled for rbac (#2687)

* feat: [AH-321]: make repo form disabled for rbac
* fix wire-gen
* GC refactoring
* feat: [AH-340]: update UI as per the product feedbacks (#2685)

* feat: [AH-340]: update UI as per the product feedbacks
* feat: [AH-44]: add module data while redirecting to pipeline execution page
* feat: [AH-44]: add build pipeline details in overview cards
* feat: [AH-44]: update view for prod and non prod tag
* feat: [AH-44]: rearrange filters on artifact list apge
* feat: [AH-10]: add schema for overview cards, update artifact list, add ai search input, update api for registry artifact list and update mapping for deployments table
* feat: [AH-307]: add secretSpacePath in upstream password field while sending to BE (#2631)

* feat: [AH-307]: add secretSpacePath in upstream password field while sending to BE
* feat: [AH-299]: support new changes for artifact list page (#2630)

* feat: update har service api version
* feat: [AH-30]: integrate API schema for deployments list content
* feat: [AH-300]: update tag colors for prod and non prod tags
* feat: [AH-300]: Add Deployments table in artiface version details page
* feat: [AH-299]: support new changes for artifact list page
* feat: [AH-299]: support new changes for artifact list page
* feat: [AH-321]: support artifact registry rbac permission on UI (#2671)

* feat: [AH-321]: support artifact registry rbac permission on UI
* enable rbac (#2664)

* fix scope
* enable rbac
* feat: [AH-307]: hide code tab from version details page for both docker and helm
* feat: [AH-240]: add custom handling for enterprise auth type field
* Merge branch 'AH-307-plus-url-support-2_no_rbac' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into AH-307-plus-url-support-2_no_rbac
* feat: [AH-307]: send space_ref in query param while creating registries
* lowercase rootRef
* [AH-307]: updated route
* [AH-307]: Added logs
* [AH-307]: Added logs
* feat: [AH-317]: add space_ref query param
* local
* Merge commit
* Merge commit
* Merge commit
* Added comments
* Revert changes
* Merge commit
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into AH-307-plus-url-support-2
* Merge branch 'AH-306d' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into AH-307-plus-url-support-2
* fix space path handling
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into AH-307-plus-url-support-2
* Updated URLs to support slashes with + separator
* fix: [AH-306c]: fix anonymous flow
* fix: [AH-306c]: fix anonymous flow
* feat: [AH-307]: plus url support on UI

(cherry picked from commit 3fb6add3ce03498b6668b5f8f6d547e1acedaec4)
* [AH-307]: Added examples

(cherry picked from commit e83e41303da536f421be333be04aed09fbf75f5f)
* [AH-307]: Added Regex request rewrite support

(cherry picked from commit ed7b155256bdcd1134bc228b5705556a1233add6)
* fix: [AH-306c]: fix anonymous flow
2024-09-25 05:08:26 +00:00
Shivakumar Ningappa
eea514eb4f feat: [AH-295]: add STO details in AR summary api - refactor code to reuse in harness-code, update router (#2705)
* feat: [AH-295]: add STO details in AR summary api - rebase
* feat: [AH-295]: add STO details in AR summary api - handle errors
* feat: [AH-295]: add STO details in AR summary api - lint error
* feat: [AH-295]: add STO details in AR summary api - refactor code to reuse in harness-code, update router
* feat: [AH-295]: add STO details in AR summary api - refactor code to reuse in harness-code, update router
2024-09-24 23:57:06 +00:00