39 Commits

Author SHA1 Message Date
Patrick Wolf
d789e5775e feat: [CODE-2402] : Update all occurences of 'gitness' to 'harness' within comments and markdown. Updated the logo reference (did not delete the Gitness logo directory yet). No active code changes except display strings. (#2684)
* Apply suggestion from code review
* updating images for signin and register page.
* fix: lint
* fix: logo update
* revert golangci
* Adding more strings and updated the logo. Still need to update the signin page images
* Apply suggestion from code review

Updating harness logo to use Open Source logo
* Update all occurences of 'gitness' to 'harness' within comments and markdown. Updated the logo reference (did not delete the Gitness logo directory yet).  No active code changes except display strings.
2024-09-25 00:13:28 +00:00
Tudor Macari
40ee05ca11 feat: [AH-309]: Artifact Registry integration (#2318) 2024-08-22 00:28:17 +00:00
Hitesh Aringa
35f8caeedf Update version govulncheck v1.1.1 (#2083) 2024-06-06 22:55:15 +00:00
Johannes Batzill
2f5e79cee0 [Makefile] fix gci tool to fixed version (latest one that worked) (#1151) 2024-03-27 16:30:29 +00:00
Abhinav Singh
cbbb565f24 fix: fix lint version (#1129) 2024-03-21 08:24:35 +00:00
Enver Bisevac
67f560874d [maint] gitrpc package removed (#726) 2023-11-15 10:15:32 +00:00
Hitesh Aringa
b31ae8c257 [CODE-1011]: Disable case sensitive branch search and remove gitea open repo (#732) 2023-10-27 23:46:34 +00:00
Johannes Batzill
1ea0025f99 [MISC] Fix Linting/Formatting/Generated Files (#697) 2023-10-19 00:36:07 +00:00
Enver Bisevac
1c762c6802 [maint] add docker buildx support (#661) 2023-10-06 22:53:48 +00:00
Johannes Batzill
b1583e8cec prepare open-source 2023-09-25 19:07:35 -07:00
Johannes Batzill
a83cd21c17 [OPEN-SOURCE] Prepare Repository (#605) 2023-09-24 07:33:16 +00:00
Enver Bisevac
c9c1700a21 initial docker file 2023-08-28 15:37:54 +02:00
Johannes Batzill
3cec2573a2 [GITHA] Add githaserver executable (#331) 2023-08-17 17:51:38 +00:00
Johannes Batzill
5543fba0b4 [GIHA] Introduce githa custom githook binary (#186) 2023-07-12 15:49:06 +00:00
Marko Gaćeša
e6d09e2637 enable gogit in gitea 2023-07-04 14:10:23 +02:00
Enver Bisevac
43f0be35e0 [MAINT] Isolate harness app into harness package (#133) 2023-06-15 13:35:12 +00:00
Enver Bisevac
a9b06bd273 Merge branch 'eb/code-246' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness (#113) 2023-06-12 14:29:30 +00:00
Enver Bisevac
f7bdcc9323 move docker files for harness in harness folder 2023-06-12 15:22:32 +02:00
Atefeh Mohseni-Ejiyeh
0df1335855 [HARNESS] Delete Space on Harness Account/Org/Project deletion (#83) 2023-06-08 00:09:34 +00:00
Enver Bisevac
85361d27fb docker UBI images for pipelines 2023-06-06 15:39:38 +02:00
Johannes Batzill
3188c5757a [Makefile] Default to First Entry in GOPATH for GOBIN (#325) 2023-02-12 12:01:52 -08:00
Johannes Batzill
2b74349922 [MISC] Hide pre/dev vars from version package (#299) 2023-02-02 17:52:37 -08:00
Hitesh Aringa
0d922b5354 [SCM-117]: Passing version info while building image (#297) 2023-02-02 17:27:41 -08:00
Johannes Batzill
7da9bce7c1 [Githook] Add GitHook binary (#259)
This PR adds a githook sub-package to our cmd packages, introducing the githook binary.
The binary is linked as pre-receie/update/post-receive by gitrpc if configured.
This is required to have a gitrpc deployment without requiring the one-in-all gitness binary on the same machine.
2023-01-27 13:04:58 -08:00
Johannes Batzill
114cdb34e0 [GITRPC] Add GitRPC Binary (#257) 2023-01-27 10:34:42 -08:00
Johannes Batzill
e2d10d06cf [MISC] Move to alpine/git:2.36.3 (#238) 2023-01-21 16:23:04 -08:00
Johannes Batzill
335998505e [MISC] Introduce PathStore and Move PathLogic to Controller Layer (#226)
This change is a follow up on the effort to remove transactions and sync stores from the database layer, and move them in the application layer. It is addressing the repo + space store.
The following changes are included:
- Introduce PathStore storing resource paths (repo + space)
- Add foreign key from path.repo_id/space_id to repo.id/space.id
- Add foreign key from repo/space.parent_id to space.id
- Remove repo_sync and space_sync
- Move path creation logic to repo/space controller (for both creating primary paths for new repos/spaces, as well as creating alias spaces)
- Reimplement repo/space moving on controller layer
2023-01-18 11:34:12 -08:00
Enver Bisevac
630c9b553f ordering imports linter and writer (#85) 2022-11-22 23:42:39 +01:00
Johannes Batzill
3ba0f75c8d Introduce UIDs for Space / Repo / Tokens, Add Custom Harness Validation, ... (#57)
This change adds the following:
- Space UID + Custom harness validation (accountId for top level space, harness identifier for child spaces)
- Repo UID + Custom harness validation (harness identifier)
- Store Unique casing of space / repo path and add Path.ValueUnique (with Unique index) to allow for application layer controlling the case sensitivity (case insensitive standalone vs partially case sensitive harness)
- Token UID (unique index over ownertype + ownerID + tokenUID)
- Add DisplayName for principals (replaces Name to avoid confustion)
- Store Unique casing of principal UID and add Principal.ValueUnique (with unique index) to allow for application layer, per principal type control of case sensitivity (required in embedded mode)
- Generate serviceAccount UID (+Email) Randomly (sa-{space|repo}-{ID}-{random}) - Allows to have a unique UID across all principals while reducing likelyhood of overlaps with users + avoid overlap across spaces / repos.
- Sync casing of space names (accountId orgId projectId) when creating spaces on the fly (to ensure case sensitivity of - harness code) or use the existing space to update casing.
- Update serviceaccount client to match updated NG Manager API
- in embedded mode create spaces for harness resources owning the service account
2022-11-06 23:14:47 -08:00
Enver Bisevac
20860ef399 [maint] app refactor, use proper package names (#53)
* app refactor, use proper package names

* minor changes

* use fat client interface, minor change on session

* initialize session and http client
2022-11-04 08:25:13 +01:00
Enver Bisevac
578dd13d8d [maint] eb/gitrpc refactor (#51)
* pull/push impl done

* Basic auth for harness

* gitrpc as top level package

* New ctor for package

* gitrpcserver instead of server2
2022-11-03 13:17:03 +01:00
Enver Bisevac
fb0e93394d [feat] pull/push over https - done (#47)
* pull/push impl done

* Basic auth for harness
2022-11-01 19:02:29 +01:00
Johannes Batzill
ecb6276fa8 Add EOF to RPC File Chunk & Cleanups (#29)
Adds an EOF flag to data chunks to avoid using []byte("EOF") as end (due to potential false positives).
Furthermore, a few cleanups are done:
- Add TODOs for initial git changes
- Add missing file headers
- Fix typo for license (was licence)
- Fix make wire target
2022-10-12 10:21:53 -07:00
Enver Bisevac
1cf07b6417 initial work on create repository (#27)
* initial work on create repository

* create repository as single method call using client stream

* resources handler and files

* minor fix for wire dep graph
2022-10-11 17:48:04 +02:00
Johannes Batzill
4668e94027 [Harness] Adding JWT/PAT/SAT Support, Harness Clients, Inline User/ServiceAccount Creation, harness Build flag, ... (#22)
This change adds the initial stepping stones for harness integration:
- Authentication: JWT/PAT/SAT support
- Authorization: ACL integration (acl currently denies requests as gitness hasn't been integrated yet)
- Remote Clients for Token, User, ServiceAccount, ACL
- User Integration: Syncs harness users during authentication if unknown
- SA integration: syncs harness service accounts during authentication if unknown
- Initial harness API: THIS WILL BE CHANGED IN THE FUTURE!
- single harness subpackage (all marked with harness build flag)
- harness & standalone wire + make build commands
2022-09-30 16:22:12 -07:00
Enver Bisevac
78d5794221 makefile build rule modified, ioutil deprecated removed 2022-09-22 16:27:46 +02:00
Enver Bisevac
66f2dadb7a [MAINT] fixing linter errors (#19)
* fix linter errors

* fix exhaust linter error

* fix exhaust linter error

* fix linter errors

* golangci-lint timeout increased

* golangci-lint verbose flag
2022-09-22 16:08:41 +02:00
Enver Bisevac
ca8aa47e05 [MAINT] initial work on linter setup (#16)
* initial work on linter setup

* simple linter rules fixed
2022-09-13 00:08:43 +02:00
Enver Bisevac
f58ceac474 [MAINT] initial work on local dev env (#13)
* initial work on local dev env

* minor changes on makefile

* pre-commit x permission added

* readme updated and minor improvments in docker conf
2022-09-12 19:09:04 +02:00