{"id":13728329,"url":"https://github.com/keptn-sandbox/locust-service","last_synced_at":"2026-01-23T15:34:00.162Z","repository":{"id":37055667,"uuid":"331580158","full_name":"keptn-sandbox/locust-service","owner":"keptn-sandbox","description":"Keptn integration to performance test your application using the Locust (acts as a replacement for JMeter Service)","archived":false,"fork":false,"pushed_at":"2023-09-13T23:09:00.000Z","size":350,"stargazers_count":7,"open_issues_count":21,"forks_count":8,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-11-14T19:39:43.015Z","etag":null,"topics":["keptn","load-test","test"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/keptn-sandbox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-01-21T09:38:09.000Z","updated_at":"2024-11-11T01:03:47.000Z","dependencies_parsed_at":"2024-01-07T16:32:27.138Z","dependency_job_id":"b410f59b-79bc-4fdc-a49f-bf02be698f51","html_url":"https://github.com/keptn-sandbox/locust-service","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/keptn-sandbox/locust-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keptn-sandbox%2Flocust-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keptn-sandbox%2Flocust-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keptn-sandbox%2Flocust-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keptn-sandbox%2Flocust-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keptn-sandbox","download_url":"https://codeload.github.com/keptn-sandbox/locust-service/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keptn-sandbox%2Flocust-service/sbom","scorecard":{"id":555936,"data":{"date":"2025-08-11","repo":{"name":"github.com/keptn-sandbox/locust-service","commit":"1845d6ee0ea0b7895cd34cb66da816ce782e6ebf"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":6,"reason":"Found 9/14 approved changesets -- score normalized to 6","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/CI.yml:1","Warn: no topLevel permission defined: .github/workflows/reviewdog.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/keptn-sandbox/locust-service/CI.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/keptn-sandbox/locust-service/CI.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/keptn-sandbox/locust-service/CI.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/keptn-sandbox/locust-service/CI.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/keptn-sandbox/locust-service/CI.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:104: update your workflow using https://app.stepsecurity.io/secureworkflow/keptn-sandbox/locust-service/CI.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:108: update your workflow using https://app.stepsecurity.io/secureworkflow/keptn-sandbox/locust-service/CI.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:112: update your workflow using https://app.stepsecurity.io/secureworkflow/keptn-sandbox/locust-service/CI.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:135: update your workflow using https://app.stepsecurity.io/secureworkflow/keptn-sandbox/locust-service/CI.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:139: update your workflow using https://app.stepsecurity.io/secureworkflow/keptn-sandbox/locust-service/CI.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:149: update your workflow using https://app.stepsecurity.io/secureworkflow/keptn-sandbox/locust-service/CI.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:156: update your workflow using https://app.stepsecurity.io/secureworkflow/keptn-sandbox/locust-service/CI.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:175: update your workflow using https://app.stepsecurity.io/secureworkflow/keptn-sandbox/locust-service/CI.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reviewdog.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/keptn-sandbox/locust-service/reviewdog.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reviewdog.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/keptn-sandbox/locust-service/reviewdog.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/reviewdog.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/keptn-sandbox/locust-service/reviewdog.yml/main?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:4","Warn: containerImage not pinned by hash: Dockerfile:37: pin your Docker image by updating python:3.8-slim to python:3.8-slim@sha256:1d52838af602b4b5a831beb13a0e4d073280665ea7be7f69ce2382f29c5a613f","Warn: pipCommand not pinned by hash: Dockerfile:43","Warn: goCommand not pinned by hash: .github/workflows/reviewdog.yml:17","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  10 third-party GitHubAction dependencies pinned","Info:   0 out of   2 containerImage dependencies pinned","Info:   0 out of   1 pipCommand dependencies pinned","Info:   0 out of   1 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 0.1.5 not signed: https://api.github.com/repos/keptn-sandbox/locust-service/releases/47290028","Warn: release artifact 0.1.5 does not have provenance: https://api.github.com/repos/keptn-sandbox/locust-service/releases/47290028"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":9,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/keptn-sandbox/.github/SECURITY.md:1","Info: Found linked content: github.com/keptn-sandbox/.github/SECURITY.md:1","Warn: One or no descriptive hints of disclosure, vulnerability, and/or timelines in security policy","Info: Found text in security policy: github.com/keptn-sandbox/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2024-2618 / GHSA-5pf6-2qwx-pxm2","Warn: Project is vulnerable to: GO-2022-0603 / GHSA-hp87-p4gw-j4gq"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 26 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T12:19:48.017Z","repository_id":37055667,"created_at":"2025-08-20T12:19:48.017Z","updated_at":"2025-08-20T12:19:48.017Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28694666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T14:15:13.573Z","status":"ssl_error","status_checked_at":"2026-01-23T14:09:05.534Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["keptn","load-test","test"],"created_at":"2024-08-03T02:00:40.593Z","updated_at":"2026-01-23T15:34:00.139Z","avatar_url":"https://github.com/keptn-sandbox.png","language":"Go","funding_links":[],"categories":["Tools \u0026 Integrations"],"sub_categories":["CI/CD"],"readme":"# Keptn Locust Service\n\nThis service provides a way to performance test on your application triggered by [Keptn](https://keptn.sh) using the [Locust](https://locust.io/) performance testing tool.\n\n## :warning: NOT MAINTAINED\n\nPlease take a look at https://artifacthub.io/packages/keptn/keptn-integrations/locust-service as an alternative.\n\n\n## Compatibility Matrix\n\n| Keptn Version    | [locust-service Docker Image](https://hub.docker.com/r/keptnsandbox/locust-service/tags?page=1\u0026ordering=last_updated) |\n|:----------------:|:----------------------------------------:|\n|       0.8.0      | keptnsandbox/locust-service:0.1.0 |\n|       0.8.1      | keptnsandbox/locust-service:0.1.1 |\n|       0.8.2      | keptnsandbox/locust-service:0.1.2 |\n|       0.8.3      | keptnsandbox/locust-service:0.1.3 | \n|       0.8.4-0.8.5      | keptnsandbox/locust-service:0.1.4 | \n|       0.8.6-0.8.7      | keptnsandbox/locust-service:0.1.5 (upgrade to Locust v2) | \n\n## Keptn CloudEvents\n\nThis service reacts on the following Keptn CloudEvents (see [deploy/service.yaml](deploy/service.yaml)):\n* `sh.keptn.event.test.triggered` -\u003e start locust performance tests\n* `sh.keptn.event.test.finished` -\u003e clean up resources and print results\n\n## Installation -  Deploy in your Kubernetes cluster\n\nTo deploy the current version of the *locust-service* in your Keptn Kubernetes cluster, run\n\n```console\nkubectl apply -f https://raw.githubusercontent.com/keptn-sandbox/locust-service/release-0.1.5/deploy/service.yaml -n keptn\n```\n\nThis will install the `locust-service` into the `keptn` namespace, which you can verify using:\n\n```console\nkubectl -n keptn get deployment locust-service -o wide\nkubectl -n keptn get pods -l run=locust-service\n```\n\n## Usage\n\nThe `locust-service` expects locust test files in the project specific Keptn repo. It expects those files to be available in the `locust` subfolder for a service in the stage you want to execute tests.\n\nHere is an example on how to upload the `locustfile.py` test file via the Keptn CLI to the dev stage of project sockshop for the service carts:\n\n```\nkeptn add-resource --project=sockshop --stage=dev --service=carts --resource=locustfile.py --resourceUri=locust/locustfile.py\n```\n\n### Defaults\n\nIf the user does not provide a specific configuration file (see next section) the `locust-service` will search for `locust/locustfile.py` in the specific Keptn repo and try to execute it. If the file does not exist the tests will be skipped.\n\n### Providing a config file\n\nA `locust.conf.yaml` file can be added for more complex configurations like multiple test files for different stages. It is also possible to provide a [locust config file](https://docs.locust.io/en/stable/configuration.html#configuration-file) to further customize the tests. If no configuration file is specified the `locust-service` will proceed with the default setting. \n\n```\n---\nspec_version: '0.1.0'\nworkloads:\n  - teststrategy: functional\n    script: /locust/basic.py\n    conf: /locust/locust.conf\n  - teststrategy: performance_light\n    script: /locust/basic.py\n    conf: /locust/locust.conf\n  - teststrategy: functional-light\n    script: /locust/basic.py\n```\n\nThe configuration file can be added to the repo using the `keptn add-resource` command:\n\n```\nkeptn add-resource --project=sockshop --service=carts --stage=dev --resource=locust.conf.yaml --resourceUri=locust/locust.conf.yaml\n```\n\nThe contents of `locust.conf.yaml` should be used as described in the following:\n- If a \"script\" is given, it has to be used in the execution of the locust test.\n- If \"script\" is not given, we can assume that the script is part of the \"config\" file that is referenced.\n- If a \"conf\" is given, it should be used in the execution of the locust test.\n- If \"conf\" is not given, the \"script\" will be executed with default setting.\n- If both \"script\" and \"conf\" are missing, the integration skips the tests and indicate this in the result that is sent back to Keptn.\n\nExamples for both the `locust.conf.yaml` and the [locust config file](https://docs.locust.io/en/stable/configuration.html#configuration-file) can be found in the [test-data/](test-data) directory.\n\n### Use kubernetes secrets as environment variables in the locust tests\n\nThe `locust-service` injects kubernetes secrets from its namespace with a matching name (`locust-\u003cproject\u003e-\u003cstage\u003e-\u003cservice\u003e`) as environment variables for the test execution. Secrets can be created with `kubectl`:\n\n```\nkubectl -n keptn create secret generic locust-sockshop-dev-carts --from-literal=API_TOKEN=1234abcd --from-literal=PASSWORD=keptn\n```\n\nNow for tests in the project `sockshop`, stage `dev`, service `carts` the secrets will be available as environment variables in the locust tests:\n\n```\nos.environ['API_TOKEN']\nos.environ['PASSWORD']\n```\n\n## Uninstall -  Delete from your Kubernetes cluster\n\nTo delete the locust-service, delete using the [`deploy/service.yaml`](deploy/service.yaml) file:\n\n```console\nkubectl delete -f deploy/service.yaml\n```\n\n## Development\n\nDevelopment can be conducted using any Golang compatible IDE/editor (e.g., Jetbrains GoLand, VSCode with Go plugins).\n\nIt is recommended to make use of branches as follows:\n\n* `master` contains the latest potentially unstable version\n* `release-*` contains a stable version of the service (e.g., `release-0.1.0` contains version 0.1.0)\n* create a new branch for any changes that you are working on, e.g., `feature/my-cool-stuff` or `bug/overflow`\n* once ready, create a pull request from that branch back to the `master` branch\n\nWhen writing code, it is recommended to follow the coding style suggested by the [Golang community](https://github.com/golang/go/wiki/CodeReviewComments).\n\n### Where to start\n\nIf you don't care about the details, your first entrypoint is [eventhandlers.go](eventhandlers.go). Within this file you can add implementation for pre-defined Keptn Cloud events.\n \nTo better understand Keptn CloudEvents, please look at the [Keptn Spec](https://github.com/keptn/spec).\n \nIf you want to get more insights, please look into [main.go](main.go), [deploy/service.yaml](deploy/service.yaml), consult the [Keptn docs](https://keptn.sh/docs/) as well as existing [Keptn Core](https://github.com/keptn/keptn) and [Keptn Contrib](https://github.com/keptn-contrib/) services.\n\n### Common tasks\n\n* Run tests: `go test -race -v ./...`\n* Deploy the service using `kubectl`: `kubectl apply -f deploy/`\n* Delete/undeploy the service using `kubectl`: `kubectl delete -f deploy/`\n* Watch the deployment using `kubectl`: `kubectl -n keptn get deployment locust-service -o wide`\n* Get logs using `kubectl`: `kubectl -n keptn logs deployment/locust-service -f locust-service`\n* Watch the deployed pods using `kubectl`: `kubectl -n keptn get pods -l run=locust-service`\n* Deploy the service using [Skaffold](https://skaffold.dev/): `skaffold run --default-repo=your-docker-registry --tail` (Note: Replace `your-docker-registry` with your DockerHub username; also make sure to adapt the image name in [skaffold.yaml](skaffold.yaml))\n\n### Testing Cloud Events\n\nWe have dummy cloud-events in the form of [RFC 2616](https://ietf.org/rfc/rfc2616.txt) requests in the [test-events/](test-events/) directory. These can be easily executed using third party plugins such as the [Huachao Mao REST Client in VS Code](https://marketplace.visualstudio.com/items?itemName=humao.rest-client).\n\n## Automation\n\n### GitHub Actions: Automated Pull Request Review\n\nThis repo uses [reviewdog](https://github.com/reviewdog/reviewdog) for automated reviews of Pull Requests. \n\nYou can find the details in [.github/workflows/reviewdog.yml](.github/workflows/reviewdog.yml).\n\n### GitHub Actions: Unit Tests\n\nThis repo has automated unit tests for pull requests. \n\nYou can find the details in [.github/workflows/CI.yml](.github/workflows/CI.yml).\n\n\n## License\n\nPlease find more information in the [LICENSE](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeptn-sandbox%2Flocust-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeptn-sandbox%2Flocust-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeptn-sandbox%2Flocust-service/lists"}