{"id":36960317,"url":"https://github.com/rabobank/credhub-plugin","last_synced_at":"2026-03-13T10:07:32.640Z","repository":{"id":187513777,"uuid":"676427386","full_name":"rabobank/credhub-plugin","owner":"rabobank","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-03T07:49:38.000Z","size":420,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-03T09:20:50.586Z","etag":null,"topics":["cf","cloudfoundry","cloudfoundry-plugin"],"latest_commit_sha":null,"homepage":"","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/rabobank.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-08-09T07:14:47.000Z","updated_at":"2025-11-03T07:47:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"ad046072-550f-48da-8fb1-f064ce6e5b7d","html_url":"https://github.com/rabobank/credhub-plugin","commit_stats":null,"previous_names":["rabobank/credhub-plugin"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/rabobank/credhub-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rabobank%2Fcredhub-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rabobank%2Fcredhub-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rabobank%2Fcredhub-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rabobank%2Fcredhub-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rabobank","download_url":"https://codeload.github.com/rabobank/credhub-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rabobank%2Fcredhub-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28394336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"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":["cf","cloudfoundry","cloudfoundry-plugin"],"created_at":"2026-01-13T18:02:38.715Z","updated_at":"2026-03-13T10:07:32.626Z","avatar_url":"https://github.com/rabobank.png","language":"Go","readme":"## Credhub plugin\n\nA CF client plugin that allows a user to easily interact with the secrets maintenance api from a compatible credhub service broker (https://github.com/rabobank/credhub-service-broker \u003ev1.0.6)\n\n## Intro\n\nThe secrets maintenance API provides 5 functionalities to interact with the credentials of an existing credhub service instance:\n\n* **List Secrets**\n\n  This will list all keys present in the credentials stored in an existing credhub service instance. If the stored credentials has encapsulated objects,\nkeys will reflect the encapsulation by concatenating the child keys to the parent keys by means of a \".\" character (i.e. the listed key for a credential\nlike { \"a\" : { \"b\" : \"value\" } } will be \"a.b\")\n\n* **Add Secret**\n  \n  Allows to add one or more secrets to an existing service instance. Values with conflicting keys will overwrite the existing values even if they\nare of different types (so, even if the new value is a string, for example, and the existing value was a sub-map, the value will be overwritten as\na simple value)\n\n* **Delete Secret**\n\n  Deletes individual secrets from the credentials referencing them by the keys (as presented when listing the secrets).\n\n* **List Versions**\n\n  This will list up to 20 latest versions of an existing credhub service instance. The list will show the date of the creation/update and\nan ID which can be used to reinstate a previous version (rollback)\n\n* **Reinstate Version**\n\n  By providing an ID as listed by the \"List Versions\" functionality, a value can be reinstated or an update can be rolled back by reinstating\nthe previous version. Reinstating a version will not work by providing a version id belonging to another service. Only ids from versions of\nthe same service.\n\n## List Secret\n\n```\nNAME:\n   list-credhub-secrets - List all secret keys in the credhub service instance\n\nUSAGE:\n   \ncf list-credhub-secrets \u003cSERVICE_INSTANCE\u003e\n\n  SERVICE_INSTANCE - Credhub service instance name.\n\n\nALIAS:\n   lcs\n```\n### example\n\n```\n$ cf lcs test-broker-api\n\noutput:\n   a\n   b.a\n   b.c\n   doe-iets-leuks\n```\n\n***NOTE*** List of keys is not sorted\n## Add Secret\n\n```\nNAME:\n   add-credhub-secrets - Add secrets to credhub service\n\nUSAGE:\n   \ncf add-credhub-secrets \u003cSERVICE_INSTANCE\u003e \u003cJSON_OBJECT\u003e\ncf add-credhub-secrets \u003cSERVICE_INSTANCE\u003e \u003cKEY\u003e \u003cVALUE\u003e\n\n  SERVICE_INSTANCE - Credhub service instance name the keys are being added to.\n\n  JSON_OBJECT      - A well formed json object map. Key values will either replace existing keys or added to the existing credentials if not present\n                     This will only be interpreted as a json object it the KEY/VALUE parameters are not provided.\n  KEY              - When a VALUE is provided, instead of JSON_OBJECT, the first parameter will be interpreted as the secret key.\n                     If updating/setting encapsulated values, dots may be used to reference the inner-keys (i.e. a.b to reference {\"a\":{\"b\":\"value\"}})\n  VALUE            - Secret value.\n\n\nALIAS:\n   acs\n```\n### example\n\n```\n$ cf acs test-broker-api c something\n$ cf acs test-broker-api d.a something\n$ cf acs test-broker-api '{ \"b\": {\"b\": \"value\"}, \"f\" : \"value\"}'\n\n$ cf lcs test-broker-api \n\noutput:\n   c\n   d.a\n   doe-iets-leuks\n   f\n   a\n   b.a\n   b.b\n   b.c\n```\n\n## Delete Secret\n\n```\nNAME:\n   delete-credhub-secrets - Delete a key from the credhub service instance\n\nUSAGE:\n   \ncf delete-credhub-secrets \u003cSERVICE_INSTANCE\u003e \u003cKEYS\u003e...\n\n  SERVICE_INSTANCE - Credhub service instance name the keys are being deleted from.\n\n  KEYS             - Secret keys to delete. Multiple keys can be provided separated by spaces.\n\n\nALIAS:\n   dcs\n```\n\n### example\n\n```\n$ cf dcs test-broker-api d b.b a\n\n$ cf lcs test-broker-api \n\noutput:\n   doe-iets-leuks\n   f\n   b.a\n   b.c\n   c\n```\n\n## List Versions\n\n```\nNAME:\n   list-credhub-secrets-versions - List up to 20 latest versions for a credhub service instance credentials\n\nUSAGE:\n   \ncf list-credhub-secrets-versions \u003cSERVICE_INSTANCE\u003e\n\n  SERVICE_INSTANCE - Credhub service instance name.\n\n\nALIAS:\n   lcv\n```\n\n### example\n\n```\n$ cf lcv test-broker-api\n\noutput:\n\nID: 03142a68-254b-4739-a7a7-abdae54ec40d\nCreated: 2023-08-11 15:41:33 +0000 UTC\n\n   doe-iets-leuks\n   f\n   b.a\n   b.c\n   c\n\nID: 5942167f-8d02-4b03-a1b8-1116c41069f3\nCreated: 2023-08-11 15:37:08 +0000 UTC\n\n   a\n   b.a\n   b.b\n   b.c\n   c\n   d.a\n   doe-iets-leuks\n   f\n\nID: 836bfc7b-1d75-4a0d-98c8-1772ff318709\nCreated: 2023-08-11 15:35:39 +0000 UTC\n\n   d.a\n   doe-iets-leuks\n   a\n   b.c\n   b.a\n   c\n\nID: a8520eae-39da-419f-b268-88edd5d9cbfe\nCreated: 2023-08-11 15:35:31 +0000 UTC\n\n   a\n   b.a\n   b.c\n   c\n   doe-iets-leuks\n\nID: 5a31c5a0-e41a-4cea-ae5c-d2a873fbcaf7\nCreated: 2023-08-11 14:30:37 +0000 UTC\n\n   a\n   b.a\n   b.c\n   doe-iets-leuks\n```\n\n## Reinstate Version\n\n```\nNAME:\n   reinstate-credhub-secrets-version - Reinstate a previous version of the credhub service instance credentials\n\nUSAGE:\n   \ncf reinstate-credhub-secrets-version \u003cSERVICE_INSTANCE\u003e \u003cVERSION_ID\u003e\n\n  SERVICE_INSTANCE - Credhub service instance name.\n  VERSION_ID       - The credentials version id to reinstate. Can be obtained from the list-credhub-secrets-versions command.\n\n\nALIAS:\n   rcv\n```\n\n### example\n\n***NOTE*** in the example an ID from the listed version in the previous section is used.\n\n```\n$ cf rcv test-broker-api 5942167f-8d02-4b03-a1b8-1116c41069f3\n$ cf lcv test-broker-api\n\noutput:\n\nID: c121044f-9d2a-4333-af80-a332c571fd55\nCreated: 2023-08-11 15:49:16 +0000 UTC\n\n   c\n   d.a\n   doe-iets-leuks\n   f\n   a\n   b.a\n   b.b\n   b.c\n\nID: 03142a68-254b-4739-a7a7-abdae54ec40d\nCreated: 2023-08-11 15:41:33 +0000 UTC\n\n   b.c\n   b.a\n   c\n   doe-iets-leuks\n   f\n\nID: 5942167f-8d02-4b03-a1b8-1116c41069f3\nCreated: 2023-08-11 15:37:08 +0000 UTC\n\n   f\n   a\n   b.a\n   b.b\n   b.c\n   c\n   d.a\n   doe-iets-leuks\n\nID: 836bfc7b-1d75-4a0d-98c8-1772ff318709\nCreated: 2023-08-11 15:35:39 +0000 UTC\n\n   a\n   b.a\n   b.c\n   c\n   d.a\n   doe-iets-leuks\n\nID: a8520eae-39da-419f-b268-88edd5d9cbfe\nCreated: 2023-08-11 15:35:31 +0000 UTC\n\n   a\n   b.a\n   b.c\n   c\n   doe-iets-leuks\n\nID: 5a31c5a0-e41a-4cea-ae5c-d2a873fbcaf7\nCreated: 2023-08-11 14:30:37 +0000 UTC\n\n   a\n   b.a\n   b.c\n   doe-iets-leuks\n```\n\n***NOTE*** The value of the reinstated version is reset, but effectively a new version is created, with a new ID.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frabobank%2Fcredhub-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frabobank%2Fcredhub-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frabobank%2Fcredhub-plugin/lists"}