{"id":34090285,"url":"https://github.com/salosh/nudnik","last_synced_at":"2025-12-14T14:15:36.098Z","repository":{"id":57447194,"uuid":"158273217","full_name":"salosh/nudnik","owner":"salosh","description":"Nudnik - Infrastructure Fuzzing","archived":false,"fork":false,"pushed_at":"2019-07-16T09:09:09.000Z","size":206,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-08-24T23:04:18.137Z","etag":null,"topics":["chaos-engineering","chaos-testing","grpc","load-balancing","load-generator","load-testing","pip","python","rest"],"latest_commit_sha":null,"homepage":"https://salosh.org","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/salosh.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":null,"security":null,"support":null}},"created_at":"2018-11-19T18:39:29.000Z","updated_at":"2019-07-16T09:08:41.000Z","dependencies_parsed_at":"2022-09-05T09:40:35.421Z","dependency_job_id":null,"html_url":"https://github.com/salosh/nudnik","commit_stats":null,"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"purl":"pkg:github/salosh/nudnik","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salosh%2Fnudnik","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salosh%2Fnudnik/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salosh%2Fnudnik/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salosh%2Fnudnik/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/salosh","download_url":"https://codeload.github.com/salosh/nudnik/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salosh%2Fnudnik/sbom","scorecard":{"id":796597,"data":{"date":"2025-08-11","repo":{"name":"github.com/salosh/nudnik","commit":"0c58ebb92d141d91c7b49056a5fa6446464420ef"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.8,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"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":"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":"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"Code-Review","score":0,"reason":"Found 0/15 approved changesets -- score normalized to 0","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":"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":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"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":"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: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating python:3.7-alpine to python:3.7-alpine@sha256:f3d31c8677d03f0b3c724446077f229a6ce9d3ac430f5c08cd7dff00292048c3","Warn: pipCommand not pinned by hash: Dockerfile:12","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   1 pipCommand 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: GNU General Public License v3.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":-1,"reason":"no releases found","details":null,"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":"Vulnerabilities","score":0,"reason":"11 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-496j-2rq6-j6cc","Warn: Project is vulnerable to: PYSEC-2022-48 / GHSA-77rm-9x9h-xj3g","Warn: Project is vulnerable to: GHSA-8gq9-2x98-w8hf","Warn: Project is vulnerable to: GHSA-8qvm-5x2c-j2w7","Warn: Project is vulnerable to: PYSEC-2019-41 / GHSA-qfc5-mcwq-26q8","Warn: Project is vulnerable to: PYSEC-2020-176 / GHSA-3pqx-4fqf-j49f","Warn: Project is vulnerable to: PYSEC-2020-96 / GHSA-6757-jp84-gxfx","Warn: Project is vulnerable to: PYSEC-2021-142 / GHSA-8q59-q68h-6hv4","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q"],"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 30 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-23T09:10:54.010Z","repository_id":57447194,"created_at":"2025-08-23T09:10:54.010Z","updated_at":"2025-08-23T09:10:54.010Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27729644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-14T02:00:11.348Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["chaos-engineering","chaos-testing","grpc","load-balancing","load-generator","load-testing","pip","python","rest"],"created_at":"2025-12-14T14:15:33.376Z","updated_at":"2025-12-14T14:15:36.091Z","avatar_url":"https://github.com/salosh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Nudnik\n======\n\nGoals\n-----\n\nAllow easy testing of load-balancing and failures in gRPC and REST based service-mesh\n\nFeatures\n--------\n\n - Rate limiting\n - Fake IO load from either client or server side\n - Export timing metrics to a file or InfluxDB with any custom formatting\n - \n\nQuick Start\n--------------------\n\n * Install Nudnik:\n```sh\n# Install package\npip install nudnik\n```\n\n * Run example Server:\n```shell\nnudnik --server\n```\n\n * Run a client that identifies itself as `barbaz`, fork to `2` threads, each sending `5` gRPC messages every `3` seconds.\n```shell\nnudnik --name barbaz --streams 2 --interval 3 --rate 5\n```\n\nDocker - Quick Start\n--------------------\n\n* Running on your local/remote docker daemon using docker-compose:\n  `docker-compose up`\n\nUnder The Hood\n--------------\nThe server binds to the host:port that were specified, and listens to incoming gRPC messages.\nEvery message consists of several fields:\n - name: The name of the client, arbitrary string\n - stream_id: The stream id, the streams are numbered from `0` to whatever was configureed via the `streams` arg.\n - message_id: At every `interval`, the client sends `rate` messages, this id is an autoincrement index for that message.\n - ctime: The timestamp at which the request was created\n - rtime: The timestamp at which the request was retransmitted (0 if not applicapble)\n - rcount: The amount of times this message was retransmitted (0 if not applicapble)\n - meta: Just another string field that does nothing, you may send additional arbitrary data to increase message size or specify `random` to generate random data with every request\n - load: This field may be repeated several times, it instructs the server to create fake load of some sort before replying.\n \n Upon recieveing a message, the server will:\n  - parse the `load` field\n  - perform the required load\n  - print a log message using the configured `out_format`\n  - reply an `OK` to the client, also add the field `ptime`, which represents the time at which the request was parsed at the server,\n    this allows the client to calculate exact RTT, even if NTP is not synchronized.\n \nLocal Development\n-----------------\nAs a rule of thumb wed'e recommend using virtualenv.\nRequirement are Python 3.7 + requirements.txt file\n\n * Clone and initialize Nudnik:\n```sh\n# Install python requirements\npip install grpcio grpcio-tools requests-unixsocket\n\n# Clone and configure the repository\ngit clone https://github.com/salosh/nudnik.git\ngit config --global push.default matching\ngit config --global user.name \"Your Name\"\ngit config --global user.email your.email@salosh.org\n\n# \"Compile\" the entity protobuf\ncd nudnik\npython -m grpc_tools.protoc --proto_path=./nudnik/ --python_out=./nudnik/ --grpc_python_out=./nudnik/ ./entity.proto\n```\n\nConfigure\n--------\n\n[Configuration](/nudnik/docs/configuration.md) documentation\n\n[Formatting](/nudnik/docs/formatting.md) documentation\n\n## Via `Nudnik` Command line args:\n```sh\nnudnik -h\nusage: nudnik [-h] [--config-file CONFIG_FILE] [--host HOST] [--port PORT]\n              [--server] [--name NAME]\n              [--name-mismatch-error {prefix,suffix,exact}] [--meta META]\n              [--workers WORKERS] [--streams STREAMS]\n              [--initial-stream-index INITIAL_STREAM_INDEX]\n              [--interval INTERVAL] [--rate RATE] [--count COUNT]\n              [--chaos CHAOS] [--load load_type load_value]\n              [--retry-count RETRY_COUNT] [--fail-ratio FAIL_RATIO] [--ruok]\n              [--metrics {stdout,file,influxdb,prometheus}]\n              [--stats {stdout,file,influxdb,prometheus}] [--extra EXTRA]\n              [--debug] [--verbose] [--version]\n\nNudnik - gRPC load tester\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --config-file CONFIG_FILE, -f CONFIG_FILE\n                        Path to YAML config file\n  --host HOST, -H HOST  host\n  --port PORT, -p PORT  port\n  --server, -S          Operation mode (default: client)\n  --name NAME, -n NAME  Parser name\n  --name-mismatch-error {prefix,suffix,exact}\n                        Fail request on name mismatch (default: None)\n  --meta META, -M META  Send this extra data with every request\n  --workers WORKERS, -w WORKERS\n                        Number of workers (Default: Count of CPU cores)\n  --streams STREAMS, -s STREAMS\n                        Number of streams (Default: 1)\n  --initial-stream-index INITIAL_STREAM_INDEX\n                        Calculate stream ID from this initial index (Default:\n                        0)\n  --interval INTERVAL, -i INTERVAL\n                        Number of seconds per stream message cycle (Default:\n                        1)\n  --rate RATE, -r RATE  Number of messages per interval (Default: 10)\n  --count COUNT, -C COUNT\n                        Count of total messages that should be sent (Default:\n                        0 == unlimited)\n  --chaos CHAOS, -c CHAOS\n                        Compute statistical process level random crashes [0,\n                        3600/interval] (Default: 0)\n  --load load_type load_value, -l load_type load_value\n                        Add artificial load [rtt, rttr, cpu, mem, cmd, fcmd]\n                        (Default: None)\n  --retry-count RETRY_COUNT\n                        Number of times to re-send failed messages (Default:\n                        -1, which means infinite times)\n  --fail-ratio FAIL_RATIO\n                        Percent of requests to intentionally fail (Default: 0)\n  --ruok, -R            Enable \"Are You OK?\" HTTP/1.1 API (default: False)\n  --metrics {stdout,file,influxdb,prometheus}, -m {stdout,file,influxdb,prometheus}\n                        Enable metrics outputs (Default: None)\n  --stats {stdout,file,influxdb,prometheus}, -t {stdout,file,influxdb,prometheus}\n                        Enable stats outputs (Default: None)\n  --extra EXTRA, -e EXTRA\n                        Extra args (Default: None)\n  --debug, -d           Debug mode (default: False)\n  --verbose, -v         Verbose mode, specify multiple times for extra\n                        verbosity (default: None)\n  --version, -V         Display Nudnik version\n\n2018 (C) Salo Shp \u003chttps://github.com/salosh/nudnik.git\u003e\n```\n\n## Via config file:\n```sh  \nnano ./config.yml     \n```\n\n# Getting started\nPlease refer to our [examples repository](https://github.com/salosh/nudnik-examples) for multiple guides and usage examples\n\n* * *\nVisit our website at https://salosh.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalosh%2Fnudnik","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsalosh%2Fnudnik","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalosh%2Fnudnik/lists"}