369 Commits

Author SHA1 Message Date
Vikyath Harekal
f7420cb02f feat: [CDE-982]: Move gitspace instance marked for infra reset to pending_cleanup state (#4270)
* feat: [CDE-982]: Move gitspace instance marked for infra reset to pending_cleanup state
2025-08-11 05:18:12 +00:00
Darko Draskovic
fd20e8486d hotfixpreqa: [CODE-4317]: Add bypassed to push rules (#4251)
* 4bfa64 Add bypasse check to push rule backfill violations method

* 3a0f13 Merge remote-tracking branch 'origin/main' into dd/push-rules-bypass

* 17d20c Add bypassed to user rules
2025-08-08 12:34:12 +00:00
Vikyath Harekal
140577e840 feat: [CDE-958]: Check is not final state (#4261)
* feat: [CDE-958]: Check is not final state
2025-08-08 08:11:40 +00:00
Johannes Batzill
1a2b17df7d fix: [CODE-4318] Allow to bypass push rules via push (#4253) 2025-08-08 06:53:41 +00:00
Vikyath Harekal
be0de1abd3 feat: [CDE-958]: Mark old instance error and create new one in case of markedForInfraReset (#4258)
* feat: [CDE-958]: Mark old instance error and create new one in case of markedForInfraReset

* feat: [CDE-958]: Mark old instance error and create new one in case of markedForInfraReset

* feat: [CDE-958]: Mark old instance error and create new one in case of markedForInfraReset
2025-08-08 06:35:43 +00:00
Karan Saraswat
8d0fda812b feat: [CODE-4309]: Address feedback comments for webhook audit logs changes (#4245)
* f3d933 feat: [CODE-4309]: Address feedback comments for webhook audit logs changes
2025-08-08 06:18:19 +00:00
Arvind Choudhary
653c7743b7 feat: [AH-1715]: Fixed all context issues (#4207)
* [AH-1715]: format fix

* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into AH-1715-fix-context

* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into AH-1715-fix-context

* [AH-1715]: More changes

* [AH-1715]: Fixed all context issues

* [AH-1715]: Fixed all context issues

* [AH-1715]: Fixed all context issues

* [AH-1715]: First pass of context fixing done
2025-08-06 06:21:26 +00:00
Johannes Batzill
e5724693ca fix: [CODE-4282]: Fix webhook execution retrigger not having an ID (#4194) 2025-08-05 23:32:03 +00:00
Vikyath Harekal
bec66f55ac feat: [CDE-888]: Allow updates for infra resources in sync-all flow only (#4209)
* feat: [CDE-888]: update gitness

* feat: [CDE-888]: Allow updates for infra resources in sync-all flow only

* feat: [CDE-888]: Allow updates for infra resources in sync-all flow only

* feat: [CDE-888]: Allow updates for infra resources in sync-all flow only

* feat: [CDE-888]: Allow updates for infra resources in sync-all flow only
2025-08-05 07:06:36 +00:00
Karan Saraswat
f4b6ec8753 feat: [CODE-4214]: Implement auditing for webhook creation and changes (#4182)
* eec4f4 able to marshal webhook yaml

* 98f520 call audit logs method in the dedicated methods

* a5ec93 send old objects too to audit service

* 795c6b feat: [CODE-4214]: Implement auditing for webhook creation and changes
2025-08-04 12:03:43 +00:00
Darko Draskovic
40d8af7dfe feat: [CODE-4055]: Add option to include/exclude repos in account/org/project rules (#3978)
* 094fa1 Merge remote-tracking branch 'origin/main' into dd/exclude-repos

* d0f6b8 Renumber db migration

* 95cc4b Merge remote-tracking branch 'origin/main' into dd/exclude-repos

* 528b64 Fix bool return func names

* 476a1b Rename RepoTargetFilter fields

* 70c41b Merge remote-tracking branch 'origin/main' into dd/exclude-repos

* e8442a Merge remote-tracking branch 'origin/main' into dd/exclude-repos

* bd7745 Fix migrations

* b336f3 Refactor forEachRuleMatchBranch to match repo name

* f8d446 Rename match branch funcs to match ref and use repo identifier instead of git uid

* 6ff336 Fix tests

* c0fee2 Merge remote-tracking branch 'origin/main' into dd/exclude-repos

* 141b03 Merge remote-tracking branch 'origin/main' into dd/exclude-repos

* 2832c6 Merge remote-tracking branch 'origin/main' into dd/exclude-repos

* f74c2d Merge remote-tracking branch 'origin/main' into dd/exclude-repos

* 236a09 Refactor RepoTarget Matches function and add unit tests

* 5a1675 Merge remote-trac
2025-08-01 15:30:18 +00:00
Marko Gaćeša
ec647171be feat: [CODE-2947]: add DO_NOT_TRACK (#3663)
* add DO_NOT_TRACK and PH key in Dockerfile
2025-07-29 11:48:32 +00:00
Marko Gaćeša
27ef0ff255 fix: [CODE-2554]: fix using auth_or_sign for sig verification (#4128)
* fix using auth_or_sign for sig verification
2025-07-25 13:53:57 +00:00
Ansuman Satapathy
3aaa5097d2 feat: [CDE-862]: fix wiring issues (#4131)
* feat: [CDE-862]: fix wiring issues

* feat: [CDE-862]: fix wiring issues
2025-07-25 12:11:13 +00:00
Karan Saraswat
d547a06fb0 feat: [CODE-4230]: Fix and add audit logs for rules and tag (#4125)
* feat: [CODE-4230]: Fix and add audit logs for rules and tag (#4126)

* harness-auto-fix created this fix

* harness-auto-fix created this fix

* harness-auto-fix created this fix

* feat: [CODE-4230]: Fix and add audit logs for rules and tag

feat: [CODE-4230]: Fix and add audit logs for rules and tag
2025-07-25 11:22:34 +00:00
Ansuman Satapathy
60c6a8bf1e feat: [CDE-862]: fix gitspace settings lint issues (#4124)
* feat: [CDE-862]: fix lint issues
2025-07-25 05:41:15 +00:00
Ansuman Satapathy
e10cb4e542 feat: [CDE-862]: add gitspace settings support (#4057)
* feat: [CDE-862]: change to no-op

* feat: [CDE-862]: change to no-op

* feat: [CDE-862]: change to no-op

* feat: [CDE-862]: change to no-op

* feat: [CDE-862]: change to no-op

* feat: [CDE-862]: refactor to service

* feat: [CDE-862]: refactor to service

* feat: [CDE-862]: remove associated settings during deletion of resource

* feat: [CDE-862]: remove associated settings during deletion of resource

* feat: [CDE-862]: remove associated settings during deletion of resource

* feat: [CDE-862]: remove associated settings during deletion of resource

* feat: [CDE-862]: remove associated settings during deletion of resource

* feat: [CDE-862]: remove associated settings during deletion of resource

* feat: [CDE-862]: remove associated settings during deletion of resource

* feat: [CDE-862]: remove associated settings during deletion of resource

* feat: [CDE-862]: remove associated settings during deletion of resource (#4103)

* Apply suggestion from code review

* feat: [CDE-862]: r
2025-07-25 03:13:15 +00:00
yingshanghuangqiao
8cbb74f8c1
chore: make function comment match function name (#3630)
make function comment match function name

Signed-off-by: yingshanghuangqiao <yingshanghuangqiao@foxmail.com>
2025-07-24 12:19:08 -07:00
Deepak Bhatt
6caf1fe58a feat: [CDE-909]: add update config method in infra provider to add vm image for gpc (#4104)
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into CDE-909

* feat: [CDE-909]: add update config method in infra provider to add vm image for gpc
2025-07-24 11:49:46 +00:00
Marko Gaćeša
b219feb377 feat: [CODE-2055]: public key usage: auth or sign (#4094)
* public key usage: auth or sign
2025-07-24 08:49:16 +00:00
Darko Draskovic
3c3ff0dc64 feat: [CODE-4083]: Validate users in the rule user IDs bypass list (#4006)
* Use global ValidateUsers and rename Validator's ValidateUsers to Validate

* Merge remote-tracking branch 'origin/main' into dd/validate-user-bypass

* Replace noop rules validator with a useful validator logic

* Merge remote-tracking branch 'origin/main' into dd/validate-user-bypass

* Merge remote-tracking branch 'origin/main' into dd/validate-user-bypass

* Merge remote-tracking branch 'origin/main' into dd/validate-user-bypass

* Move all validation into the single helper validateUsers

* Fix tests

* Fix linter issues

* Reuse common rules getRuleUsers to ensureAllUserIDsExist

* Merge remote-tracking branch 'origin/main' into dd/validate-user-bypass

* Merge remote-tracking branch 'origin/main' into dd/validate-user-bypass

* Merge remote-tracking branch 'origin/main' into dd/validate-user-bypass

* Merge remote-tracking branch 'origin/main' into dd/validate-user-bypass

* Add ctx arg to ValidateUsers method of rules Validator

* Use rules Validator as rules service dependency
2025-07-23 14:43:00 +00:00
Marko Gaćeša
ec4aafc73d feat: [CODE-2554]: revoke signatures of compromised keys (#4074)
* revoke signatures of compromised keys
2025-07-22 14:11:56 +00:00
Karan Saraswat
5517a24459 feat: [CODE-4077]: Add rule_type filter to the rules listing API (#4001)
* fixed default rule type filter

* added enum method in openapi/rules.go

* formatted openapi/rules.go file

* feat: [CODE-4077]: addressed review comments to create enum for RuleType

* feat: [CODE-4077]: Add rule_type filter to the rules listing API
2025-07-14 07:53:02 +00:00
Dhruv Dhruv
a6a2c38c68 feat: [CDE-843]: Changes to support sshpiper based ssh connections. (#3993)
* Fixing lint issues.

* feat: [CDE-843]: Changes to support sshpiper based ssh connections.
2025-07-10 03:26:53 +00:00
Ansuman Satapathy
94b5be1b03 feat: [CDE-847]: correctly update status for embedded docker reset (#3995)
* feat: [CDE-847]: correctly update status for embedded docker reset

* feat: [CDE-847]: correctly update status for embedded docker reset
2025-07-09 05:51:00 +00:00
Darko Draskovic
bdab4a14d2 feat: [CODE-3027]: Add secret scanning enable/disable to push rules (#3931)
* Merge remote-tracking branch 'origin/main' into dd/secret-scan-rules

* Merge remote-tracking branch 'origin/main' into dd/secret-scan-rules

* Merge remote-tracking branch 'origin/main' into dd/secret-scan-rules

* Fix tests

* Merge remote-tracking branch 'origin/main' into dd/secret-scan-rules

* Add PrintViolations to protection package

* Sort by size descending push objects in git svc

* Merge remote-tracking branch 'origin/main' into dd/secret-scan-rules

* Add map[int64]PushProtection to push rules in/out

* Properly backfill rules

* Merge remote-tracking branch 'origin/main' into dd/secret-scan-rules

* Add backfill violations

* Merge remote-tracking branch 'origin/main' into dd/secret-scan-rules

* Remove objects suffix from push protection related structs

* Optimize db settings fetch

* Add secret scanning enabled to push rules
2025-07-08 14:23:48 +00:00
Marko Gaćeša
7d5f1b105b feat: [CODE-2554]: introduce keyfetcher (#3971)
* introduce keyfetcher
2025-07-03 10:51:30 +00:00
Marko Gaćeša
7d0ffbfbc0 feat: [CODE-2554]: add commit and tag signature parse and verify (#3915)
* empty commit
* Merge remote-tracking branch 'origin/main' into mg/publickey/verify
* addressing PR comments
* addressing PR comments
* addressing PR comments
* commit signature parsing
2025-07-02 11:13:37 +00:00
Deepak Bhatt
f853871a5e feat: [CDE-822]: remove duplicate call to fetch infra provider config (#3963)
* feat: [CDE-822]: remove duplicate call to fetch infra provider config
2025-07-02 07:23:08 +00:00
Abhinav Singh
2e44b387c3 feat: [CODE-4040]: do better codeowner handling (#3952) 2025-07-01 20:20:03 +00:00
Darko Draskovic
4da9145ba6 fix: [CODE-3027]: Rename push_objects json key name to push (#3960) 2025-07-01 18:33:55 +00:00
Ansuman Satapathy
61bc9e242c feat: [CDE-816]: made reset API async (#3929)
* feat: [CDE-816]: added API to reset gitspaces.
* feat: [CDE-816]: added API to reset gitspaces.
* feat: [CDE-816]: added API to reset gitspaces.
* feat: [CDE-816]: added API to reset gitspaces.
* feat: [CDE-816]: added API to reset gitspaces.
* feat: [CDE-816]: added API to reset gitspaces.
* feat: [CDE-816]: added API to reset gitspaces.
* feat: [CDE-816]: added API to reset gitspaces.
* feat: [CDE-816]: added API to reset gitspaces.
2025-06-26 10:18:09 +00:00
Darko Draskovic
f1500ca67a feat: [CODE-3027]: Add support for push rules (#3898)
* Fix isRepoOwner bug
* Remove AllowBypass and always allow bypass
* Merge remote-tracking branch 'origin/main' into dd/push-rules-commiter-verification
* Rename commit objects to push objects
* Merge remote-tracking branch 'origin/main' into dd/push-rules-commiter-verification
* Add push protection check to pre-receive
* Add CommitObjectsVerifyOutput
* Add pushRuleSet
* Merge remote-tracking branch 'origin/main' into dd/push-rules-commiter-verification
* Add PushProtection interface to protection package
* Add support for push rules
2025-06-24 15:52:48 +00:00
Deepak Bhatt
ca075cdca2 fix: [CDE-818]: add check for input cpu and memory for infra resource creation (#3909)
* fix: [CDE-818]: add check for input cpu and memory
2025-06-18 12:59:14 +00:00
Tudor Macari
811a0e11c3 feat: [AH-1062]: RPM registry upstream repo support, assync processing (#3885)
* feat: [AH-1062]: fix migrations
* fix
* resolve conflicts
* Merge branch 'AH-1062' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into AH-1062
* feat: [AH-1062]: RPM registry upstream repo support, assync processing
2025-06-17 04:47:05 +00:00
Tudor Macari
0c79408ae2 feat: [AH-1062]: RPM registry upstream repo support revert (#3878)
* fix lint
* Revert Pull Request #3768 "feat: [AH-1062]: RPM registry upstream repo support"
2025-06-12 10:45:39 +00:00
Deepak Bhatt
f630c1f21b fix: [CDE-802]: add debug logs for gitspace events and event type for cleanup jobs (#3868)
* fix: [CDE-802]: address feedback
* fix: [CDE-802]: address feedback
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into CDE-802
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into CDE-802
* Trigger Build
* Trigger Build
* fix: [CDE-802]: add debug logs for gitspace events and event type for cleanup jobs
2025-06-12 06:29:18 +00:00
Dhruv Dhruv
02154631ee fix: [CDE-791]: Adding filter for latest in listing gateways. (#3874)
* Fixing lint
* Fixing join query.
* fix: [CDE-791]: Adding filter for latest in listing gateways.
2025-06-12 06:00:41 +00:00
Tudor Macari
96736ba083 feat: [AH-1062]: RPM registry upstream repo support (#3768)
* resolve PR comments
* resolve PR comments, minor adjustments
* fix migrations
* fix lint
* fix lint
* feat: [AH-1062]: RPM registry upstream repo support, assync processing
2025-06-11 07:04:09 +00:00
Marko Gaćeša
db66e6143e feat: [CODE-2548]: parse git object signature (#3862)
* parse git object signature
2025-06-10 13:40:12 +00:00
Darko Draskovic
bd4a2623bd fix: [CODE-2191]: Refactor add user group reviewer to fix, optimize and make consistent (#3812)
* Merge remote-tracking branch 'origin/main' into dd/usergroup-reviewers
* Remove redundant ListUserIDsByGroupID
* Move space find from user group svc user group ctrl
* Merge remote-tracking branch 'origin/main' into dd/usergroup-reviewers
* Check map key exists
* Merge remote-tracking branch 'origin/main' into dd/usergroup-reviewers
* Add getHighestOrderDecision helper and remove pointers from resp struct
* Remove ListUserIDsByGroupID and add MapGroupIDsToPrincipals
* Add logic to derive user group reviewer uniqe decision
* Merge remote-tracking branch 'origin/main' into dd/usergroup-reviewers
* Merge remote-tracking branch 'origin/main' into dd/usergroup-reviewers
* Merge remote-tracking branch 'origin/main' into dd/usergroup-reviewers
* Add proper userGroupReviewerDecisions to UserGroupReviewers
* Rename serach service to service and search to list
* Merge remote-tracking branch 'origin/main' into dd/usergroup-reviewers
* Refactor SearchService
* Merge remote-tracking branch 'origin
2025-06-06 15:43:18 +00:00
Marko Gaćeša
6da5ebf5b8 feat: [CODE-2548]: PGP keys (#3836)
* use slices.ContainsFunc
* storing identities to pgp key metadata
* fixed query for listing public keys by subkey ID
* pr comments
* pgp keys
2025-06-03 10:30:57 +00:00
Abhinav Singh
d7b60af902 feat: [CODE-3841]: branches table and populate it (#3779)
* feat: [CODE-3837]: PR banner
* Apply suggestions from code review
* feat: [CODE-3837]: PR banner
* feat: [CODE-3837]: PR banner
* feat: [CODE-3837]: PR banner
* feat: [CODE-3837]: PR banner
* Merge remote-tracking branch 'origin' into abhinav/pr-banner
* feat: [CODE-3837]: PR banner
* Merge remote-tracking branch 'origin' into abhinav/pr-banner
* feat: [CODE-3837]: PR banner
* feat: [CODE-3837]: PR banner
* feat: [CODE-3837]: PR banner
* feat: [CODE-3837]: PR banner
* feat: [CODE-3837]: PR banner
* feat: [CODE-3837]: PR banner
* Update app/api/request/common.go
* Update app/api/request/common.go
* feat: [CODE-3837]: PR banner
* feat: [CODE-3837]: PR banner
* feat: [CODE-3837]: PR banner
* feat: [CODE-3837]: PR banner
* feat: [CODE-3837]: PR banner
* feat: [CODE-3837]: PR banner
* feat: [CODE-3837]: PR banner (#3784)

* feat: [CODE-3837]: PR banner
* feat: [CODE-3837]: PR banner
* Merge remote-tracking branch 'origin/abhinav/pr-banner' into abhinav/pr-banner

# Conflicts:
#	app/store/
2025-05-29 21:19:52 +00:00
Deepak Bhatt
1b86186784 fix: [CDE-789]: update cpu and memory when creating infra resource (#3828)
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into CDE-789
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into CDE-789
* Feat: [CDE-734]: update cpu and memory when creating infra resource
2025-05-27 05:44:06 +00:00
Darko Draskovic
60bc0a7d79 feat: [CODE-3788]: Add tag rule type (#3761)
* Merge remote-tracking branch 'origin/main' into dd/tag-rules
* Use strings builder
* Add rule type string slice flatten for sqlite
* Merge remote-tracking branch 'origin/main' into dd/tag-rules
* Revert to force update
* Merge remote-tracking branch 'origin/main' into dd/tag-rules
* Add separate life cycle rules for tags and branches
* Merge remote-tracking branch 'origin/main' into dd/tag-rules
* Remove reflection
* Merge remote-tracking branch 'origin/main' into dd/tag-rules
* Rename GetRuleInfos to GetBranchRuleInfos
* Add update tag pre-receive violation
* Merge remote-tracking branch 'origin/main' into dd/tag-rules
* Merge remote-tracking branch 'origin/main' into dd/tag-rules
* Add unit tests for tagRuleSet
* Add pre-receive tag protection rule
* Rename funcs, export interfaces and further generalize/reuse rule set funcs
* Extract common rule set funcs in set_common.go
* Use ruleTypes ...types.RuleType in ListAllRepoRules store func
* Merge remote-tracking branch 'origin/main'
2025-05-20 15:24:30 +00:00
Enver Biševac
389fa0029d feat: [code-3827]: usage metrics enhancement (#3794)
* only count active repositories
* requested changes
* usage metrics enhancement
2025-05-20 10:14:15 +00:00
Marko Gaćeša
90ac3677ae feat: [CODE-2548]: add PGP keys (#3781)
* add PGP keys
2025-05-16 11:13:41 +00:00
Deepak Bhatt
e02663168a Feat: [CDE-734]: add methods for fetching gitspace attributes for access check (#3774)
* Feat: [CDE-734]: return val and not pointer
* Feat: [CDE-734]: add todo
* Feat: [CDE-734]: fix issue
* Feat: [CDE-734]: add log
* Feat: [CDE-734]: fix order
* Feat: [CDE-734]: fix dst slice
* Feat: [CDE-734]: fix dst slice
* Feat: [CDE-734]: fix lint
* Feat: [CDE-734]: return ids in same order
* Feat: [CDE-734]: fix lint
* Feat: [CDE-734]: add methods for fetching gitspace attributes for access check
* Feat: [CDE-734]: add methods for fetching gitspace attributes for access check
2025-05-14 12:22:38 +00:00
Dhruv Dhruv
ce881ad8a1 fix: [CDE-771]: Adding resource_name to resource metadata. (#3766)
* fix: [CDE-771]: Adding resource_name to resource metadata.
2025-05-08 03:11:10 +00:00
Vikyath Harekal
8d13a4beb3 feat: [CDE-753]: Fix backend handling of gitspace deletion requests (#3745)
* feat: [CDE-753]: Fix lint
* feat: [CDE-753]: Fix backend handling of gitspace deletion requests
2025-05-02 09:52:00 +00:00