{"id":42702266,"url":"https://github.com/stenic/sql-operator","last_synced_at":"2026-01-29T14:22:26.875Z","repository":{"id":37035043,"uuid":"419998718","full_name":"stenic/sql-operator","owner":"stenic","description":"Manage SQL databases, users and grant using kubernetes manifests","archived":false,"fork":false,"pushed_at":"2025-12-18T02:50:10.000Z","size":1452,"stargazers_count":6,"open_issues_count":7,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-19T06:57:51.921Z","etag":null,"topics":["hacktoberfest","kubernetes","mysql","operator","sql-operator"],"latest_commit_sha":null,"homepage":"https://stenic.github.io/sql-operator/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stenic.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-10-22T07:02:44.000Z","updated_at":"2025-07-14T03:16:54.000Z","dependencies_parsed_at":"2023-10-23T04:27:34.482Z","dependency_job_id":"704e82a7-6315-4d8f-9b3a-a061ee7ee503","html_url":"https://github.com/stenic/sql-operator","commit_stats":{"total_commits":165,"total_committers":5,"mean_commits":33.0,"dds":"0.35151515151515156","last_synced_commit":"281a207abf1408189da746222a72d4aaf440a9fd"},"previous_names":[],"tags_count":90,"template":false,"template_full_name":null,"purl":"pkg:github/stenic/sql-operator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stenic%2Fsql-operator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stenic%2Fsql-operator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stenic%2Fsql-operator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stenic%2Fsql-operator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stenic","download_url":"https://codeload.github.com/stenic/sql-operator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stenic%2Fsql-operator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28879381,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"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":["hacktoberfest","kubernetes","mysql","operator","sql-operator"],"created_at":"2026-01-29T14:22:26.019Z","updated_at":"2026-01-29T14:22:26.860Z","avatar_url":"https://github.com/stenic.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SqlOperator\n\n[![Last release](https://github.com/stenic/sql-operator/actions/workflows/release.yaml/badge.svg)](https://github.com/stenic/sql-operator/actions/workflows/release.yaml)\n[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/sql-operator)](https://artifacthub.io/packages/search?repo=sql-operator)\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fstenic%2Fsql-operator.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fstenic%2Fsql-operator?ref=badge_shield)\n\n\nOperate sql databases, users and grants.\n\n\u003e This is a WIP project and should not at all be used in production at this time.\n\u003e Feel free to validate in CI pipelines.\n\n## Engines\n\nCurrenty, only MySQL is supported.\n\n## Installation\n\n```shell\nkubectl create namespace sql-operator\nhelm repo add sql-operator https://stenic.github.io/sql-operator/\nhelm install sql-operator --namespace sql-operator sql-operator/sql-operator\n```\n\n## Objects\n\n### SqlHost\n\nThe `SqlHost` object contains information how the operator should connect to the remote server. \nNote that this information should be protected using rbac.\n\n### SqlDatabase\n\nThe `SqlDatabase` object manages a database on the referenced `SqlHost`.\n\n### SqlUser\n\nThe `SqlUser` object manages a user on the referenced `SqlHost`.\n\n### SqlGrant\n\nThe `SqlGrant` object manages the grant for the referenced `SqlUser` on the referenced `SqlDatabase`.\n\n## Example\n\nThe following example registeres a `SqlHost` pointing to a shared integration host and creates a `database`,\n`user` and `grants` to run integration tests for the application.\n\n```yaml\n---\n# Register a host - Not created by the operator\napiVersion: stenic.io/v1alpha1\nkind: SqlHost\nmetadata:\n  name: integration\nspec:\n  engine: Mysql\n  dsn: sqloperator:xxxxxxxxxxx@tcp(192.168.1.123:3306)/\n\n---\n# Create a database on the host\napiVersion: stenic.io/v1alpha1\nkind: SqlDatabase\nmetadata:\n  name: application-int-db\nspec:\n  databaseName: myapp_testing\n  hostRef:\n    name: integration\n  cleanupPolicy: Delete\n\n---\n# Create a user on the host\napiVersion: stenic.io/v1alpha1\nkind: SqlUser\nmetadata:\n  name: application-int-user\nspec:\n  credentials:\n    username: myapp_username\n    password: myapp_password\n  hostRef:\n    name: integration\n  cleanupPolicy: Delete\n\n---\n# Add some grant to the user\napiVersion: stenic.io/v1alpha1\nkind: SqlGrant\nmetadata:\n  name: application-int-grant\nspec:\n  userRef:\n    name: application-int-user\n  databaseRef:\n    name: application-int-db\n  grants:\n    - INSERT\n    - SELECT\n    - UPDATE\n    - DELETE\n  cleanupPolicy: Delete\n```\n\n\n## License\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fstenic%2Fsql-operator.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fstenic%2Fsql-operator?ref=badge_large)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstenic%2Fsql-operator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstenic%2Fsql-operator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstenic%2Fsql-operator/lists"}