{"id":16624694,"url":"https://github.com/jasonmccallister/secretsyaml","last_synced_at":"2026-05-05T10:31:37.597Z","repository":{"id":77072711,"uuid":"223623725","full_name":"jasonmccallister/secretsyaml","owner":"jasonmccallister","description":"A simple Go program that reads a Kubernetes Secret YAML and base64 encodes the values","archived":false,"fork":false,"pushed_at":"2019-11-23T22:33:40.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-13T04:36:19.520Z","etag":null,"topics":["encoding","go","kubernetes","secrets","yaml"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jasonmccallister.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-23T17:00:50.000Z","updated_at":"2019-11-23T23:14:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"9932e4b4-78cf-40d1-993c-e794024517ed","html_url":"https://github.com/jasonmccallister/secretsyaml","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jasonmccallister/secretsyaml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonmccallister%2Fsecretsyaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonmccallister%2Fsecretsyaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonmccallister%2Fsecretsyaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonmccallister%2Fsecretsyaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jasonmccallister","download_url":"https://codeload.github.com/jasonmccallister/secretsyaml/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonmccallister%2Fsecretsyaml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27762416,"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-16T02:00:10.477Z","response_time":57,"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":["encoding","go","kubernetes","secrets","yaml"],"created_at":"2024-10-12T03:47:37.563Z","updated_at":"2025-12-16T09:49:58.119Z","avatar_url":"https://github.com/jasonmccallister.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Secrets YAML Encode CLI\n[![Go Report Card](https://goreportcard.com/badge/github.com/jasonmccallister/secretsyaml)](https://goreportcard.com/report/github.com/jasonmccallister/secretsyaml)\n\nA Go program that takes a Kubernetes secrets YAML and encodes all the secrets in the file into `base64` encoded values.\n\n## Installation\n\nTODO\n\n## Usage\n\n```bash\n./secretsyaml project-secrets.yaml\n```\n\nIf passed the following file as the first argument:\n\n```yaml\napiVersion: v1\nkind: Secret\ntype: Opaque\nmetadata:\n  name: some-example-secrets\ndata:\n  SECURITY_KEY: thisissupersecret\n  DB_DRIVER: dontstoreinplaintext\n  DB_SERVER: thisisok\n  DB_USER: thisisalsook\n  DB_PASSWORD: neverstoreinplaintextorencodedbybase64\n  DB_DATABASE: thisisokaswell\n  DB_SCHEMA: totallyfineaswell\n  DB_TABLE_PREFIX: yesthisto\n  DB_PORT: thisispublicbutmaybedontstore\n```\n\nThis will output a the YAML with secrets encoded as `encoded.yaml` with the following contents:\n\n```yaml\napiVersion: v1\nkind: Secret\ntype: Opaque\nmetadata:\n  name: some-example-secrets\ndata:\n  DB_DATABASE: dGhpc2lzb2thc3dlbGw=\n  DB_DRIVER: ZG9udHN0b3JlaW5wbGFpbnRleHQ=\n  DB_PASSWORD: bmV2ZXJzdG9yZWlucGxhaW50ZXh0b3JlbmNvZGVkYnliYXNlNjQ=\n  DB_PORT: dGhpc2lzcHVibGljYnV0bWF5YmVkb250c3RvcmU=\n  DB_SCHEMA: dG90YWxseWZpbmVhc3dlbGw=\n  DB_SERVER: dGhpc2lzb2s=\n  DB_TABLE_PREFIX: eWVzdGhpc3Rv\n  DB_USER: dGhpc2lzYWxzb29r\n  SECURITY_KEY: dGhpc2lzc3VwZXJzZWNyZXQ=\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonmccallister%2Fsecretsyaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasonmccallister%2Fsecretsyaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonmccallister%2Fsecretsyaml/lists"}