{"id":21029760,"url":"https://github.com/loafoe/hsdp-function-vault-read","last_synced_at":"2026-04-27T19:32:35.217Z","repository":{"id":38122760,"uuid":"377929451","full_name":"loafoe/hsdp-function-vault-read","owner":"loafoe","description":"Function to read keys from a HSDP Vault instance","archived":false,"fork":false,"pushed_at":"2023-05-19T05:06:57.000Z","size":320,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-28T17:59:37.897Z","etag":null,"topics":["hsdp","hsdp-function","vault"],"latest_commit_sha":null,"homepage":"","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/loafoe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2021-06-17T18:41:26.000Z","updated_at":"2023-02-22T14:59:13.000Z","dependencies_parsed_at":"2024-11-19T12:15:07.538Z","dependency_job_id":"fcefda08-74dc-49c0-afdf-4970cbd2a4d9","html_url":"https://github.com/loafoe/hsdp-function-vault-read","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/loafoe/hsdp-function-vault-read","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loafoe%2Fhsdp-function-vault-read","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loafoe%2Fhsdp-function-vault-read/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loafoe%2Fhsdp-function-vault-read/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loafoe%2Fhsdp-function-vault-read/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loafoe","download_url":"https://codeload.github.com/loafoe/hsdp-function-vault-read/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loafoe%2Fhsdp-function-vault-read/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32352396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T17:12:42.749Z","status":"ssl_error","status_checked_at":"2026-04-27T17:12:41.658Z","response_time":128,"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":["hsdp","hsdp-function","vault"],"created_at":"2024-11-19T12:14:10.007Z","updated_at":"2026-04-27T19:32:35.201Z","avatar_url":"https://github.com/loafoe.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hsdp-function-vault-read\n\nRead Vault keys from a HSDP Vault instance\n\n# usage\n\n```terraform\nresource \"hsdp_function\" \"vault_read\" {\n  name         = \"vault-read\"\n  docker_image = \"philipslabs/hsdp-function-vault-read:v0.0.4\"\n\n  environment = {\n    VREAD_ENDPOINT            = \"https://vproxy.us-east.philips-healthsuite.com/\"\n    VREAD_ROLE_ID             = \"XXX\"\n    VREAD_SECRET_ID           = \"YYY\"\n    VREAD_SPACE_SECRET_PATH   = \"/v1/cf/8cb5a2ea-d20a-4ea0-815b-742075dc92ba/secret\"\n    VREAD_SERVICE_SECRET_PATH = \"/v1/cf/51536c9b-f91c-402a-87f5-406258c792df/secret\"\n  }\n\n  backend {\n    credentials = module.siderite_backend.credentials\n  }\n\n}\n\noutput \"sync_endpoint\" {\n  value = hsdp_function.vault_read.endpoint\n}\n```\n\nAppend `/vault/read/service/:key` to the `sync_endpoint.value` with the right token in `Authorization` header (fixed or IAM) and the function will\nread all the values from the cofngiured Vault under `:key` \n\n## curl example\n\nWrite something to the vault:\n\n```shell\nvault write cf/51536c9b-f91c-402a-87f5-406258c792df/secret/andy \\\n         secret1=\"value stored in vault\" \\\n         config=\"or a config item\"\n```\n\nThen retrieve the data via the `hsdp_function`:\n\n```shell\ncurl -H \"Authorization: Token ZZZ\" \\\n  https://hsdp-func-gateway-www.eu-west.philips-healthsuite.com/function/aaa/vault/read/service/andy\n```\noutput:\n```json\n{\n   \"secret1\": \"value stored in vault\",\n   \"config\": \"or a config item\"\n}\n```\n\n# license\n\nLicense is MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floafoe%2Fhsdp-function-vault-read","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floafoe%2Fhsdp-function-vault-read","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floafoe%2Fhsdp-function-vault-read/lists"}