{"id":35228328,"url":"https://github.com/edgelevel/lastpass-operator","last_synced_at":"2026-04-04T12:57:39.262Z","repository":{"id":38460381,"uuid":"194147353","full_name":"edgelevel/lastpass-operator","owner":"edgelevel","description":"A Kubernetes Operator to manage secrets stored in LastPass password manager","archived":false,"fork":false,"pushed_at":"2024-11-22T01:12:18.000Z","size":293,"stargazers_count":45,"open_issues_count":9,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-02T07:20:39.737Z","etag":null,"topics":["crd","kubernetes","kubernetes-operator","kubernetes-secrets","lastpass","operator","operator-sdk"],"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/edgelevel.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":"2019-06-27T18:50:42.000Z","updated_at":"2025-08-04T01:46:27.000Z","dependencies_parsed_at":"2025-03-09T01:46:05.051Z","dependency_job_id":null,"html_url":"https://github.com/edgelevel/lastpass-operator","commit_stats":{"total_commits":90,"total_committers":4,"mean_commits":22.5,"dds":0.06666666666666665,"last_synced_commit":"aa5913b7b5a450d097932a0f1dc66b0c498b850c"},"previous_names":["niqdev/lastpass-operator"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/edgelevel/lastpass-operator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgelevel%2Flastpass-operator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgelevel%2Flastpass-operator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgelevel%2Flastpass-operator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgelevel%2Flastpass-operator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edgelevel","download_url":"https://codeload.github.com/edgelevel/lastpass-operator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgelevel%2Flastpass-operator/sbom","scorecard":{"id":366554,"data":{"date":"2025-08-11","repo":{"name":"github.com/edgelevel/lastpass-operator","commit":"935b45330779efccae8561d8e7d1343944de7775"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Code-Review","score":1,"reason":"Found 4/28 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/docker-ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/edgelevel/lastpass-operator/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/edgelevel/lastpass-operator/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docker-ci.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/edgelevel/lastpass-operator/docker-ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker-ci.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/edgelevel/lastpass-operator/docker-ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker-ci.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/edgelevel/lastpass-operator/docker-ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker-ci.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/edgelevel/lastpass-operator/docker-ci.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:2","Warn: containerImage not pinned by hash: Dockerfile:23","Warn: containerImage not pinned by hash: Dockerfile:55: pin your Docker image by updating gcr.io/distroless/base:nonroot to gcr.io/distroless/base:nonroot@sha256:b2404f60e475452152f15fba531fa6ed4b6d1d412498f36a127597673eeaf68f","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   0 out of   3 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/docker-ci.yml:15"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw","Warn: Project is vulnerable to: GO-2025-3488 / GHSA-6v2p-p543-phr9"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T11:57:01.222Z","repository_id":38460381,"created_at":"2025-08-18T11:57:01.222Z","updated_at":"2025-08-18T11:57:01.222Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31400460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"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":["crd","kubernetes","kubernetes-operator","kubernetes-secrets","lastpass","operator","operator-sdk"],"created_at":"2025-12-30T01:50:39.377Z","updated_at":"2026-04-04T12:57:39.248Z","avatar_url":"https://github.com/edgelevel.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lastpass-operator\n\n[![Build Status][build-image]][build-url]\n[![Docker Tag][tag-image]][tag-url]\n[![Docker Pulls][pulls-image]][pulls-url]\n\n[build-image]: https://github.com/edgelevel/lastpass-operator/actions/workflows/ci.yml/badge.svg\n[build-url]: https://github.com/edgelevel/lastpass-operator/actions/workflows/ci.yml\n[tag-image]: https://img.shields.io/github/tag/edgelevel/lastpass-operator.svg?style=popout-square\u0026color=blue\n[tag-url]: https://hub.docker.com/r/edgelevel/lastpass-operator\n[pulls-image]: https://img.shields.io/docker/pulls/edgelevel/lastpass-operator?color=orange\u0026style=flat-square\n[pulls-url]: https://hub.docker.com/r/edgelevel/lastpass-operator\n\nA Kubernetes Operator to manage [secrets](https://kubernetes.io/docs/concepts/configuration/secret) stored in [LastPass](https://www.lastpass.com) password manager\n\n## How it works\n\nSuppose you have some credentials stored in LastPass\n```bash\n$ lpass show example/my-secret --json\n[\n  {\n    \"id\": \"8190226423897406876\",\n    \"name\": \"my-secret\",\n    \"fullname\": \"example/my-secret\",\n    \"username\": \"whoami\",\n    \"password\": \"s3cr3t\",\n    \"last_modified_gmt\": \"1562690587\",\n    \"last_touch\": \"0\",\n    \"group\": \"example\",\n    \"url\": \"https://lastpass.com\",\n    \"note\": \"{\\\"myKey\\\":\\\"myValue\\\"}\"\n  }\n]\n```\n\nDefine a `LastPass` or `LastPassGroup` [Custom Resource](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources) to automatically manage the lifecycle of your secrets in Kubernetes\n```bash\n$ cat example/edgelevel_v1alpha1_lastpass_cr.yaml\napiVersion: edgelevel.com/v1alpha1\nkind: LastPass\nmetadata:\n  name: example-lastpass\nspec:\n  secretRef:\n    group: example\n    name: my-secret\n    withUsername: true\n    withPassword: true\n    withUrl: true\n    withNote: true\n  syncPolicy:\n    enabled: true\n    refresh: 10\n\n# create a custom resource\n$ kubectl apply -f example/edgelevel_v1alpha1_lastpass_cr.yaml\n```\n_NOTE: The `LastPassGroup` custom resource will sync all the secrets in a lastpass folder to kubernetes. The lastpass group will **not** sync subfolders._\n```bash\n$ cat example/edgelevel_v1alpha1_lastpassgroup_cr.yaml\napiVersion: edgelevel.com/v1alpha1\nkind: LastPassGroup\nmetadata:\n  name: example-lastpassgruop\nspec:\n  secretRef:\n    group: example\n    withUsername: true\n    withPassword: true\n    withUrl: true\n    withNote: true\n  syncPolicy:\n    enabled: true\n    refresh: 10\n\n# create a custom resource\n$ kubectl apply -f example/edgelevel_v1alpha1_lastpassgroup_cr.yaml\n```\n\nThe operator will take care of create native Kubernetes secrets and keep them up to date that if they change\n```bash\n# verify\n$ kubectl get lastpass\n$ kubectl get secrets\n\n# inspect\n$ kubectl get secret example-lastpass-8190226423897406876 -o yaml\napiVersion: v1\ndata:\n  NOTE: eyJteUtleSI6Im15VmFsdWUifQ==\n  PASSWORD: czNjcjN0\n  URL: aHR0cHM6Ly9sYXN0cGFzcy5jb20=\n  USERNAME: d2hvYW1p\nkind: Secret\nmetadata:\n  annotations:\n    fullname: example/my-secret\n    group: example\n    id: \"8190226423897406876\"\n    lastModifiedGmt: \"1562690587\"\n    lastTouch: \"0\"\n    name: my-secret\n  creationTimestamp: \"2019-07-09T15:00:13Z\"\n  labels:\n    app: lastpass-operator\n  name: example-lastpass-8190226423897406876\n  namespace: default\n  ownerReferences:\n  - apiVersion: edgelevel.com/v1alpha1\n    blockOwnerDeletion: true\n    controller: true\n    kind: LastPass\n    name: example-lastpass\n    uid: 0687d5a7-5f02-4ee4-a6c4-011c734f4149\n  resourceVersion: \"113312\"\n  selfLink: /api/v1/namespaces/default/secrets/example-lastpass-8190226423897406876\n  uid: 382008d2-8999-444d-86c8-e4f29eecbe9f\ntype: Opaque\n\n# check values\n$ echo 'czNjcjN0' | base64 --decode\ns3cr3t\n$ echo 'eyJteUtleSI6Im15VmFsdWUifQ==' | base64 --decode | jq -c\n{\"myKey\":\"myValue\"}\n```\n\nMetrics are exposed by default in Prometheus [format](https://prometheus.io/docs/instrumenting/exposition_formats), see an [example](example/metrics.txt)\n```bash\n# port forward\nkubectl port-forward service/lastpass-operator -n lastpass 8080:8383\n\n# request metrics\nhttp :8080/metrics\n```\n\n## Considerations\n\n* If you want to understand how the operator works, you should have a look at the `Reconcile` method defined in [lastpass_controller](https://github.com/edgelevel/lastpass-operator/blob/master/pkg/controller/lastpass/lastpass_controller.go) and at the [CustomResourceDefinition](https://github.com/edgelevel/lastpass-operator/blob/master/chart/templates/crd.yaml)\n* The diagram below explains the core logic of the reconcile loop\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/img/reconcile-loop.png\" alt=\"reconcile-loop\"\u003e\n\u003c/p\u003e\n\n* The recommended way to install the operator in a cluster is by applying the provided Helm [chart](chart/)\n* *TODO for a working example you should have a look at [niqdev/do-k8s](https://github.com/niqdev/do-k8s)*\n* This operator has been mainly developed to simplify the secret management of low security environments, if you are a security paranoid you should audit this project and assess if it meets the security standard of your organization\n* The operator, for obvious reasons, won't work if you have MFA enabled on LastPass or your credentials \"Require Password Reprompt\"\n* Once [this](https://github.com/argoproj/argo-cd/issues/1786) Argo CD feature will be implemented it should allow to bind secrets directly to an `Application`\n\n## Development\n\n* [Setup](docs/setup.md)\n* [golang](docs/golang.md)\n* [operator-sdk](docs/operator.md)\n* [LastPass](docs/lastpass.md)\n\n```bash\n# download source\nmkdir -p $GOPATH/src/github.com/edgelevel \u0026\u0026 cd $_\ngit clone git@github.com:edgelevel/lastpass-operator.git\ncd lastpass-operator\n\n# install operator-sdk\n.travis/install_operator_sdk.sh\n\n# install dependencies\ngo mod download -x\n```\n\nRun locally outside the cluster on [minkube](https://github.com/kubernetes/minikube)\n```bash\n# requires virtualbox\nminikube start\n\n# run locally\nexport OPERATOR_NAME=lastpass-operator\nexport LASTPASS_USERNAME=myUsername\nexport LASTPASS_PASSWORD=myPassword\n\n# Install CRDs into cluster\nmake install\n\n# Start lastpass operator\nmake run\n\n# Alternatively you can install and run with\nmake install run\n\n```\n\nRun as a Deployment inside the cluster\n```bash\n# apply chart\nhelm template \\\n  --values chart/values.yaml \\\n  --set lastpass.username=\"myUsername\" \\\n  --set lastpass.password=\"myPassword\" \\\n  chart/ | kubectl apply -n lastpass -f -\n```\n\nDebug issues\n```bash\n# verify logs\nkubectl logs deployment/lastpass-operator -n lastpass -f\n```\n\nPublish a new version on [DockerHub](https://hub.docker.com/r/edgelevel/lastpass-operator)\n```bash\n# build and publish manually (unsafe)\nmake docker-build IMG=edgelevel/lastpass-operator:X.Y.Z\nmake docker-push IMG=edgelevel/lastpass-operator:X.Y.Z\n\n# build and publish using travis\ngit tag vX.Y.Z\ngit push origin --tags\n```\n\n---\n\nTODO\n* [ ] add extra Prometheus [metrics](https://prometheus.io/docs/guides/go-application)\n* [ ] publish to [OperatorHub](https://operatorhub.io/contribute)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgelevel%2Flastpass-operator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedgelevel%2Flastpass-operator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgelevel%2Flastpass-operator/lists"}