{"id":36575347,"url":"https://github.com/arbarlow/account_service","last_synced_at":"2026-01-12T07:29:47.172Z","repository":{"id":57487893,"uuid":"79224740","full_name":"arbarlow/account_service","owner":"arbarlow","description":"gRPC service for creating accounts (name, email, password etc)","archived":false,"fork":false,"pushed_at":"2017-06-02T21:44:47.000Z","size":327,"stargazers_count":25,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-12T02:12:26.166Z","etag":null,"topics":["account-microservice","docker","go","grpc","lile","service"],"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/arbarlow.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}},"created_at":"2017-01-17T12:19:19.000Z","updated_at":"2025-02-12T03:34:05.000Z","dependencies_parsed_at":"2022-08-29T11:20:58.105Z","dependency_job_id":null,"html_url":"https://github.com/arbarlow/account_service","commit_stats":null,"previous_names":["lileio/account_service"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/arbarlow/account_service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arbarlow%2Faccount_service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arbarlow%2Faccount_service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arbarlow%2Faccount_service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arbarlow%2Faccount_service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arbarlow","download_url":"https://codeload.github.com/arbarlow/account_service/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arbarlow%2Faccount_service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28336524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["account-microservice","docker","go","grpc","lile","service"],"created_at":"2026-01-12T07:29:47.110Z","updated_at":"2026-01-12T07:29:47.164Z","avatar_url":"https://github.com/arbarlow.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Account Service\n\n[![Build Status](https://travis-ci.org/lileio/account_service.svg?branch=master)](https://travis-ci.org/lileio/account_service) [![GoDoc](https://godoc.org/github.com/lileio/account_service?status.svg)](https://godoc.org/github.com/lileio/account_service)\n\nAn account microservice that speaks gRPC made with the [Lile generator](https://github.com/lileio/lile), backed by PostgreSQL.\n\n``` protobuf\nservice AccountService {\n  rpc List (ListAccountsRequest) returns (ListAccountsResponse) {}\n  rpc GetById (GetByIdRequest) returns (Account) {}\n  rpc GetByEmail (GetByEmailRequest) returns (Account) {}\n  rpc AuthenticateByEmail (AuthenticateByEmailRequest) returns (Account) {}\n  rpc GeneratePasswordToken (GeneratePasswordTokenRequest) returns (GeneratePasswordTokenResponse) {}\n  rpc ResetPassword (ResetPasswordRequest) returns (Account) {}\n  rpc ConfirmAccount (ConfirmAccountRequest) returns (Account) {}\n  rpc Create (CreateAccountRequest) returns (Account) {}\n  rpc Update (UpdateAccountRequest) returns (Account) {}\n  rpc Delete (DeleteAccountRequest) returns (google.protobuf.Empty) {}\n}\n```\n## Details\n\n### Authentication\nPasswords are stored hashed with [bcrypt](https://godoc.org/golang.org/x/crypto/bcrypt), no RPC method returns passwords or hashed passwords.\n\nYou can do simple authentication with the `AuthenticateByEmail` RPC method to roll your own authentication logic. I.e you can auth with email and password, but managing password length or auth tokens is up to you.\n\n### Validations\n\nAt the moment the service will reject account create and update requests have either a blank name or email. \"\" is considered blank.\n\nThere is no email validation other than 'present' so to speak as I've never seen it done quite right.\n\n## Docker\n\nA pre build Docker container is available at:\n\n```\ndocker pull lileio/account_service\n```\n\n## Commands\n\n```\nUsage:\n  account_service [command]\n\nAvailable Commands:\n  migrate     Run database migrations\n  server      Run the gRPC server\n  client      Interact with a running server\n```\n\n## Environment Setup\n\nSetup is configured via environment variables, depending on the database chosen.\n\nThe app provides migrations, but does create the databases itself.\n\n### PostgreSQL\n\nPostgreSQL is configured using the single ENV variable `POSTGRESQL_URL` and can be a url like string e.g.\n\n`POSTGRESQL_URL=\"postgres://host/database\"`\n\nThe PostgreSQL driver uses UUID's as primary key and a single table.\n\n### Image Service\n\nUploading and attaching an image is supported via the lile [image_service](https://github.com/lileio/image_service/) via an Image Operation. To do so, you will need to set the `IMAGE_SERVICE_ADDR` variable. Account Service will run fine without this, but you'll need to leave the image upload `nil`.\n\n```\nIMAGE_SERVICE_ADDR=\"10.0.0.1:8000\"\n```\n\n## Test\nThe `docker-compose.yml` file will run PostgreSQL and Cassandra for testing purposes, but you will need create the test databases yourself. Migrations are run automatically by the test suite.\n\nFor PostgreSQL (using psql):\n\n``` sql\nCREATE DATABASE account_service_test;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farbarlow%2Faccount_service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farbarlow%2Faccount_service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farbarlow%2Faccount_service/lists"}