Git Product home page Git Product logo

l0-registry's People

Contributors

actions-user avatar dependabot[bot] avatar mike-audi avatar timoguin avatar

Stargazers

 avatar  avatar

l0-registry's Issues

Build out Id slice

The id slice is the customer-registered/specified id, which maps to a list of addresses.

Requirements:

  • prove private key ownership to register and address
  • append, if id exists.
  • create a signing key for each id
  • to get a list of addresses for an id requires key ownership proof of an address in the list
  • return the sign key when getting the addresses
  • nice to have: sign key auto-rotation

API:
POST /id
GET /id/{id}
DELETE /id/{id}

Security:
token: JWT from L0-auth
scope:

  • registry for POST/GET
  • registry:admin for DELETE

Setup project & dev environment

Initialize the project with the following setup:

  • gitignore(s)
  • docker compose
  • spring-boot folder structure
  • empty database

in spring boot maven project set up:

  • openapi auto gen
  • prod, local, and dev .properties file(s)
  • health check

Report usage to Stripe

On each new user registered we need to report usage to Stripe for billing.

Note: This should be treated as a non-blocking event and executed in a separate thread

  1. Get the total user count for the account, if > 1000 and there is no billing id cached, fetch billing id from l0-auth
  2. Report both the new user registration AND the total user count to stripe.

Add JWKS endpoint verification

Add an optional JWKS verification endpoint for id registration.

Requirements:

  • If there is a valid JWKS endpoint in the config, require it to pass on registration
  • Allow optional subject claim verification
  • Support RS256 (RSA) and ES256 (EC)

Build out Config slice

The config slice is the customer-specific configuration for the registry.

Options:

  • A mandatory app id (from the console & embedded in JWTs as the subject)
  • An optional JWKS endpoint

API:
POST /app
GET /app/{id}
DELETE /app/{id}

Security:
token: JWT from L0-auth
scope: registry:admin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.