{"id":16541622,"url":"https://github.com/itzg/spring-security-vault-provider-example","last_synced_at":"2026-06-17T21:31:25.879Z","repository":{"id":145318038,"uuid":"151098638","full_name":"itzg/spring-security-vault-provider-example","owner":"itzg","description":"Example Spring Boot web app using Vault as the Spring Security authentication provider","archived":false,"fork":false,"pushed_at":"2018-10-01T14:07:25.000Z","size":51,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-20T13:44:29.648Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/itzg.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-01T14:04:51.000Z","updated_at":"2020-04-12T21:08:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"fe6c4386-ae35-4b98-9147-fb40f0b5cb41","html_url":"https://github.com/itzg/spring-security-vault-provider-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/itzg/spring-security-vault-provider-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Fspring-security-vault-provider-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Fspring-security-vault-provider-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Fspring-security-vault-provider-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Fspring-security-vault-provider-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itzg","download_url":"https://codeload.github.com/itzg/spring-security-vault-provider-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Fspring-security-vault-provider-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34466928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"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":[],"created_at":"2024-10-11T18:55:29.258Z","updated_at":"2026-06-17T21:31:25.861Z","avatar_url":"https://github.com/itzg.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Vault setup\n\nStartup Vault, such as development mode:\n\n```bash\nvault server -dev\n```\n\nWhen running the dev mode be sure to declare the insecure Vault address:\n```bash\nexport VAULT_ADDR='http://127.0.0.1:8200'\n```\n\nEnable AppRole authentication and create our provider's role\n```bash\nvault auth enable approle\n\nvault policy write admin vault-policies/admin.hcl\nvault policy write user vault-policies/user.hcl\n\nvault write -f auth/approle/role/auth-provider\nvault write -f auth/approle/role/admin\nvault write -f auth/approle/role/user\n```\n\nGet the `appRoleId` using\n```bash\nvault read auth/approle/role/auth-provider/role-id\n```\n\nGenerate an `appSecretId` get getting the `secret_id` resulting from\n```bash\nvault write -f auth/approle/role/auth-provider/secret-id\n```\n\nWhen running the Spring Boot app, pass the following arguments with the specific `role-id` and\n`secret-id` retrieved above.\n\n```\n--vault.authentication=APPROLE\n--vault.app-role.role-id=... \n--vault.app-role.secret-id=... \n--vault-web-auth.role-mappings.admin=ADMIN\n--vault-web-auth.role-mappings.user=USER\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitzg%2Fspring-security-vault-provider-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitzg%2Fspring-security-vault-provider-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitzg%2Fspring-security-vault-provider-example/lists"}