{"id":19102682,"url":"https://github.com/kayrus/openstack-token","last_synced_at":"2025-04-30T16:26:08.241Z","repository":{"id":57564857,"uuid":"216262367","full_name":"kayrus/openstack-token","owner":"kayrus","description":"A simple tool to decode and generate OpenStack fernet tokens","archived":false,"fork":false,"pushed_at":"2024-05-21T11:43:15.000Z","size":49,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T11:47:29.754Z","etag":null,"topics":["authentication","decryption","encryption","fernet","golang","msgpack","openstack","token"],"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/kayrus.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}},"created_at":"2019-10-19T19:52:39.000Z","updated_at":"2024-05-21T11:43:17.000Z","dependencies_parsed_at":"2024-05-21T12:51:51.592Z","dependency_job_id":"b4b6de51-3ac8-4bcd-a27c-58191762f62d","html_url":"https://github.com/kayrus/openstack-token","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayrus%2Fopenstack-token","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayrus%2Fopenstack-token/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayrus%2Fopenstack-token/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayrus%2Fopenstack-token/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kayrus","download_url":"https://codeload.github.com/kayrus/openstack-token/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223783093,"owners_count":17201905,"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","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":["authentication","decryption","encryption","fernet","golang","msgpack","openstack","token"],"created_at":"2024-11-09T03:56:46.894Z","updated_at":"2024-11-09T03:59:44.802Z","avatar_url":"https://github.com/kayrus.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# token\n\nA simple tool to decode or generate OpenStack Fernet tokens.\n\n# Quick Start\n\nUse the [config.yaml](config.yaml.example) example to configure the tool.\n\n## Verify\n\nSet an `OS_AUTH_TOKEN` environment variable to decode and verify the token.\n\n## Generate\n\nWhen an `OS_AUTH_TOKEN` environment variable is not set, the tool will try to generate a project scoped token using the `-user-id` (`OS_USER_ID` env variable) and `-project-id` (`OS_PROJECT_ID` env variable) flags. When `-project-id` flag is empty or invalid, the tool will generate an unscoped token (details below).\n\nWhen `-user-id` is unknown, the `-user-name` (`OS_USER_NAME` env variable) and `-user-domain-id` (`OS_USER_DOMAIN_ID` env variable) will be used to generate the user ID (works only with users, which come from AD/LDAP).\n\nTo generate a domain scoped token, specify a `-domain-id` (`OS_DOMAIN_ID` env variable) argument.\n\nTo generate and print a random Fernet key use `-generate-key` CLI argument.\n\n# Example\n\n## Verify\n\n```sh\n$ OS_AUTH_TOKEN=gAAAAABgHrIyjxg1uhHRszMPJ5c_dbs06ijQsiRc2aKbquUZeSsQgm7NtYZ8J3kqyofilwPx0Y5wDq4GS7inZeDP6Xj1mcYl_dd9GkXYoRfAk9Adv6qUfPQzajoVJgqnwcIF8jntnd2G2eSJU8uCqf60mF79pT9j5jKF4l-GmOHK5GxzvicdkEVTdNLOkPLS_BnCyXJ2gvdR token\nType: ProjectScoped\nUserID: 28f6d90bb6d948ac9105b90bcc1e3a84\nAuthMethods: 1 [\"password\"]\nProjectID: 5b7d00a6d7a94f8fb57de9c6ef858ea8\nExpiresAt: 3000-03-12 12:12:12 +0000 UTC\nExpiresIn: 2562047h47m16.854775807s\nAuditIDs: [\"XLKFCG23T66BbaJ-uC7uWg\" \"sGEDVFDgTDO4rumtnbui5g\"]\n```\n\n## Generate\n\n```sh\n$ token -project-id 5b7d00a6d7a94f8fb57de9c6ef858ea8 -user-id 28f6d90bb6d948ac9105b90bcc1e3a84\nType: ProjectScoped\nUserID: 28f6d90bb6d948ac9105b90bcc1e3a84\nAuthMethods: 1 [\"password\"]\nProjectID: 5b7d00a6d7a94f8fb57de9c6ef858ea8\nExpiresAt: 2021-02-08 22:08:29 +0000 UTC\nExpiresIn: 3h59m59.142362161s\nAuditIDs: [\"5XhC5EnaYDty7vmZ-n1nQA\"]\nGenerated token: gAAAAABgIX4dX7dpqI7epLIIk4m370dRbNA3f4bzEudSdcsKkBiFdruHFyVaPM9UeOM8pwIVe95PoS99xUByNtnvoiH-FzVQsZ6R6oYnqXSAR2InTGk2EyOLVKAiM94v9pv3q-2RiSeB2oOInNqcod5rNWC6NJ7CysXbUx7rkGCi-Xh4yQDcjweSsVXAdD-_w6WGczHyHuew\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkayrus%2Fopenstack-token","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkayrus%2Fopenstack-token","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkayrus%2Fopenstack-token/lists"}