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

More scalable and manageable autorisation method in SBS #295

Open
baszoetekouw opened this issue Aug 30, 2022 · 3 comments
Open

More scalable and manageable autorisation method in SBS #295

baszoetekouw opened this issue Aug 30, 2022 · 3 comments
Assignees
Labels
audit Fixes relating to security audit

Comments

@baszoetekouw
Copy link
Member

baszoetekouw commented Aug 30, 2022

Uit het rapport van de audit:

While reviewing the SBS codebase, the observation was made that authorization was primarily dependent on a series of if statements and functions. While this remains a common approach, it appears susceptible to erroneous behaviors in an SBS context. Several tickets documented in this report indicated the ease with which the misplacement of a single if statement can result in authorization issues. In light of this, [the audit team] strongly recommends researching and implementing maintainable methods for authorization enforcement on API endpoints.

Hier moeten we iets structureels op bedenken

@baszoetekouw baszoetekouw self-assigned this Aug 30, 2022
@baszoetekouw
Copy link
Member Author

@oharsta Heb jij suggesties hoe we de autorisatie in SBS structureel kunnen verbeteren?
Bij voorkeur zou ik iets willen waarmee API-endpoints bij default dicht staan, tenzij we expliciet toegang geven tot bepaalde groepen. Bij voorkeur zou ik dat laatste dan ook graag op een gestandaardiseerde manier doen (maar wellicht moeten we dan eerst het autorisatiemodel van SBS versimpelen).

@baszoetekouw baszoetekouw moved this from New to Todo in SRAM development Jan 20, 2023
@oharsta
Copy link
Collaborator

oharsta commented Jan 20, 2023

@baszoetekouw If we first can simplify the authorization model, then I do have ideas how to re-structure the code. Which simplifications are feasible on short-term?

@FlorisFokkinga FlorisFokkinga changed the title Beter schaalbare en beheersbare autorisatiemethode in SBS More scalable and manageable autorisation method in SBS Aug 23, 2024
@logan-life
Copy link
Contributor

  • Automated testing of the endpoint authorization tracked in POC for automated testing of correct autorization on endpoints #1461 should happen first.
  • 2024 external sec audit will focus on org and SBS internal API, so findings from that will also be helpful in understanding what we can do here w/r/t simplification.
  • After testing is in place, we can think about how to do this better and what the best time to do this is (during or after SURF access)

@logan-life logan-life moved this from Needs refinement to Blocked in SRAM development Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audit Fixes relating to security audit
Projects
Status: Blocked
Development

No branches or pull requests

3 participants