blokje5 / iam-authorize Goto Github PK
View Code? Open in Web Editor NEWIAM Authorization Component
IAM Authorization Component
As the IAM-Authorize server has the concept of namespaces explicitly defined, they should be validated on policy creation and on authorization attempts.
Invalid policies with a non-existent namespace should return an error when a user attempts to create the policy.
Any authorization attempts with an invalid namespace should be blocked. A log message should be used to report the issues, but the error should be kept generic (Forbidden).
There is no PUT endpoint for policies. The PUT endpoint should do the following:
In order to determine whether a user is authorized to perform an action, we need to evaluate the policies that are loaded in the IAM system. An authorization is evaluated on a tuple containing the user, the action and the object the action is attempted on: <user, action, object>
.
For the user we will fetch all associated policies. Each of those policies contain statements that determine whether a certain action is allowed or not. The engine should implicitly deny any attempts. Only if there is an explicit allow will the authorization pass.
If there is an explicit deny it will override an explicit allow.
Policy Structure:
{
"version": "v1",
"statements": [
{
"actions": ["iam:CreatePolicy"],
"resources": "*"
}
]
}
As of yet there is no mechanism to bind a user to a policy. This is needed in order to find which policies apply to which user.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.