{"id":31029798,"url":"https://github.com/hopopops/vault-operator","last_synced_at":"2025-09-13T22:51:29.097Z","repository":{"id":311230625,"uuid":"1041712294","full_name":"HopopOps/vault-operator","owner":"HopopOps","description":"An operator to support configuring ACL and KSA bindings to Vault policies and Vault authentication engine roles from within Kubernetes","archived":false,"fork":false,"pushed_at":"2025-09-02T15:25:06.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-02T15:34:27.500Z","etag":null,"topics":["hashicorp-vault","k8s-operator"],"latest_commit_sha":null,"homepage":"","language":"Go","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/HopopOps.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-20T22:50:33.000Z","updated_at":"2025-09-02T15:25:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"288a8683-81ec-4045-86e0-170ee313d08a","html_url":"https://github.com/HopopOps/vault-operator","commit_stats":null,"previous_names":["hopopops/vault-operator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HopopOps/vault-operator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HopopOps%2Fvault-operator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HopopOps%2Fvault-operator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HopopOps%2Fvault-operator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HopopOps%2Fvault-operator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HopopOps","download_url":"https://codeload.github.com/HopopOps/vault-operator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HopopOps%2Fvault-operator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275038263,"owners_count":25394640,"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-09-13T02:00:10.085Z","response_time":70,"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":["hashicorp-vault","k8s-operator"],"created_at":"2025-09-13T22:51:26.659Z","updated_at":"2025-09-13T22:51:29.087Z","avatar_url":"https://github.com/HopopOps.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vault-operator\nA basic vault operator enabling the user to create custom vault resources such as policies and roles for kubernetes \nauthentication engine.\n\n## Description\nThis is a basic Hashicorp Vault operator enabling the user to create custom vault resources such as policies and roles \nfor kubernetes authentication engine. It was written in order to be a part of GitOps pipelines making use of tools \nlike `external-secrets-operator` where one as to write and maintain a lot of vault policies and auth engine role. \nBeing able to store those parts of a configuration next to an app bundle using them is a nice QoL improvement.\n\n This project is an exercise to demonstrate how simple it can be to augment kubernetes API thanks to the operator \n pattern. The creator needed a simpler alternative to \n [redhat-cop/vault-config-operator](https://github.com/redhat-cop/vault-config-operator), a project about \n configuring vault from CRD. `vault-config-operator` already implement a large portion of Hashicorp Vault's API, \n looks well maintained and will most likely fit your needs.\n\n## Getting Started\n\n### Prerequisites\n- go version v1.24.0+\n- docker version 17.03+.\n- kubectl version v1.11.3+.\n- Access to a Kubernetes v1.11.3+ cluster.\n\n### To Deploy on the cluster\n**Build and push your image to the location specified by `IMG`:**\n\n```sh\nmake docker-build docker-push IMG=quay.io/hopopops/vault-operator:tag\n```\n\n**NOTE:** This image ought to be published in the personal registry you specified.\nAnd it is required to have access to pull the image from the working environment.\nMake sure you have the proper permission to the registry if the above commands don’t work.\n\n**Install the CRDs into the cluster:**\n\n```sh\nmake install\n```\n\n**Deploy the Manager to the cluster with the image specified by `IMG`:**\n\n```sh\nmake deploy IMG=quay.io/hopopops/vault-operator:tag\n```\n\n\u003e **NOTE**: If you encounter RBAC errors, you may need to grant yourself cluster-admin\nprivileges or be logged in as admin.\n\n**Create instances of your solution**\nYou can apply the samples (examples) from the config/sample:\n\n```sh\nkubectl apply -k config/samples/\n```\n\n\u003e**NOTE**: Ensure that the samples has default values to test it out.\n\n### To Uninstall\n**Delete the instances (CRs) from the cluster:**\n\n```sh\nkubectl delete -k config/samples/\n```\n\n**Delete the APIs(CRDs) from the cluster:**\n\n```sh\nmake uninstall\n```\n\n**UnDeploy the controller from the cluster:**\n\n```sh\nmake undeploy\n```\n\n## Project Distribution\n\nFollowing the options to release and provide this solution to the users.\n\n### By providing a bundle with all YAML files\n\n1. Build the installer for the image built and published in the registry:\n\n```sh\nmake build-installer IMG=quay.io/hopopops/vault-operator:tag\n```\n\n**NOTE:** The makefile target mentioned above generates an 'install.yaml'\nfile in the dist directory. This file contains all the resources built\nwith Kustomize, which are necessary to install this project without its\ndependencies.\n\n2. Using the installer\n\nUser can create a Kustomization to edit the parameters then just run 'kubectl apply -k \u003cPATH to KUSTOMIZATION \nDIRECTORY\u003e' to install the project, i.e.:\n\n```yaml\n---\napiVersion: kustomize.config.k8s.io/v1beta1\nkind: Kustomization\nresources:\n  - https://raw.githubusercontent.com/hopopops/vault-operator/main/dist/install.yaml\n\npatches:\n  - patch: |\n      - op: add\n        path: /spec/template/spec/containers/0/args/-\n        value: --vault-addr=https://vault.hopopops.com\n    target:\n      kind: Deployment\n      name: vault-operator-controller-manager\n```\n\n### By providing a Helm Chart\n\n1. Build the chart using the optional helm plugin\n\n```sh\nkubebuilder edit --plugins=helm/v1-alpha\n```\n\n2. See that a chart was generated under 'dist/chart', and users\ncan obtain this solution from there.\n\n**NOTE:** If you change the project, you need to update the Helm Chart\nusing the same command above to sync the latest changes. Furthermore,\nif you create webhooks, you need to use the above command with\nthe '--force' flag and manually ensure that any custom configuration\npreviously added to 'dist/chart/values.yaml' or 'dist/chart/manager/manager.yaml'\nis manually re-applied afterwards.\n\n## Contributing\n// TODO(user): Add detailed information on how you would like others to contribute to this project\n\n**NOTE:** Run `make help` for more information on all potential `make` targets\n\nMore information can be found via the [Kubebuilder Documentation](https://book.kubebuilder.io/introduction.html)\n\n## License\n\nCopyright 2025 HopopOps, Inc..\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhopopops%2Fvault-operator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhopopops%2Fvault-operator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhopopops%2Fvault-operator/lists"}