Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3675934
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:02:19+00:00 2026-05-19T03:02:19+00:00

I’ve been reading about Role Based Access Control and I am trying to figure

  • 0

I’ve been reading about Role Based Access Control and I am trying to figure out how I should go about implementing the security control. In my MEF project, I have a security controller that is ultimately responsible for user validation, verifying roles, etc. etc.

Naturally, the security controller needs to be able to access a database to run validation on a user and retrieve the user’s role(s). I intend to implement classes from the System.Security.Principal namespace.

Should the security controller module have its own database where user info is maintained separate from the business data?

And, would a binary serialized file be adequate for this so long as user passwords (only the hash) are not stored in said file? I would assume, however, that for this to work, the serialized file must be accessible by multiple instances of the application…

Update
Since this is an MEF project, I have been wondering about how security should work. Here are my thoughts:

Security Controller is an Identity object itself, therefore should probably implement IIdentity and have a GenericIdentity property. SecControl should also be the GenericPrincipal…???

SecControl would also be responsible for modifying AppDomain permission sets. I don’t want any modules to have access to any resources (database, files, network shares, etc) not specifically granted by SecControl.

Not only are users authenticated, but the Modules are, too. Modules (plug-ins) will probably implement IIdentity and have GenericIdentity properties as well.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T03:02:19+00:00Added an answer on May 19, 2026 at 3:02 am

    Should the security controller module have its own database where user info is maintained separate from the business data?

    Depends on the context of your system:

    • If only the one application is using this database AND your application server/database server setup is relatively secure and access controlled already – you probably don’t need a separate database, although you’ll want to make sure that access to your user information is properly access controlled within the database.
    • If you share the database with other applications, you may want to consider having a separate storage mechanism for user/role/privilege information that you can control more carefully.

    There’s also the consideration of what you are protecting. If you are mostly trying to keep access to a dull roar and are not working with financial info, health care info, or defense info – you may be OK with a certain amount of risk in where the user information is stored. If you have a high security application, then you may even want to go so far as thinking about commecerial software products for access control (like an LDAP directory that has it’s own audit logs, server, administrative processes, etc).

    When you think about the data store, don’t limit yourself to thinking just about how the data is stored and protected. Also consider how you access the data (over an encrypted connection or in the clear?), how accesses are logged (in a high security system, verification of user credentials is an event that should be logged), how logs are protected (are they tamperproof?), and how the data is protected – not just from from scrutiny, but also from modification.

    And, would a binary serialized file be adequate for this so long as user passwords (only the hash) are not stored in said file? I would assume, however, that for this to work, the serialized file must be accessible by multiple instances of the application…

    My biggest question for that is – how is this file protected from change? Since a binary searlized file is relatively easy to parse from an application, how do you control the ability for other processes to write toe the file? The easiest attack would be to add your own high-privilege account and username/password hash and then use the fake account to crack the rest of the system. How easy would it be to do that and how easy would it be to take a set of low-privilege credentials and transform them into high-privilege?

    That’s more than just the file storage mechanism – it also means you need to have a sense of access control on your operating system and how that is managed.

    Things that may help:
    – digitally sign the file with an asymmetric key stored elsewhere, then check for tampering before using the file.
    – store the file in an account that can only be modified if you are an admin.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I am trying to loop through a bunch of documents I have to put
I'm looking for suggestions for debugging... If you view this site in Firefox or
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
That's pretty much it. I'm using Nokogiri to scrape a web page what has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.