{"id":19590067,"url":"https://github.com/truggeri/maitre-d","last_synced_at":"2026-04-29T19:34:12.103Z","repository":{"id":130445386,"uuid":"417943489","full_name":"truggeri/maitre-d","owner":"truggeri","description":"A jwt based authorization service","archived":false,"fork":false,"pushed_at":"2022-05-24T15:29:33.000Z","size":266,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T15:53:46.049Z","etag":null,"topics":["jwt-authorization","ruby-on-rails"],"latest_commit_sha":null,"homepage":"","language":"CSS","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/truggeri.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":"2021-10-16T20:42:39.000Z","updated_at":"2021-10-21T22:56:16.000Z","dependencies_parsed_at":"2023-04-12T15:06:07.457Z","dependency_job_id":null,"html_url":"https://github.com/truggeri/maitre-d","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/truggeri/maitre-d","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truggeri%2Fmaitre-d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truggeri%2Fmaitre-d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truggeri%2Fmaitre-d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truggeri%2Fmaitre-d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/truggeri","download_url":"https://codeload.github.com/truggeri/maitre-d/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truggeri%2Fmaitre-d/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32441270,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"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":["jwt-authorization","ruby-on-rails"],"created_at":"2024-11-11T08:23:11.505Z","updated_at":"2026-04-29T19:34:12.087Z","avatar_url":"https://github.com/truggeri.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Maitre-D\n\n[![Build Badge](https://img.shields.io/circleci/build/github/truggeri/maitre-d/main)](https://circleci.com/gh/truggeri/maitre-d/tree/main)\n![Coverage Badge](https://img.shields.io/badge/coverage-100%25-brightgreen.svg)\n\nDescription to come...\n\n![RoR Badge](https://img.shields.io/badge/-Ruby_On_Rails-b32424?style=flat\u0026labelColor=cc0000\u0026logo=ruby-on-rails\u0026logoColor=white)\n![PostgreSQL Badge](https://img.shields.io/badge/-PostgreSQL-426078?style=flat\u0026labelColor=336791\u0026logo=postgresql\u0026logoColor=white)\n\n[![Docker Badge](https://img.shields.io/badge/-Docker-4b99d4?style=flat\u0026labelColor=2496ED\u0026logo=docker\u0026logoColor=white)](./Dockerfile)\n\n## Configuration\n\nThere are a number of configuration choices that allow you to customize your instance of Maitre-D.\n\n| ENV | Default | Description |\n| --- | --- | -- |\n| `AUTH_COOKIE_NAME` | `auth_token` | The name of the cookie stored when a user logs in. |\n| `DATABASE_URL` | - | A postgresql url. |\n| `HARD_UNAUTH` | `false` | If set to `true`, unauthorized requests will receive a simple 401. Otherwise, unauthorized requests will redirect to the login form.\n| `JWT_RSA_PEM` | - | An RSA 256 PEM private key. |\n| `JWT_RSA_PUB` | - | An RSA 256 public key from the provided private key. |\n| `SECURITY_TOKEN` | - | A secure token that is passed as a param when logging in a user from another platform. This token acts as an api key to allow authentication to happen elsewhere. |\n\n## Bootstrapping User\n\nIn order to manage roles, you must first have a user with permission to manage roles. To create this user,\nwe have provided a hook based upon two ENV being set upon startup.\n\n| ENV | Description |\n| --- | --- |\n| `SUPERADMIN_USERNAME` | The username/email of the privileged user |\n| `SUPERADMIN_PASSWORD` | The password of the user |\n\nThe user is created or updated with the given username and password and is given the \"manage_roles\" role\nwhich allows access to the management dashboard.\n\n## Local Setup\n\nYou'll need the following to run the project yourself.\n\n### PostgreSQL Database\n\nThis app uses [PostgreSQL 13](https://www.postgresql.org/docs/13/) for it's datastore. In order to configure one, provide a database URL via an environment variable.\n\n```bash\nexport DATABASE_URL=postgres://\u003cusername\u003e:\u003cpassword\u003e@\u003chost\u003e:\u003cport\u003e\n```\n\nThis database can be setup in any fashion that you choose. Options include [local install](https://www.postgresql.org/download/), [Docker](https://hub.docker.com/_/postgres?tab=description), or as [a web service](https://www.heroku.com/postgres). If you'd like to use Docker, we have a [Docker Compose](https://docs.docker.com/compose/) [file](./docker-compose.yml) to help,\n\n```bash\ncp .env.development.example .env.development\n# Add your custom choices for ENV\nsource .env.development\ndocker-compose up --detach db\n```\n\n### Docker\n\nIf you'd like to run the application using Docker, there is a [Dockerfile](./Dockerfile) provided.\nTo use, build the container first and then run it with your configured database and port settings.\n\n```bash\nsource .env.development\ndocker build -t maitre-d .\ndocker run --rm -e DATABASE_URL=$DATABASE_URL -p 3000:3000 maitre-d\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftruggeri%2Fmaitre-d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftruggeri%2Fmaitre-d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftruggeri%2Fmaitre-d/lists"}