Skip to content

Commit

Permalink
Merge pull request #796 from snyk/feat/add-workload-connection-type
Browse files Browse the repository at this point in the history
feat: add workload connection type [HYB-574]
  • Loading branch information
aarlaud authored Jul 18, 2024
2 parents 37c2d08 + 98f65ab commit db92412
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
15 changes: 13 additions & 2 deletions config.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"nexus-cr",
"digitalocean-cr",
"gitlab-cr",
"google-artifact-cr"
"google-artifact-cr",
"workload"
],
"BROKER_CLIENT_CONFIGURATION": {
"common": {
Expand Down Expand Up @@ -440,6 +441,15 @@
"CR_AGENT_URL": "https://<agent-host>:<agent-port>",
"BROKER_CLIENT_URL": "https://<broker.client.hostname>:<port>"
}
},
"workload": {
"validations": [
],
"default": {
},
"required": {
"WORKLOAD_INTERNAL_URI": "http://workload-internal-uri"
}
}
},
"FILTER_RULES_PATHS": {
Expand Down Expand Up @@ -467,6 +477,7 @@
"nexus-cr":"defaultFilters/container-registry-agent.json",
"digitalocean-cr":"defaultFilters/container-registry-agent.json",
"gitlab-cr":"defaultFilters/container-registry-agent.json",
"google-artifact-cr":"defaultFilters/container-registry-agent.json"
"google-artifact-cr":"defaultFilters/container-registry-agent.json",
"workload":"defaultFilters/workload.json"
}
}
10 changes: 10 additions & 0 deletions defaultFilters/workload.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"public": [],
"private": [
{
"method": "ANY",
"path": "/*",
"origin": "${WORKLOAD_INTERNAL_URI}"
}
]
}

0 comments on commit db92412

Please sign in to comment.