{"id":28395195,"url":"https://github.com/databiosphere/lyle","last_synced_at":"2025-06-27T01:31:28.213Z","repository":{"id":41690731,"uuid":"224237653","full_name":"DataBiosphere/lyle","owner":"DataBiosphere","description":"Test user allocation service","archived":false,"fork":false,"pushed_at":"2023-01-20T20:17:00.000Z","size":1763,"stargazers_count":1,"open_issues_count":9,"forks_count":0,"subscribers_count":23,"default_branch":"dev","last_synced_at":"2025-06-01T06:52:25.280Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/DataBiosphere.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":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2019-11-26T16:29:52.000Z","updated_at":"2023-01-31T17:44:17.000Z","dependencies_parsed_at":"2023-01-27T15:00:28.486Z","dependency_job_id":null,"html_url":"https://github.com/DataBiosphere/lyle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DataBiosphere/lyle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataBiosphere%2Flyle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataBiosphere%2Flyle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataBiosphere%2Flyle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataBiosphere%2Flyle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DataBiosphere","download_url":"https://codeload.github.com/DataBiosphere/lyle/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataBiosphere%2Flyle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262172417,"owners_count":23270007,"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":[],"created_at":"2025-05-31T19:39:27.336Z","updated_at":"2025-06-27T01:31:28.198Z","avatar_url":"https://github.com/DataBiosphere.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lyle\nTest user allocator\n\n### Overview\n\nThis service provides a mechanism for allocating temporary service accounts, which can then be used\nto log into Terra from automated tests scripts. Each service account has a unique email address,\nwhich can help keep test cases separate from one another.\n\n[API docs](https://terra-lyle.appspot.com/docs)\n\n### Typical usage\n\n1. Call `create` to generate a new service account and return its email.\n2. Call `token` to generate an access token for the new service account. Use the access token to log into Terra.\n3. Call `delete` when finished, to delete the service account. However, even if this does not happen, the service account will be cleaned up automatically after 1 hour.\n\n### Authentication\n\nAll endpoints require an OpenID Connect ID token for the service account `lyle-user@terra-lyle.iam.gserviceaccount.com`.\nA private key for that service account is stored in Vault at the path `secret/dsde/terra/envs/common/lyle-user-service-account-key`.\n\nTo generate a token, create a JWT with the additional claim `target_audience: 'https://terra-lyle.appspot.com'`,\nsign it with the private key, and pass it to Google's OAuth2 `token` endpoint. Using one of Google's client libraries will make this easier.\n\nPass the token in a header with every call: `Authorization: Bearer \u003ctoken\u003e`\n\n### Developing\n\nNote that there is currently no separate development environment, so any changes will affect the real system. Use caution.\n\nDownload a key for the app engine default service account, `terra-lyle@appspot.gserviceaccount.com`. Note the file location.\n\nInstall deps\n```sh\nyarn install\n```\n\nBuild docs\n```sh\nyarn generate-docs\n```\n\nStart a dev server on port 8080 with auto-reload\n```sh\nGCP_PROJECT=terra-lyle GOOGLE_APPLICATION_CREDENTIALS=\u003cpath-to-key-file\u003e yarn start-dev\n```\n\nLint\n```sh\nyarn lint\n```\n\nDeploy\n```sh\nscripts/deploy.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatabiosphere%2Flyle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatabiosphere%2Flyle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatabiosphere%2Flyle/lists"}