{"id":22983259,"url":"https://github.com/mikejoh/grpc-echo-service","last_synced_at":"2026-04-29T21:32:49.110Z","repository":{"id":133966016,"uuid":"362230917","full_name":"mikejoh/grpc-echo-service","owner":"mikejoh","description":"A super simple gRPC example inspired by the official helloworld example from grpc.io","archived":false,"fork":false,"pushed_at":"2021-06-04T07:17:15.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-06T09:39:57.181Z","etag":null,"topics":["grpc","grpc-go","helm","kind","kubernetes","metallb"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikejoh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-27T19:40:48.000Z","updated_at":"2021-06-04T07:43:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"29d11c43-71e8-41b1-b358-333ccc933611","html_url":"https://github.com/mikejoh/grpc-echo-service","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mikejoh/grpc-echo-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikejoh%2Fgrpc-echo-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikejoh%2Fgrpc-echo-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikejoh%2Fgrpc-echo-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikejoh%2Fgrpc-echo-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikejoh","download_url":"https://codeload.github.com/mikejoh/grpc-echo-service/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikejoh%2Fgrpc-echo-service/sbom","scorecard":{"id":645600,"data":{"date":"2025-08-11","repo":{"name":"github.com/mikejoh/grpc-echo-service","commit":"af248aaf3907374474375992e36774bcb27cfd45"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.2,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/3 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":"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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:2","Warn: containerImage not pinned by hash: echo_server/Dockerfile:2","Warn: containerImage not pinned by hash: echo_server/Dockerfile:9: pin your Docker image by updating gcr.io/distroless/base-debian10 to gcr.io/distroless/base-debian10@sha256:101798a3b76599762d3528635113f0466dc9655ecba82e8e33d410e2bf5cd319","Info:   0 out of   3 containerImage 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":"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":"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2023-2153 / GHSA-m425-mq94-257g / GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2611 / GHSA-8r3f-844c-mc37"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T12:04:30.469Z","repository_id":133966016,"created_at":"2025-08-21T12:04:30.469Z","updated_at":"2025-08-21T12:04:30.469Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32445113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T20:22:27.477Z","status":"ssl_error","status_checked_at":"2026-04-29T20:22:26.507Z","response_time":110,"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":["grpc","grpc-go","helm","kind","kubernetes","metallb"],"created_at":"2024-12-15T02:37:01.605Z","updated_at":"2026-04-29T21:32:49.093Z","avatar_url":"https://github.com/mikejoh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gRPC echo service\n\n_Heavily inspired by the official grpc [`helloworld`](https://grpc.io/docs/languages/go/quickstart/) example but with a fully working Kubernetes deployment example._\n\n_Will only work on your machine._\n\nThe echo-service works as follows: The server will answer `pong` on any `ping` request sent using the gRPC client. The `pong` response and `ping` message are hardcoded in the server and client.\n\n## Prerequisites\n* Docker\n* [`kind`](https://kind.sigs.k8s.io/docs/user/quick-start/#installation)\n* `protoc` and Go plugins for the protocol compiler\n* Go\n## How to\n1. See the prerequisites [here](https://grpc.io/docs/languages/go/quickstart/#prerequisites) to install `protoc` and the Go plugins needed.\n2. In the root of this repository run:\n```\nmake gen-proto\n```\n3. Start the `kind` cluster:\n```\nkind create cluster --name k8s-1.19.7 --config kind/k8s-1.19.7.yaml\n```\n4. Install `metallb` to be able to create a `Service` of type `LoadBalancer` in Kubernetes:\n```\nkubectl apply -f https://raw.githubusercontent.com/metallb/metallb/master/manifests/namespace.yaml\nkubectl create secret generic -n metallb-system memberlist --from-literal=secretkey=\"$(openssl rand -base64 128)\" \nkubectl apply -f https://raw.githubusercontent.com/metallb/metallb/master/manifests/metallb.yaml\n```\n5. Identify the CIDR network used by Docker:\n```\ndocker network inspect -f '{{.IPAM.Config}}' kind\n```\n6. Create and apply a `ConfigMap` using a subset of the addresses in the CIDR from the output above, you should replace the IP addresses `addresses` field below:\n```\ncat \u003c\u003cEOF | kubectl apply -f -\napiVersion: v1\nkind: ConfigMap\nmetadata:\n  namespace: metallb-system\n  name: config\ndata:\n  config: |\n    address-pools:\n    - name: default\n      protocol: layer2\n      addresses:\n      - 172.18.255.200-172.18.255.250\nEOF\n```\n7. Build the grpc-echo-service Docker image:\n```\ndocker build . -t grpc-echo-service:v0.1.0\n```\n8. Push the built grpc-echo-service Docker image to a registry.\n9. Change the image in `manifests/deployment.yaml` pointing to the one you've just pushed.\n10. Apply the `deployment.yaml` and `service.yaml` files.\n```\nkubectl apply -f manifests/deployment.yaml\nkubectl apply -f manifests/service.yaml\n```\n11. Take a note of the Load Balancer IP the `Service` have received from MetalLB:\n```\nkubectl get svc grpc-echo-service -o=jsonpath='{.status.loadBalancer.ingress[0].ip}'\n```\n12. Add the Load Balancer IP to the `cert/echo_client-ext.cnf` and `cert/echo_server-ext.cnf` files.\n13. Re-generate the certificates:\n```\nmake gen-cert\n```\n14. Re-build and re-push the Docker image.\n15. Restart the Deployment of grpc-echo-service server component:\n```\nkubectl deployment rollout restart grpc-echo-service\n```\n16. Run the gRPC client:\n```\ngo run echo_client/*.go -addr \"172.18.255.200:8443\" -cert cert/client-cert.pem -key cert/client-key.pem\n```\nyou should see an output similar to this one:\n```\n2021/05/02 22:40:35 Starting gRPC echo service client..\n2021/05/02 22:40:35 Echoes service replied: pong\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikejoh%2Fgrpc-echo-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikejoh%2Fgrpc-echo-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikejoh%2Fgrpc-echo-service/lists"}