Commit Graph

2395 Commits (CODE-2402)

Author SHA1 Message Date
Enver Bisevac cad145b4ae node action added in ci 2022-09-13 01:13:01 +02:00
Enver Bisevac 46b4b98d1f node action added in ci 2022-09-13 01:09:33 +02:00
Enver Bisevac 8aa924416d node action added in ci 2022-09-13 01:04:14 +02:00
Enver Bisevac 89b44d2862 node action added in ci 2022-09-13 01:03:19 +02:00
Enver Bisevac b416d5ce85 node action added in ci 2022-09-13 01:00:38 +02:00
Enver Bisevac e2d3baf58a Merge branch 'main' of github.com:harness/gitness 2022-09-13 00:39:45 +02:00
Enver Bisevac f87602e20e action status badge 2022-09-13 00:39:22 +02:00
Enver Bisevac 3d626f7099 Create ci.yml 2022-09-13 00:35:25 +02:00
Enver Bisevac a549689c16 Merge branch 'main' of github.com:harness/gitness 2022-09-13 00:28:28 +02:00
Enver Bisevac 90693f7a10 precommit modified 2022-09-13 00:28:14 +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
Johannes Batzill b7b9f53b0d Improve error handling to match go standards - don't wrap and rethrow, but log and return. Also adds some more validations for path creation and resource moving. Add accesslogging for git and api router (#14)
This commit contains the following:
- Improve and simplify error handling (remove unnecessary wrappers, make it feel like go)
- Add extra validation for path creation and resource moving (path has to be within same top space, no top space alias allowed)
- Add access logging for rest api and git api
2022-09-09 22:08:46 -07:00
Johannes Batzill 4812beedc6 Enforce max path length on store layer to avoid racing condition, (#12)
Add enforcement of the path length to the store layer before writing the path, move errs to internal, and adds a comms package under internal/api.
2022-09-09 00:45:41 -07:00
Johannes Batzill 1115a5083b Add `Paths` support and error improvements (#11)
This change is adding the concept of Paths.
A repository and space always have a Primary Path which always is represents the ancestry to the root space.
All access history / resource visibility / child listings / UI traversal / etc. is done via that path.

Additionally, repos and spaces can have Alias Paths, which as the name states are aliases. via the primary path.
They sole impact is that a space or repo can be reached via different paths from the UI / rest apis / git apis.
This fulfills two major purposes:
- Customers can rename or move projects and spaces without breaking any existing references from CI pipeliens / code bases / local repos / ...
- Customer can create shorter aliases for important repos when in harness embeded mode! (acc/org/proj/repo can be shortened to acc/repo, or acc/repo'

Apart from the path changes, this PR adds:

Improved User facing errors
Improved internal error handling and wrapping
update / rename operation for repo and space
path list / delete / create operation for repo and space
2022-09-08 21:39:15 -07:00
Johannes Batzill 1db4fc9c8d Change create API for space/repo to follow REST best practices (#10)
Move repo and space create apis to /api/v1/repos/ and /api/v1/spaces/ and take name and parentId in body.
2022-09-06 20:36:34 -07:00
Johannes Batzill 608ae2f0c8 Add Basics for Authn, Authz, Spaces, Repos. #9
This PR removes some unnecessary files inherited from the sample-repo,
and adds the frame for the following:

Rest Server (terminated FQN encoding, high level routing, basic API/GIT/UI routes, repo/space/user injection into request)
Spaces (Struct, DB, CRUD Operations)
Repos (Struct, DB, CRUD Operatons)
guard middleware for simplifying authorization
Authentication (Abstraction, frame for harness integration)
Authorization (Abstraction, harness ACL based implementation)
2022-09-06 15:02:41 -07:00
Johannes Batzill 3fa479429c Address comments on customer guard errors 2022-09-06 15:01:13 -07:00
Johannes Batzill 4545ffa666 add one more assumption to harness ACL client 2022-09-05 22:29:40 -07:00
Johannes Batzill 3b6f6b8916 Add proper scoping to authorization code 2022-09-05 22:17:16 -07:00
Johannes Batzill ff806fb492 block 'api' as root space name, minor improvements 2022-09-05 18:45:16 -07:00
Johannes Batzill d7f0ae4b2c Add base structure for rest api, git api, web api. Add base authn and authz, as well as spaces and repository apis 2022-09-05 13:47:00 -07:00
Johannes Batzill 32e6c4929f Add authn, authz, spaces, guard, terminated FQNs 2022-09-05 13:47:00 -07:00
Johannes Batzill 84393e0e12 Add frame for authn and initial harness authz implementation 2022-09-05 13:47:00 -07:00
Johannes Batzill 4cd1ecebf1 Remove unnecessary types 2022-09-05 13:47:00 -07:00
Tan Nhu 95312aef30 Merge pull request #8 from harness/rename-scm-to-gitness
Rename SCM to Gitness
2022-08-29 14:29:23 -07:00
Tan Nhu 2ccfb74a51 Rename SCM to Gitness 2022-08-29 14:28:46 -07:00
Johannes Batzill c9792ad58d Rename project to 'gitness'
Rename project to `gitness` based on Jyoti's suggestion.
2022-08-29 10:17:47 -07:00
Johannes Batzill 4aa8819765 Rename project to 'gitness' 2022-08-29 10:12:07 -07:00
Tan Nhu d62e4e376e Merge pull request #6 from harness/ui-template-improved4
Add typing improvements
2022-08-26 15:57:46 -07:00
Tan Nhu bad786e769 Add typing improvements 2022-08-26 15:57:05 -07:00
Tan Nhu 298accecc1 Merge pull request #5 from harness/ui-template-improved3
Clean up unused files (cont)
2022-08-22 17:04:43 -07:00
Tan Nhu f2b65c7f77 Clean up unused files (cont) 2022-08-22 17:04:21 -07:00
Tan Nhu aa57f380bb Merge pull request #4 from harness/ui-template-improved2
Clean up unused files
2022-08-22 16:44:31 -07:00
Tan Nhu 88dff819c9 Clean up unused files 2022-08-22 16:44:07 -07:00
Tan Nhu 7f5a783416 Merge pull request #3 from harness/ui-template-improved
Simplify routing system
2022-08-22 16:04:37 -07:00
Tan Nhu 6d3d3d62f6 Simplify routing system 2022-08-22 16:04:00 -07:00
Johannes Batzill a051fd9a28 Rename module to github.com/harness/scm & Fix web/dist.go (PR #2)
This change is renaming the go module to github.com/harness/scm to match the github url of the repository.
Furthermore, it adds back the code in web/dist.go that is serving the static web content, as otherwise builds are failing.
2022-08-18 15:50:29 -07:00
Johannes Batzill baec2451ad fix import ordering for mock classes 2022-08-18 15:22:53 -07:00
Johannes Batzill 813d343f6a Rename module to github.com/harness/scm. Fix web/dist.go 2022-08-18 15:15:50 -07:00
Tan Nhu 6c65018ccf Merge pull request #1 from harness/ui-tempalate-update
Sync UI template with latest updates
2022-08-18 11:45:03 -07:00
Tan Nhu 7c6da77a27 Sync UI template with latest updates 2022-08-18 11:44:33 -07:00
Tan Nhu 66fea2a730 Sync UI template with latest updates 2022-08-12 12:09:57 -07:00
Tan Nhu b5e426a177 Initial commit 2022-08-09 12:42:06 -07:00
Tan Nhu 5891818ce1 Initial commit 2022-08-09 12:37:37 -07:00