Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rebaselining dev with master #581

Closed
wants to merge 13 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.17.0
hooks:
- id: gitleaks
stages: [ commit ]
199 changes: 198 additions & 1 deletion config.default.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,200 @@
{
"BROKER_SERVER_UNIVERSAL_CONFIG_ENABLED": false
"BROKER_BOOT_MODE": "classic",
"BROKER_SERVER_URL": "https://broker.snyk.io",
"BROKER_HEALTHCHECK_PATH": "/healthcheck",
"ACCEPT_LARGE_MANIFESTS": "false",
"ARTIFACTORY": {
"BROKER_CLIENT_VALIDATION_URL":"https://$ARTIFACTORY_URL/api/system/ping",
"BROKER_CLIENT_VALIDATION_JSON_DISABLED":"true"
},
"AZURE-REPOS": {
"AZURE_REPOS_HOST":"dev.azure.com",
"BROKER_CLIENT_VALIDATION_BASIC_AUTH":"PAT:$AZURE_REPOS_TOKEN",
"BROKER_CLIENT_VALIDATION_URL":"https://$AZURE_REPOS_HOST/$AZURE_REPOS_ORG/_apis/git/repositories",
"GIT_URL":"$AZURE_REPOS_HOST/$AZURE_REPOS_ORG",
"GIT_USERNAME":"PAT",
"GIT_PASSWORD":"$AZURE_REPOS_TOKEN"
},
"BITBUCKET-SERVER": {
"BITBUCKET_API":"$BITBUCKET/rest/api/1.0",

"BROKER_CLIENT_VALIDATION_URL":"https://$BITBUCKET/rest/api/1.0/projects",
"BROKER_CLIENT_VALIDATION_BASIC_AUTH":"$BITBUCKET_USERNAME:$BITBUCKET_PASSWORD",

"GIT_URL":"$BITBUCKET",
"GIT_USERNAME":"$BITBUCKET_USERNAME",
"GIT_PASSWORD":"$BITBUCKET_PASSWORD"
},
"CR-AGENT": {
"CR_AGENT_URL":"https://<agent-host>:<agent-port>"
},
"GITHUB": {
"GITHUB":"github.com",
"GITHUB_RAW":"raw.githubusercontent.com",
"GITHUB_API":"api.github.com",
"GITHUB_GRAPHQL":"api.github.com",

"BROKER_CLIENT_VALIDATION_URL":"https://$GITHUB_API/user",
"BROKER_CLIENT_VALIDATION_AUTHORIZATION_HEADER":"token $GITHUB_TOKEN",
"GIT_URL":"$GITHUB",
"GIT_USERNAME":"x-access-token",
"GIT_PASSWORD":"$GITHUB_TOKEN"
},
"GITHUB-ENTERPRISE": {

"GITHUB_API":"$GITHUB/api/v3",
"GITHUB_GRAPHQL":"$GITHUB/api",
"BROKER_CLIENT_VALIDATION_URL":"https://$GITHUB_API/user",
"BROKER_CLIENT_VALIDATION_AUTHORIZATION_HEADER":"token $GITHUB_TOKEN",

"GIT_URL":"$GITHUB",
"GIT_USERNAME":"x-access-token",
"GIT_PASSWORD":"$GITHUB_TOKEN"
},
"GITLAB": {
"BROKER_CLIENT_VALIDATION_URL":"https://$GITLAB/api/v3/user?private_token:$GITLAB_TOKEN",

"GIT_URL":"$GITLAB",

"GIT_USERNAME":"oauth2",
"GIT_PASSWORD":"$GITLAB_TOKEN"

},
"JIRA": {
"BROKER_CLIENT_VALIDATION_URL":"https://$JIRA_HOSTNAME/rest/api/2/myself",
"BROKER_CLIENT_VALIDATION_BASIC_AUTH":"$JIRA_USERNAME:$JIRA_PASSWORD"
},
"NEXUS": {
"NEXUS_URL":"$BASE_NEXUS_URL/repository",
"BROKER_CLIENT_VALIDATION_URL":"$BASE_NEXUS_URL/service/rest/v1/status/check",

"BROKER_CLIENT_VALIDATION_JSON_DISABLED":"true",
"REMOVE_X_FORWARDED_HEADERS":"true"
},
"NEXUS2": {
"NEXUS_URL":"$BASE_NEXUS_URL/nexus/content",
"BROKER_CLIENT_VALIDATION_URL":"$BASE_NEXUS_URL/nexus/service/local/status",
"BROKER_CLIENT_VALIDATION_JSON_DISABLED":"true"
},
"FILTER_RULES_PATHS": {},
"SOURCE_TYPES": {
"github": {
"publicId": "9a3e5d90-b782-468a-a042-9a2073736f0b",
"name": "GitHub",
"type": "github",
"brokerType": "github"
},
"bitbucket-server": {
"publicId": "87c79724-9555-4959-b811-08aa22635614",
"name": "Bitbucket Server",
"type": "bitbucket-server",
"brokerType": "bitbucket-server"
},
"github-enterprise": {
"publicId": "219fbe9f-2fb3-4919-b69c-afd6fab25d54",
"name": "GitHub Enterprise",
"type": "github-enterprise",
"brokerType": "github-enterprise"
},
"gitlab": {
"publicId": "6F37586C-ED9C-47BB-9D95-A2C93698836D",
"name": "GitLab",
"type": "gitlab",
"brokerType": "gitlab"
},
"docker-hub": {
"publicId": "7a4b3f39-eb1c-4a6e-9960-025f783b45c9",
"name": "Docker Hub",
"type": "docker-hub",
"brokerType": "container-registry-agent"
},
"ecr": {
"publicId": "850ff1ce-8bad-f00d-fee1-d00d00caca00",
"name": "ECR",
"type": "ecr",
"brokerType": "container-registry-agent"
},
"acr": {
"publicId": "75831964-2f5d-4c74-a798-0f3839b6ac00",
"name": "ACR",
"type": "acr",
"brokerType": "container-registry-agent"
},
"gcr": {
"publicId": "8a2cf306-50ae-4b3f-b98e-5a819c0ba9b6",
"name": "GCR",
"type": "gcr",
"brokerType": "container-registry-agent"
},
"artifactory-cr": {
"publicId": "66831964-2f5d-4c74-a798-0f3839b6ac00",
"name": "Artifactory",
"type": "artifactory-cr",
"brokerType": "container-registry-agent"
},
"harbor-cr": {
"publicId": "62b98e6e-0c70-47c1-9bc3-f6e7005d1069",
"name": "Harbor",
"type": "harbor-cr",
"brokerType": "container-registry-agent"
},
"quay-cr": {
"publicId": "3e82698b-2563-461f-921a-e41c483e3daf",
"name": "Quay",
"type": "quay-cr",
"brokerType": "container-registry-agent"
},
"github-cr": {
"publicId": "86e781e7-a8f9-40ed-b5b5-e442cc3037de",
"name": "GitHub Container Registry",
"type": "github-cr",
"brokerType": "container-registry-agent"
},
"nexus-cr": {
"publicId": "bc5dc4b4-530e-4dff-b494-b927dbab568f",
"name": "Nexus",
"type": "nexus-cr",
"brokerType": "container-registry-agent"
},
"digitalocean-cr": {
"publicId": "465c35cf-7155-4173-bf59-b2c404ad4867",
"name": "DigitalOcean",
"type": "digitalocean-cr",
"brokerType": "container-registry-agent"
},
"gitlab-cr": {
"publicId": "872fe239-fdc8-4d39-9e88-4fb99a2d5f7e",
"name": "GitLab Container Registry",
"type": "gitlab-cr",
"brokerType": "container-registry-agent"
},
"google-artifact-cr": {
"publicId": "481b389f-e23b-4255-a045-f245d425cef0",
"uri": "http://docker-registry-agent",
"name": "Google Artifact Registry",
"type": "google-artifact-cr",
"brokerType": "container-registry-agent"
},
"azure-repos": {
"publicId": "92ff53a7-366d-4639-b75d-d762b5e840b4",
"name": "Azure Repos",
"type": "azure-repos",
"brokerType": "azure-repos"
},
"artifactory": {
"name": "Artifactory Private Registry",
"type": "artifactory",
"brokerType": "artifactory"
},
"nexus": {
"name": "Nexus Private Registry",
"type": "nexus",
"brokerType": "nexus"
},
"nexus2": {
"name": "Nexus2 Private Registry",
"type": "nexus2",
"brokerType": "nexus2"
}
}
}
12 changes: 12 additions & 0 deletions config.universal.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{

"BROKER_CLIENT_URL": "http://my.client:myport",
"BROKER_TYPES": "github,github-enterprise",
"GITHUB": {
"GITHUB_TOKEN":"GITHUB_123"
},
"GITHUB-ENTERPRISE": {
"GITHUB_TOKEN":"GITHUB_ENTERPRISE_123",
"GITHUB": "ghe.mycompany.com"
}
}
Loading