{"id":31485634,"url":"https://github.com/cbartram/kraken-db","last_synced_at":"2025-10-02T10:59:06.931Z","repository":{"id":297861162,"uuid":"996258454","full_name":"cbartram/kraken-db","owner":"cbartram","description":"Kraken Database and Minio deployment scripts","archived":false,"fork":false,"pushed_at":"2025-09-14T16:46:29.000Z","size":77,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-14T18:36:20.892Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/cbartram.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-06-04T17:29:16.000Z","updated_at":"2025-09-14T16:46:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"1eb12708-c385-458f-a1cf-ded008b95e21","html_url":"https://github.com/cbartram/kraken-db","commit_stats":null,"previous_names":["cbartram/kraken-db"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cbartram/kraken-db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbartram%2Fkraken-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbartram%2Fkraken-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbartram%2Fkraken-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbartram%2Fkraken-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cbartram","download_url":"https://codeload.github.com/cbartram/kraken-db/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbartram%2Fkraken-db/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277994435,"owners_count":25911888,"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-10-02T02:00:08.890Z","response_time":67,"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":"2025-10-02T10:59:04.304Z","updated_at":"2025-10-02T10:59:06.927Z","avatar_url":"https://github.com/cbartram.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kraken DB\n\nThis repository defines the MySQL database and Minio deployment manifests for [Kraken Plugins](https://kraken-plugins.com) and \nalso includes scripts required for releasing new plugins, managing beta plugins, and handling plugin sales as they relate to the database.\n\n## Getting Started\n\nYou will need MySQL installed locally and running (preferably in a docker container). You will need the following environment variables in a `.env` file:\n\n```shell\nDEV_PASSWORD=\u003cpass\u003e\nPROD_PASSWORD=\u003cpass\u003e\nPROD_HOST=\u003cyourhost.com\u003e\n```\n\n## Running\n\nTo run and use this tool:\n\n```shell\n# Build the tool\nexport GOOS=linux\nexport GOARCH=amd64\n\ngo build -o migrate main.go\n\n# Run migration for Dev\n./migrate -db-name=kraken -db-user=kraken -db-password=$DEV_PASSWORD -db-port 3306\n\n# Run migration for Prod\n./migrate -db-name=kraken -db-user=kraken -db-host=$PROD_HOST -db-password=$PROD_PASSWORD -db-port 30306\n\n# Dry run to see what would change\n./migrate -db-name=kraken -db-user=kraken -dry-run\n```\n\n# Management\n\nThe following sections describe how you can manage and configure Kraken plugins elements like:\n- Plugin Sales\n- Beta plugins\n- Adding plugins\n- Longhorn Block Storage\n\n## Revoking Plugin Access \u0026 Beta Plugins\n\nCurrently, there is no automated process for handling beta plugins. They are purchased with 0 tokens the same as normal plugins. When it comes time\nto release it live you will need to run a script like this:\n\n```mysql\n-- Define the plugin name you want to update\nSET @plugin_name = 'some_plugin_name';\n\n-- 1. Revoke all user access to the plugin by deleting from the `plugins` table\nDELETE FROM plugins\nWHERE name = @plugin_name;\n\n-- 2. Update `is_in_beta` to false in `plugin_metadata`\nUPDATE plugin_metadata\nSET is_in_beta = FALSE\nWHERE name = @plugin_name;\n\n-- 3. Update the plugin pricing in `plugin_metadata_price_details`\nUPDATE plugin_metadata_price_details pd\n    JOIN plugin_metadata pm ON pd.plugin_metadata_id = pm.id\nSET pd.month = 1000,\n    pd.three_month = 2700,\n    pd.year = 10000\nWHERE pm.name = @plugin_name;\n```\n\n## Longhorn Block Storage\n\n[Longhorn](https://longhorn.io) is used for data redundancy and backups for PVC's within the cluster. To access the longhorn UI\nport forward with: \n\n```shell\nkubectl -n longhorn-system port-forward service/longhorn-frontend 8080:80\n\n# access via http://localhost:8080 in the web browser\n```\n\n## Running the tests\n\nNo tests yet.\n\n## Deployment\n\nThis is designed to be deployed on a kubernetes cluster through Helm. Docker images are already built for both minio and \nMySQL so to deploy them to a cluster run:\n\n```shell\nhelm install minio ./manifets/minio -f ./manifets/minio/values.yaml\nhelm install kraken-db ./manifets/kraken-db -f ./manifets/kraken-db/values.yaml\n```\n\n## Built With\n\n- [GoLang](https://go.dev/doc/install) - Programming Language\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code\nof conduct, and the process for submitting pull requests to us.\n\n## Versioning\n\nWe use [Semantic Versioning](http://semver.org/) for versioning. For the versions\navailable, see the [tags on this\nrepository](https://github.com/cbartram/kraken-loader-plugin/tags).\n\n## Authors\n\n- **C. Bartram** - *Initial Project implementation* - [cbartram](https://github.com/cbartram)\n\nSee also the list of [contributors](https://github.com/PurpleBooth/a-good-readme-template/contributors)who participated in this project.\n\n## License\n\nThis project is licensed under the [CC0 1.0 Universal](LICENSE.md) Creative Commons License - see the [LICENSE.md](LICENSE.md) file for\ndetails.\n\n## Acknowledgments\n\n- RuneLite for making an incredible piece of software and API.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbartram%2Fkraken-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcbartram%2Fkraken-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbartram%2Fkraken-db/lists"}