Questions tagged [access-control]

Access control is the process of limiting the access of ability of users or services to certain resources.

Access control is the process of limiting the access of ability of users or services to certain resources.

Historically, there have been several access control models:

  • discretionary access control (DAC): In computer security, discretionary access control (DAC) is a type of access control defined by the Trusted Computer System Evaluation Criteria "as a means of restricting access to objects based on the identity of subjects and/or groups to which they belong. (source: Wikipedia)
  • mandatory access control (MAC): The mandatory part of the definition indicates that enforcement of controls is performed by administrators and the operating system. This is in contrast to the default security mechanism of Discretionary Access Control (DAC) where enforcement is left to the discretion of users.(source: wikipedia)
  • Role-based access control (RBAC): Role-based access control (RBAC) is a method of regulating access to computer or network resources based on the roles of individual users within an enterprise. RBAC was formally defined by NIST, the National Institute of Standards and Technology. More can be found on their website.
  • Attribute-based access control (ABAC): ABAC extends the way RBAC works. Instead of just focusing on user identities, roles, and groups, ABAC defines attributes (key-value pairs) that can be used to describe users, resources, actions, and context. With ABAC, it is possible to define finer-grained access policies. A common language used to define ABAC is XACML. NIST is currently formalizing ABAC. See their website for more information.
1370 questions
-1
votes
2 answers

Differing access on a member of a class according to the context

Let's say I have a class MainApp using methods of a dynamic library via an interface FrontEnd FrontEnd uses internally instances of a class Data (contained in a class BackEnd) This class Data only contains a member and its accessor, no public method…
codablank
  • 181
  • 2
  • 9
-1
votes
2 answers

I have problems with Post method in my CORS?

I am developing an app with my own sever, i configured my cors with to by client-side host only. Everything seems to be fine i can request data from my database using the GET, but whenever my trying to POST or create, I always have "Response to…
Cwei0
  • 5
  • 2
-1
votes
2 answers

Is calling a private function from a public function good coding practice?

I'm wondering if calling a private function from a public function to achieve a cleaner syntax could cause any type of problems. #include class tree{ private: struct node { int data; int counter = 1; node*…
-1
votes
1 answer

What is the preferred way to expose only data from API that are relevant/allowed?

I'm trying to deal with this problem while designing API backend I've been working on. Example scenario: I have a REST server that has multiple objects of Product: { Name: "SomethingSomething", SellPrice: 20, BuyPrice: 15 } When a request to…
Gork
  • 1
  • 1
-1
votes
2 answers

Accessing private members of surrounding class

I have two classes like this: #include class A { public: class B { public: void printX(void) const { std::cout << A::x << std::endl; } }; private: int x; }; Obviously this…
Fayeure
  • 1,181
  • 9
  • 21
-1
votes
2 answers

When I deploy my website, client post/get requests blocked by CORS

Using NodeJS as backend and React as frontend. Frontend uses axios to do post/get requests. Everything is working well in development with localhost:5000 as server and localhost:3000 as client. However, when I deploy my server and client to…
xmuhs
  • 96
  • 1
  • 9
-1
votes
3 answers

(GCS) Additional permissions required to view this object's metadata: Ask an object owner to grant you 'storage.objects.get' permission

When I clicked the names of the files to see the details with the access control "Fine-grained" on Cloud Storage: I could see the details: However, after changing the access control "Fine-grained" to "Uniform": I couldn't see the details of the…
-1
votes
1 answer

How to do test the access control system in Symfony 5?

I am using the new Symfony authorization system. In the security.yaml file I have set the following access restrictions. security: enable_authenticator_manager: true //.... role_hierarchy: ROLE_ADMIN: [ROLE_USER] …
webgrig
  • 49
  • 1
  • 8
-1
votes
1 answer

How to resolve CORS policy Error with 'Access-Control-Allow-Credentials' header in the response?

I'm getting following Error when I try to login locally to the site. UI is build using Angular and Type Script. Same code works fine in DEV Server and there is no issue with login. Can you please help to throw some lights and resolve this…
Partha
  • 413
  • 2
  • 5
  • 16
-1
votes
1 answer

Basic HTTP authentication with JS - Authentication blocked by CORS policy, credentials stripped from URL

I believe that there's a number of questions here that cover similar areas, however, I couldn't find a concrete answer to my problem. I am trying to programmatically (in Javascript) access an IP camera that is protected by basic HTTP authentication.…
lz129
  • 21
  • 4
-1
votes
1 answer

Symfony: how to find out the list of the different urls to which the connected user can access

I want to compose an index page presenting to the logged in user the list of resource urls which he can access according to the roles assigned to him I found a solution by parsing the security.yaml file using the Yaml component and going through the…
Eureka
  • 1,442
  • 2
  • 9
  • 7
-1
votes
1 answer

htaccess Allow Origin Multiple Domains with different Scheme

I need to allow Access-Control-Allow-Origin from the following domains: http://localhost:8080 app://MyApp This is my current .htaccess conditions that I need set for both of the above domains: Header Set Access-Control-Allow-Origin…
Neel
  • 9,352
  • 23
  • 87
  • 128
-1
votes
1 answer

symfony: granted access to everyone only to GET method in access_control on API but still get 401 unauthorised if user do not have a token

I have a project with Symfony 5.1 using Lexik JWT v2.8.0, gesdinet jwt refresh token v0.9.1 and my own entity user. I can log in with JWT and get the token, save it in a HttpOnly cookie and use it with the protected APIs successfully. I have…
Alex
  • 1,230
  • 2
  • 24
  • 46
-1
votes
1 answer

Server Side Fingerprint Comparison with Raspberry Pi

I have 3 doors that need controlled access for customers (over 1000). Currently I use RFID cards. I have 3 raspberry pies + rfid scanners installed in all 3 doors and they call my API with the rfid value and open the door upon authentication. I want…
-1
votes
2 answers

Powershell ACL AddAccessRule

i am currently trying to set permissions using PowerShell. This is my code: $Rights = [System.Security.AccessControl.FileSystemRights] "DeleteSubdirectoriesAndFiles, Write, ReadAndExecute, Synchronize" …