Click here to Skip to main content
15,886,919 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Why I don't do MVVM. Pin
jschell26-Dec-23 4:37
jschell26-Dec-23 4:37 
GeneralRe: Why I don't do MVVM. Pin
Gerry Schmitz26-Dec-23 7:03
mveGerry Schmitz26-Dec-23 7:03 
GeneralRe: Why I don't do MVVM. Pin
jschell27-Dec-23 5:19
jschell27-Dec-23 5:19 
QuestionLiterature on designing and implementing an access control system Pin
D4rkTrick8-Dec-23 2:17
professionalD4rkTrick8-Dec-23 2:17 
AnswerRe: Literature on designing and implementing an access control system Pin
Richard MacCutchan8-Dec-23 2:52
mveRichard MacCutchan8-Dec-23 2:52 
GeneralRe: Literature on designing and implementing an access control system Pin
D4rkTrick9-Dec-23 4:52
professionalD4rkTrick9-Dec-23 4:52 
GeneralRe: Literature on designing and implementing an access control system Pin
Richard MacCutchan9-Dec-23 5:05
mveRichard MacCutchan9-Dec-23 5:05 
AnswerRe: Literature on designing and implementing an access control system Pin
jschell8-Dec-23 4:49
jschell8-Dec-23 4:49 
D4rkTrick wrote:
"in which roughness should I store permissions?"


Having considered that many times what I came up with is that you cannot answer that question without business requirements. And probably some business domain knowledge yourself.

Consider these cases...

Who should have permission to edit a social security number at a company? Who should be able to view it?

Contrast that with who should have permission to change the delivery address? Who should be able to view it? (Even more prickly can someone change a delivery address on an order that has already been delivered?)

Should there be a admin (root admin) that can change everything?

Are there assets that will be shared between companies? If so then who sets the permissions? (That was a very real business case that I had to deal with.)

Answering questions like that is FAR more important than how you implement it in general. But it will certainly drive implementation details.

I would be very wary of suggestions that you should 'plan for the future'. For instance in one of many parallel futures you might be asked to add a field on one form, so obviously the solution is that every single field on every form must have a permission from the beginning. And then the users (not developers) who will be actually setting that up will need to understand hundreds of permissions and implications (like what if the social security number is on two different forms?)

I worked for a company with hundreds of permissions. No one knew what they all did. There was also disagreement about what they should do. So those tasked with changing them just had to experiment.

D4rkTrick wrote:
"should I use RBAC, UBAC, ACL,... and how would I concretely implement them, cleanly?"


I doubt 'cleanly' exists in any medium size application. And really unlikely when it gets bigger.
So just pick one and look at it in detail.

And then really study how to log changes that users make. All users. Log in this case means to a persistent data store. Adds and updates are easy. Deletes are much harder.
GeneralRe: Literature on designing and implementing an access control system Pin
D4rkTrick9-Dec-23 4:52
professionalD4rkTrick9-Dec-23 4:52 
GeneralRe: Literature on designing and implementing an access control system Pin
jschell11-Dec-23 4:27
jschell11-Dec-23 4:27 
AnswerRe: Literature on designing and implementing an access control system Pin
Gerry Schmitz8-Dec-23 7:17
mveGerry Schmitz8-Dec-23 7:17 
GeneralRe: Literature on designing and implementing an access control system Pin
D4rkTrick9-Dec-23 4:52
professionalD4rkTrick9-Dec-23 4:52 
GeneralRe: Literature on designing and implementing an access control system Pin
Gerry Schmitz9-Dec-23 11:01
mveGerry Schmitz9-Dec-23 11:01 
GeneralRe: Literature on designing and implementing an access control system Pin
D4rkTrick10-Dec-23 3:30
professionalD4rkTrick10-Dec-23 3:30 
GeneralRe: Literature on designing and implementing an access control system Pin
Gerry Schmitz10-Dec-23 7:27
mveGerry Schmitz10-Dec-23 7:27 
PraiseRe: Literature on designing and implementing an access control system Pin
D4rkTrick6-Jan-24 21:18
professionalD4rkTrick6-Jan-24 21:18 
SuggestionIODA - Architecture Ralf Westphal - Anyone use it also? Pin
Ralf Peine 202329-Nov-23 4:14
Ralf Peine 202329-Nov-23 4:14 
GeneralRe: IODA - Architecture Ralf Westphal - Anyone use it also? Pin
Mircea Neacsu29-Nov-23 10:47
Mircea Neacsu29-Nov-23 10:47 
GeneralRe: IODA - Architecture Ralf Westphal - Anyone use it also? Pin
Ralf Peine 202329-Nov-23 21:39
Ralf Peine 202329-Nov-23 21:39 
GeneralRe: IODA - Architecture Ralf Westphal - Anyone use it also? Pin
jschell30-Nov-23 6:12
jschell30-Nov-23 6:12 
GeneralRe: IODA - Architecture Ralf Westphal - Anyone use it also? Pin
Gerry Schmitz30-Nov-23 16:20
mveGerry Schmitz30-Nov-23 16:20 
GeneralRe: IODA - Architecture Ralf Westphal - Anyone use it also? Pin
Ralf Peine 202330-Nov-23 20:42
Ralf Peine 202330-Nov-23 20:42 
GeneralRe: IODA - Architecture Ralf Westphal - Anyone use it also? Pin
Pete O'Hanlon3-Dec-23 20:35
mvePete O'Hanlon3-Dec-23 20:35 
QuestionValidate Data Format Pin
Kevin Marois15-Nov-23 13:05
professionalKevin Marois15-Nov-23 13:05 
AnswerRe: Validate Data Format Pin
Gerry Schmitz15-Nov-23 14:21
mveGerry Schmitz15-Nov-23 14:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.