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

Auth routes are not specified (documented, validated) #549

Open
illume opened this issue Jan 3, 2022 · 0 comments
Open

Auth routes are not specified (documented, validated) #549

illume opened this issue Jan 3, 2022 · 0 comments

Comments

@illume
Copy link
Contributor

illume commented Jan 3, 2022

Auth routes are not specified (documented, validated)

Different auth backends have different inputs and responses. They are chosen at startup time based on a cli option.

The current situation is that each auth backend uses the same URLs for routes. Also the inputs and responses are not specified/documented, and are manually validated (rather than using the backend generated validation).

See:

Impact

Understanding the code is more difficult(for backend developers, API users, and operators). Maintenance is harder, because changes in the spec need to be done and kept in sync manually. Operators don't have a documented REST API spec, meaning they might find it difficult to know how it works and complete tasks like hardening the API. Validation can not be done by automatically by the backend or the frontend (currently only the backend is using the spec for automatic validation).

Since this area of code has no tests, not having docs or a spec here means the code is lower quality. This is not an ideal situation for portions of the codebase which have a high impact on the security of the system (as auth does).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant