{"id":26059736,"url":"https://github.com/orange-cloudfoundry/varsgen","last_synced_at":"2026-03-03T03:07:11.450Z","repository":{"id":37955238,"uuid":"422583876","full_name":"orange-cloudfoundry/varsgen","owner":"orange-cloudfoundry","description":"Small cli utility to generate password, ssh key, rsa and certificate by passing a yaml file describing credentials to generate","archived":false,"fork":false,"pushed_at":"2024-05-06T18:44:17.000Z","size":3118,"stargazers_count":1,"open_issues_count":4,"forks_count":1,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-05-06T19:55:08.756Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/orange-cloudfoundry.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":"2021-10-29T13:22:37.000Z","updated_at":"2022-02-01T15:50:41.000Z","dependencies_parsed_at":"2023-02-17T09:15:30.389Z","dependency_job_id":"4cd0484c-7d61-48d7-b09e-5cc52edaf939","html_url":"https://github.com/orange-cloudfoundry/varsgen","commit_stats":null,"previous_names":[],"tags_count":119,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orange-cloudfoundry%2Fvarsgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orange-cloudfoundry%2Fvarsgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orange-cloudfoundry%2Fvarsgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orange-cloudfoundry%2Fvarsgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orange-cloudfoundry","download_url":"https://codeload.github.com/orange-cloudfoundry/varsgen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242555605,"owners_count":20148734,"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","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":[],"created_at":"2025-03-08T13:28:14.424Z","updated_at":"2026-03-03T03:07:11.421Z","avatar_url":"https://github.com/orange-cloudfoundry.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Varsgen\n\nSmall cli utility to generate password, ssh key, rsa and certificate by passing a yaml file describing credentials to generate.\n\nThis tools come from [bosh-cli](https://github.com/cloudfoundry/bosh-cli) but useable outside of this context.\n\n## Install\n\nGet the latest binary for your os in [release page](/releases)\n\n## Usage\n\nYou must create a file containing how credentials will be generated, example with file name `my-creds-def.yml`:\n\n```yaml\n# Generate a random password\n- name: a_password\n  type: password\n  options:\n    # optional field for setting length of your password, Default to 20\n    length: 24\n\n# Generate a ssh key\n- name: a_ssh_key\n  type: ssh\n\n# Generate a rsa\n- name: a_rsa\n  type: rsa\n\n# Generate a CA certificate \n- name: my_ca_certificate\n  options:\n    # Required field giving the common name, don't forget to set common_name also as alternative_names for certificate\n    common_name: a_common_name\n    # optional field for setting organization name, Default to Cloud Foundry\n    organization: an_organization\n    # optional field for setting multiple organizations, Default to organization\n    organizations: [ an_organization, a_second_org ]\n    # optional field to set if certificate is CA certificate or not, default to false\n    is_ca: true\n    # optional field to set the number of days after certificate will expire, default to 365\n    duration: 3650\n  type: certificate\n\n\n# Generate a certificate based on a CA\n- name: my_app_certificate\n  options:\n    # Required field giving the common name, don't forget to set common_name also as alternative_names for certificate\n    common_name: a_app_common_name\n    # optional field for setting organization name, Default to Cloud Foundry\n    organization: an_organization\n    # optional field to set if certificate is CA certificate or not, default to false\n    is_ca: true\n    # optional field to set the number of days after certificate will expire, default to 365\n    duration: 730\n    # optional field to add alternative name to certificate, this can be an IP or a DNS entry\n    # common name must be in alternative_name\n    alternative_names:\n      - a_app_common_name\n    # Required field to connect to a ca certificate variable, here it will use my_ca_certificate from previous var generation\n    # CA generation MUST be before certificate\n    ca: my_ca_certificate\n    # Optional field to set what is the key usage, it can be client_auth or server_auth, default to server_auth\n    extended_key_usage:\n      - client_auth\n  type: certificate\n```\n\nYou can now use command line for creating your credentials store based on your definitions, the command line will only create variable not existing in the store.\n\nRun simply:\n\n```\nvarsgen -d my-creds-def.yml -s creds-store.yml\n```\n\nYou will now have a yml file with generated creds in `creds-store.yml`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forange-cloudfoundry%2Fvarsgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forange-cloudfoundry%2Fvarsgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forange-cloudfoundry%2Fvarsgen/lists"}