Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auxy - Authenticated Proxy #5

Open
TheConnMan opened this issue Jan 2, 2018 · 0 comments
Open

Auxy - Authenticated Proxy #5

TheConnMan opened this issue Jan 2, 2018 · 0 comments
Labels

Comments

@TheConnMan
Copy link
Owner

TheConnMan commented Jan 2, 2018

Business Case

Microservice architectures require a large number of public and private APIs serviced by many individual services. Internal services may directly service public APIs, but don't need the added responsibility of handling multi-tenancy or authentications. These still need to be authenticated, though the endpoints should not be duplicated through an authenticated public API.

Auxy handles authentication and multi-tenancy as an authenticated internal API proxy. It handles authentication at the edge, but only proxies requests internally instead of duplicating them reducing memory pressure, common object dependencies, serialization/deserialization, and development complexity.

Workflow

  • Requests come in to the public API fronted by Auxy
  • Auxy handles an existing authentication token or credentials
  • Auxy checks the validity of these credentials or token
    • If they are invalid requests are denied at the edge
    • If they are valid Auxy adds a tenant or user identifier header to the request
  • Auxy checks the request path and proxies the request to the appropriate service

MVP

  • Handle basic auth
  • Handle adding and validating an auth token
  • Basic DB support with migrations for a user and/or tenant table for authentication
  • File based config for proxy paths to services
    • Instead of proxy paths this proxy could be just middleware. If any multi-target proxying is needed routing could be done behind this proxy.

Additional Features

  • OAuth support from Google, Twitter
  • Additional DB support (DynamoDB?)
@TheConnMan TheConnMan added the idea label Jan 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant