Disable Harness Code Repository
under review
S
Surviving Silverfish
we use the Git Experience when creating all our resources. After a recent update we noticed that every time we create a new resource it chooses the Harness Code Repository by default. We checked the account settings and did not see a way to disable this.
Can we disable the Harness Code Repository? We do not want this as an option, just our GitHub.
Log In
P
Patrick Wolf
To be clear, users can only create and store information in Harness Code Repository if you give them explicit permission to create repositories and push changes. This can be verified in the Account, Org, and Project settings for RBAC.
Additionally, users cannot link to repositories from another Account such as a personal account in GitHub, GitLab or Bitbucket. Only repositories from the current Account can be used.
If you wish to disable Harness Code Repository entirely you can do so today using our OPA policy engine. If you set this simple policy at the Account level it will block the creation of any repository in Harness:
package repository
deny[msg] {
is(1)
msg = "Repositories cannot be created in Harness"
}
I
Integrated Warbler
Patrick Wolf thanks for the reply. The Policy might be a temporary workaround that we can implement. We do not want the Harness Code Repository to be selected by default, ideally it should default to our GitHub Repository. This has created confusion amongst the teams.
Rohan Gupta
under review