Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

Feature Toggle API #154

Description

@tombuildsstuff

Discussed in #152

Rather than making clients query directly to ETCD to get the status of a toggle - it'd be good to make them query via an API. There's several benefits to this:

  • Allows the option of some kind of security per request
  • The ETCD config is set inside of Hobknob - not per-app
  • ETCD can be secured via routing rules
  • It becomes easier to scale the application as required

Personally - I'd recommend that this is done as a separate deployable unit rather than putting it in the same application for the following reasons:

  • From a Scalability perspective:
    • it makes life a lot simpler to scale the API as required - keeping only a single instance of the front-end app
  • From a Security/Ops perspective:
    • It's possible to lock the application down via Network rules - e.g.:
      • ETCD becomes a Private resource (that only the API + front-end can access) - no longer accessible to teams
    • The Front-End and API can become internal-only
  • From a Development perspective:
    • If all endpoints in a given application have to be secured - it's very easy to use middleware to handle that for all scenarios - meaning human error/unsecured endpoints won't happen

Thoughts?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions