{"id":37141549,"url":"https://github.com/codefresh-contrib/gitops-secrets-sample-app","last_synced_at":"2026-01-14T16:37:05.481Z","repository":{"id":39342420,"uuid":"388456990","full_name":"codefresh-contrib/gitops-secrets-sample-app","owner":"codefresh-contrib","description":"GitOps example with Bitnami sealed secrets ","archived":false,"fork":false,"pushed_at":"2022-01-25T11:50:46.000Z","size":370,"stargazers_count":20,"open_issues_count":0,"forks_count":110,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-15T01:35:56.212Z","etag":null,"topics":["gitops","k8s","kubernetes","secrets"],"latest_commit_sha":null,"homepage":"https://codefresh.io/docs/docs/yaml-examples/examples/gitops-secrets/","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/codefresh-contrib.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}},"created_at":"2021-07-22T12:37:53.000Z","updated_at":"2024-05-16T19:43:15.000Z","dependencies_parsed_at":"2022-07-09T08:46:07.098Z","dependency_job_id":null,"html_url":"https://github.com/codefresh-contrib/gitops-secrets-sample-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codefresh-contrib/gitops-secrets-sample-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefresh-contrib%2Fgitops-secrets-sample-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefresh-contrib%2Fgitops-secrets-sample-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefresh-contrib%2Fgitops-secrets-sample-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefresh-contrib%2Fgitops-secrets-sample-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codefresh-contrib","download_url":"https://codeload.github.com/codefresh-contrib/gitops-secrets-sample-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefresh-contrib%2Fgitops-secrets-sample-app/sbom","scorecard":{"id":296394,"data":{"date":"2025-08-11","repo":{"name":"github.com/codefresh-contrib/gitops-secrets-sample-app","commit":"361d39be560955145f1c144849317362dc85fee0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/14 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":"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":"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":"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":"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:1","Warn: containerImage not pinned by hash: Dockerfile:9: pin your Docker image by updating alpine:3.13 to alpine:3.13@sha256:469b6e04ee185740477efa44ed5bdd64a07bbdd6c7e5f5d169e540889597b911","Info:   0 out of   2 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":"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":10,"reason":"0 existing vulnerabilities detected","details":null,"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-17T19:36:48.885Z","repository_id":39342420,"created_at":"2025-08-17T19:36:48.885Z","updated_at":"2025-08-17T19:36:48.885Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28426109,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:32:27.303Z","status":"ssl_error","status_checked_at":"2026-01-14T16:28:36.419Z","response_time":107,"last_error":"SSL_read: 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":["gitops","k8s","kubernetes","secrets"],"created_at":"2026-01-14T16:37:04.835Z","updated_at":"2026-01-14T16:37:05.475Z","avatar_url":"https://github.com/codefresh-contrib.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gitops with secrets\n\nThis is single application that uses [Bitnami sealed secrets](https://github.com/bitnami-labs/sealed-secrets) for\npassword and certificates.\n\n## How to run locally\n\n`go run .`\n\nthen visit http://localhost:8080 in your browser\n\n## How to build and run the container\n\nRun\n\n *  `docker build . -t my-app` to create a container image \n *  `docker run -p 8080:8080 my-app` to run it\n\n then visit http://localhost:8080 in your browser\n\nYou can find prebuilt images at [https://hub.docker.com/r/kostiscodefresh/gitops-secrets-sample-app/tags](https://hub.docker.com/r/kostiscodefresh/gitops-secrets-sample-app/tags)\n\n## How to work with secrets\n\n**WARNING** just for demonstration purposes this repository contains both raw and encrypted\nsecrets so that you can see the sealing process yourself. In a real application, your Git repository should only have sealed secrets\n\nSecret folders\n\n * `never-commit-to-git/decrypted` contains the raw secrets (You should never commit this to Git)\n * `never-commit-to-git/unsealed_secrets` contains plain Kubernetes secrets (You should never commit this to Git)\n * `safe-to-commit/sealed_secrets` contains sealed secrets (This is the only folder you should commit to Git)\n\n## How to install the Bitnami secret controller\n\nInstall the secret controller\n\n```\nhelm repo add sealed-secrets https://bitnami-labs.github.io/sealed-secrets\nhelm repo update\nhelm install sealed-secrets-controller sealed-secrets/sealed-secrets\n```\n\nBy default the controller will be installed at the `kube-system` namespace. The namespace\nand release name are important, since if you change the defaults, you need to set them up\nwith `kubeseal` as well as you work with secrets\n\nDownload the `kubeseal` CLI.\n\n```\nwget https://github.com/bitnami-labs/sealed-secrets/releases/download/v0.16.0/kubeseal-linux-amd64 -O kubeseal\nsudo install -m 755 kubeseal /usr/local/bin/kubeseal\n```\n\n## How to work with bitnami sealed secrets\n\n```\nkubectl create ns git-secrets\ncd safe-to-commit/sealed_secrets\nkubeseal -n git-secrets \u003c ../../never-commit-to-git/unsealed_secrets/db-creds.yml \u003e db-creds.json\nkubeseal -n git-secrets \u003c ../../never-commit-to-git/unsealed_secrets/key-private.yml \u003e key-private.json\nkubeseal -n git-secrets  \u003c ../../never-commit-to-git/unsealed_secrets/key-public.yml \u003e key-public.json\nkubeseal -n git-secrets \u003c ../../never-commit-to-git/unsealed_secrets/paypal-cert.yml \u003e paypal-cert.json\nkubectl apply -f . -n git-secrets\n```\n\nYou now have encrypted your plain secrets. These files are safe to commit to Git.\nYou can see that they have been converted automatically to plain secrets with the command\n\n```\nkubectl get secrets -n git-secrets\n```\n\n## How to deploy the application\n\nNote that the application requires all secrets to be present\n\n```\ncd safe-to-commit/manifests\nkubectl apply -f . -n git-secrets\n```\n\nWait some time and then find the public IP of the loadbalancer of the application:\n\n```\nkubectl get svc -n git-secrets\n``` \n\n\nIf you now visit your application you will see it using the secrets:\n\n![Kubernetes secrets](kubernetes-secrets.png)\n\n\n\nSee the [documentation page](https://codefresh.io/docs/docs/yaml-examples/examples/gitops-secrets/) for more details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodefresh-contrib%2Fgitops-secrets-sample-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodefresh-contrib%2Fgitops-secrets-sample-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodefresh-contrib%2Fgitops-secrets-sample-app/lists"}