{"id":50385029,"url":"https://github.com/stackhpc/coral-credits","last_synced_at":"2026-05-30T14:30:53.952Z","repository":{"id":220103148,"uuid":"750458027","full_name":"stackhpc/coral-credits","owner":"stackhpc","description":"Track cloud credit usage for projects like Azimuth and Blazar","archived":false,"fork":false,"pushed_at":"2026-05-28T14:45:24.000Z","size":5886,"stargazers_count":1,"open_issues_count":12,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-28T16:08:04.719Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stackhpc.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":"2024-01-30T17:24:54.000Z","updated_at":"2026-05-28T14:07:11.000Z","dependencies_parsed_at":"2024-09-09T20:59:02.089Z","dependency_job_id":"60c565b2-152b-4596-a769-d0584511555f","html_url":"https://github.com/stackhpc/coral-credits","commit_stats":null,"previous_names":["stackhpc/coral-credits"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/stackhpc/coral-credits","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackhpc%2Fcoral-credits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackhpc%2Fcoral-credits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackhpc%2Fcoral-credits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackhpc%2Fcoral-credits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackhpc","download_url":"https://codeload.github.com/stackhpc/coral-credits/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackhpc%2Fcoral-credits/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33696681,"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-05-30T02:00:06.278Z","response_time":92,"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":"2026-05-30T14:30:53.390Z","updated_at":"2026-05-30T14:30:53.947Z","avatar_url":"https://github.com/stackhpc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# coral-credits\n\nCoral credits is a resource management system that helps build a \"coral reef style\" fixed capacity cloud, cooperatively sharing community resources through interfaces such as: Azimuth, OpenStack Blazar and Slurm.\n\nYou can read more about our plans here:\nhttps://stackhpc.github.io/coral-credits\n\n## Blazar configuration\n\nTo use this with Blazar you need to add something like this\ninto your Blazar configuration:\n\n```\n[enforcement]\nenabled_filters = ExternalServiceFilter\nexternal_service_bearer_token = \u003ctoken goes here\u003e\nexternal_service_check_create_endpoint = https://credits.\u003cazimuth_url\u003e/consumer/check-create/\nexternal_service_commit_create_endpoint = https://credits.\u003cazimuth_url\u003e/consumer/create/\nexternal_service_check_update_endpoint = https://credits.\u003cazimuth_url\u003e/consumer/check-update/\nexternal_service_commit_update_endpoint = https://credits.\u003cazimuth_url\u003e/consumer/update/\nexternal_service_on_end_endpoint = https://credits.\u003cazimuth_url\u003e/consumer/on-end/\n```\n\nTo generate the service bearer token do something\nlike this:\n```\nCONTENT_TYPE=\"Content-Type: application/json\"\nTEST_PASSWORD=\u003cpassword\u003e\nSITE_URL=\"https://credits.\u003cazimuth_url\u003e\"\n\nTOKEN=$(curl -s -X POST -H \"$CONTENT_TYPE\" -d \\\n    \"{\n        \\\"username\\\": \\\"admin\\\", \n        \\\"password\\\": \\\"$TEST_PASSWORD\\\"\n    }\" \\\n    $SITE_URL/api-token-auth/ | jq -r '.token')\necho \"Auth Token: $TOKEN\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackhpc%2Fcoral-credits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackhpc%2Fcoral-credits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackhpc%2Fcoral-credits/lists"}