generated from cloudoperators/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
853 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# ADR-<number>-<name> | ||
|
||
## Decision Contributors | ||
|
||
- Name1 | ||
- ... | ||
|
||
## Status | ||
|
||
- Proposed | Accepted | ||
|
||
## Context and Problem Statement | ||
|
||
High-level context and problem description. | ||
|
||
## Related Decision Records | ||
|
||
Reference related ADRs here if any. | ||
|
||
## Decision Drivers | ||
|
||
Outline main motivations for a solution in bullet points. | ||
|
||
Example: | ||
* Increase transparency | ||
A main driver is to ensure clear visibility of ... | ||
|
||
|
||
* Ease of use | ||
The solution should be easy to use .. | ||
|
||
## Decision | ||
|
||
Describe the decision and potential implications. | ||
|
||
--- | ||
|
||
## Evaluated options, technical details, etc. | ||
|
||
If relevant, outline the considered options, their pros- and cons, technical details, etc. hereinafter. |
187 changes: 187 additions & 0 deletions
187
...-decision-records/Greenhouse-ADR-1-logical_authorization_concept_for_plugins.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,187 @@ | ||
# ADR-1 Logical Authorization Concept for Greenhouse Plugins | ||
|
||
## Decision Contributors | ||
|
||
* Fabian Ruff | ||
* Esther Schmitz | ||
* Arno Uhlig | ||
* Uwe Mayer | ||
* David Rochow | ||
|
||
## Status | ||
|
||
- Preliminary decision taken | ||
|
||
## Context and Problem Statement | ||
|
||
Greenhouse is a Platform that aims to aggregate a vaierity of Applications into a single Platform using a Plugin Concept that allows Applications to be integrated into Greenhouse while beeing maintained and developed in a distributed manner. | ||
|
||
Furthermore it intentionally does not support multi tenancy across Plugin Instances to enable segregation between tennants and make the Platform usable by totally unrelated LoB's. | ||
|
||
While the Authorization concept for the Platform itself is clear, and rather simple, with Plugin Architecture of the Platform comes a challange in respect to the Authorization Concept for those and the unerlying architecture and constraints. | ||
|
||
This Decision record is about the Authorization Concept on a logical level to decide how permissions are mapped within Greenhouse. | ||
|
||
## Decision Drivers | ||
|
||
* Transparency: | ||
* Clear visibility about who has access to which Plugins within a Greenhouse Organization: | ||
* without the need to know internals about the Plugin | ||
* within Greenhouse --> no need to view Source Code, Deployed Configuration, Pipeline etc. | ||
* Open for Adoption: | ||
* It should not block applications to get ported to Greenhouse Plugins | ||
* It should follow industry standards as good as possible | ||
* It should enable support of other OIDC Providers then CCloud to be used | ||
* Open to Automation: | ||
* Potential capability of automation and simplification in regards to CAM Profile Management | ||
* Potential capability for automated integration of Plugin Instance Backends to central Greenhouse configuration | ||
* Standardization: | ||
* Supports standardization and harmonization of Role Concepts | ||
* Ease of Use: | ||
* It should be as easy as possible for end users to manage the access to Plugins | ||
|
||
* Avoidance of compliance implications: | ||
* Do not re-introduce already fullfilled compliance requirements (by CAM) such as: | ||
* Approval Processes | ||
* Role Ownerships | ||
* Automatic Access Revocation | ||
* Time constrained Role assignements | ||
|
||
|
||
## Considered Options | ||
|
||
* Permission Mapping via Teams with Plugin provided Access levels | ||
* Permission Mapping via Teams with predefined set of Access Levels | ||
* Permission Mapping via Org Wide Roles | ||
* Permission Mapping via Greenhouse Roles | ||
* No permission mapping | ||
|
||
|
||
## Decision Outcome | ||
|
||
We decided to approach the situation with a phased approach. And in the first Phase of Greenhouse we go with: | ||
|
||
* No permission mapping | ||
|
||
Main drivers for this decision have been: | ||
* The first plugins that are about to get integrated do not require any permission model/authorization concept for the Plugins itself. | ||
* The capability of auto-creating roles & access leves through Greenhouse on CAM is considered an advanced feature not planned for the initial phase. | ||
|
||
This is not considered a final decision and rather as an intermediate step. The final decision about one of the described approaches is going to happen in future and documented in a seperate ADR. | ||
|
||
### Consequences | ||
|
||
**Good** | ||
* Smaller implementation effort | ||
* We do not shoot for a solution of a problem that we right now do not have | ||
* We can concetrate on core features that are required for the MVP | ||
|
||
**Bad** | ||
* Does most likely not work as a final solution | ||
* Worst overall ratings in terms of decision drivers | ||
* Everything we build need to consider the potential approaches described in this document, to not create blockers for any of the potential final solutions | ||
|
||
## Evaluation of Options | ||
|
||
### Permission Mapping via Teams with Plugin provided Access levels | ||
|
||
![](./assets/df757ef6-b316-4dec-b6de-a0ed0e5716a5.png) | ||
|
||
In this solution the Access to a Plugin is granted based on 4 Factors: | ||
|
||
* The user is member of a OIDC Group | ||
* The respective Group is mapped to a Team within the Team Configuration | ||
* The Plugin is mapped to the Team | ||
* The permission which the Team gives to the Plugin is set within the Plugin to Team Map, where the Plugin does provide the permission levels. | ||
|
||
|
||
| Decision Driver | Rating | Reason | | ||
| -------- | -------- | -------- | | ||
| Transparency | +++ | * Gives full overview who has access to a Plugin within Greenhouse, including access levels | | ||
| Open for Adoption | +++ | Allows Plugins to use as many roles as they want, and as they are on a existing app already | | ||
| Open for Automation | +++ | We could integrate in future CAM profile and Access Level creation | | ||
| Standardization | --- | Giving Plugins the full flexibility of choosing any amount of Roles they want and name them how they want discourages standardization and harmonization | | ||
| Ease of Use | -- | If a plugin wants to use multiple Roles the Org Admin has to be aware of those and they are not ensured to be standardized therefore a assignment would be probably not intuitive and would require the Org Admin to read the Permission Level descriptions. | | ||
| Avoidance of compliance implications | +++ | The actuall access provisioning is still done via CAM inlcuding all the Compliance related processes | | ||
|
||
|
||
|
||
|
||
### Permission Mapping via Teams with predefined set of Access Levels | ||
|
||
![](./assets/9d6e6c65-1229-4aba-ab8f-a732f3e68e68.png) | ||
|
||
In this solution the Access to a Plugin is granted based on 4 Factors: | ||
|
||
* The user is member of a OIDC Group | ||
* The respective Group is mapped to a Team within the Team Configuration | ||
* The Plugin is mapped to the Team | ||
* The permission which the Team gives to the Plugin is set within the Plugin to Team Map, where you can select from a default set which are (open to change): | ||
* Admin | ||
* User | ||
* Viewer | ||
|
||
| Decision Driver | Rating | Reason | | ||
| -------- | -------- | -------- | | ||
| Transparency | +++ | Gives full overview who has access to a Plugin within Greenhouse | | ||
| Open for Adoption | ++ | Predefined set of (e.g. 3 Access Levels) can catch 99% of use cases for role segregation | | ||
| Open for Automation | +++ | We could integrate in future CAM profile and Access Level creation | | ||
| Standardization | +++ | We can enforce a clear set of Roles to be used on Plugins | | ||
| Ease of Use | o | Whole Permission Configuration is configured on a single place (within Greenhouse), the ability to select different access levels comes with additional configurations steps though | | ||
| Avoidance of compliance implications | +++ | The actuall access provisioning is still done via CAM inlcuding all the Compliance related processes | | ||
|
||
### Permission Mapping via Org Wide Roles | ||
|
||
![](./assets/0b91d753-b862-4e0c-b43e-e87f6fe852ee.png) | ||
|
||
This Solution would grant access to a Plugin based on 2 Factors: | ||
- User is Member of OIDC Group | ||
- The User is mapped to one of the 3 pre-defined Organization Roles | ||
|
||
The main difference here is that we seperate Teams from Role assignments. | ||
|
||
| Decision Driver | Rating | Reason | | ||
| -------- | -------- | -------- | | ||
| Transparency | +++ | Gives full overview who has access to a Plugin within Greenhouse | | ||
| Open for Adoption | + | Predefined set of (e.g. 3 Access Levels) can catch 99% of use cases for role segregation. Additionally we can not segregate access to individual plugins which could potentially be a problem | | ||
| Open for Automation | +++ | We could integrate in future CAM profile and Access Level creation | | ||
| Standardization | +++ | We can enforce a clear set of Roles to be used on Plugins | | ||
| Ease of Use | + | Decoupling of Teams and Roles could lead to double effort in Management. The difference between teams and roles could be unintuitive and misleading. | | ||
| Avoidance of compliance implications | +++ | The actuall access provisioning is still done via CAM inlcuding all the Compliance related processes | | ||
|
||
### Permission Mapping via Greenhouse Roles | ||
|
||
![](./assets/e23bbf83-02b3-44f2-9f5d-e1cd2f9b9dea.png) | ||
|
||
In this Solution we have 2 Factors that grant access to a Plugin: | ||
- The user is member holds any Greenhouse Role (Greenhouse Admin, Organization Admin, Organization Member) | ||
- The Plugin is configured for the Organization the user is part of. | ||
|
||
|
||
| Decision Driver | Rating | Reason | | ||
| -------- | -------- | -------- | | ||
| Transparency | + | We would implicitly know who has access by looking who has which role on Greenhouse. As greenhouse membership is defined through teams the member derivation is actually automtically mapped to multiple teams | | ||
| Open for Adoption | - | Only allows 2 Roles to be used by Plugins. We can not segregate access to individual plugins which could potentially be a problem.| We could integrate in future CAM profile and Access Level creation. Would lead potentially to a lot of profiles on CAM with the same access level. | | ||
| Open for Automation | ++ | We could integrate in future CAM profile and Access Level creation. Would lead potentially to a lot of profiles on CAM with the same access levels | | ||
| Standardization | ++ | We would encourage that we have only 2 Roles on a organization to be applied to all Plugins | | ||
| Ease of Use | ++ | No additional burden of permission management except for Org Admins | | ||
| Avoidance of compliance implications | +++ | The actuall access provisioning is still done via CAM inlcuding all the Compliance related processes | | ||
|
||
### No permission mapping | ||
|
||
![](./assets/b36ac896-60c0-4074-9f20-7e6c554f4ace.png) | ||
|
||
In this Solution we do not have any Authorization check for Plugins. Meaning if you are member of a Organization you are able to Access all Plugins and the Plugins have no officially supported possibility to regulate fine grained access | ||
|
||
| Decision Driver | Rating | Reason | | ||
| -------- | -------- | -------- | | ||
| Transparency | - | We would implicitly know who has access by looking who has which role on Greenhouse. As greenhouse membership is defined through teams the member derivation is actually automtically mapped to multiple teams. This could lead to roles beeing used in the background | | ||
| Open for Adoption | -- | Encourages Plugins to use only 1 Role or manage permissions in addition outside of Greenhouse | | ||
| Open for Automation | o | Automation of Role Provisioning would be probably unnecessarry from Greenhouse perspective | | ||
| Standardization | o | We would basically encourage to use no roles in Plugins | | ||
| Ease of Use | +++ | No additional burden of permission management except for Org Admins | | ||
| Avoidance of compliance implications | +++ | The actuall access provisioning is still done via CAM inlcuding all the Compliance related processes | | ||
|
||
## Related Decision Records | ||
|
||
ADR-2 Technical Implementation of Authorization Concept for Greenhouse Plugins |
120 changes: 120 additions & 0 deletions
120
...reenhouse-ADR-2-technical_implementation_of_access_authorization_for_plugins.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
# ADR-2 Technical Implementation of access Authorization for Greenhouse Plugins | ||
|
||
## Decision Contributors | ||
|
||
* Fabian Ruff | ||
* Esther Schmitz | ||
* Arno Uhlig | ||
* Uwe Mayer | ||
* David Rochow | ||
|
||
## Status | ||
|
||
- PoC for selected solution running | ||
|
||
## Context and Problem Statement | ||
|
||
Greenhouse is a Platform that aims to aggregate a vaierity of Applications into a single Platform using a Plugin Concept that allows Applications to be integrated into Greenhouse while beeing maintained and developed in a distributed manner. | ||
|
||
Furthermore, it intentionally does not support multi tenancy across Plugin Instances to enable segregation between tennants and make the Platform usable by totally unrelated LoB's. | ||
|
||
This Decision record is about the technical solution how we do Authorizations for Plugins. | ||
|
||
## Decision Drivers | ||
|
||
* Enables support of multiple Identitiy Providers | ||
* To allow Organizations to use their own IdP | ||
* Open for adoption | ||
* allows also Plugin Backends to be used that are not developed internally | ||
* Support of Role Mapping within Greenhouse | ||
* Supports the usage of any of the considered solutions of ADR-1 | ||
* Supports running Greenhouse components in a single Kubernetes Cluster | ||
* On kubernetes you can only configure one OIDC Provider | ||
* Implementation effort | ||
* Maintenance effort | ||
|
||
|
||
## Considered Options | ||
|
||
* Team Sync during Deployment | ||
* Team Sync by Plugin during runtime | ||
* Usage of internal IdP for Group Ownership Rewriting based on Greenhouse mappings | ||
|
||
|
||
## Decision Outcome | ||
|
||
We decided to go with: | ||
* Usage of internal IdP for Group Ownership Rewriting based on Greenhouse mappings | ||
|
||
|
||
### Consequences | ||
|
||
**Good** | ||
* Overall best decision driver ratings | ||
* Most flexible solution | ||
* Does not require additional syncing of mappings between Greenhouse and Plugins | ||
* We are in control of the OIDC Provider that is used for Authorization of Requests on Plugins | ||
* The authentication is still happening on the external Identitiy Provider | ||
* Only of the Solutions that solves the Kubernetes problem(just supports one OIDC Procider) by design | ||
|
||
**Bad** | ||
* Introduction of a additional Open Source Project | ||
* In case we need to support Plugin Backends outside of the Converged Cloud, we would need to somewhow expose the internal OIDC Provider or build an additional proxy solution. | ||
* This solution is expected to require the most implementation and maintenance effort | ||
|
||
## Evaluation of Options | ||
|
||
### Team Sync during Deployment | ||
|
||
![](./assets/a0b55e95-8ded-47bb-96ce-67729b3f123c.png) | ||
|
||
This Solution is using an external OIDC Provider. Within Greenhouse, mappings from OIDC Groups to Plugin Permissions are done and the respective mappings are distributed to Plugins during the deployment of the Plugins. | ||
|
||
This means any change in the mapping of a Team/Role would require a re-deployment of the Plugins to happen. | ||
|
||
|
||
| Decision Driver | Rating | Reason | | ||
| -------- | -------- | -------- | | ||
| Enables support of multiple Identitiy Providers | + | possible | | ||
| Open for adoption | + | Would use 100% standard OIDC for Authorization on Plugin Side. Organizations would be forced to use a OIDC Provider though. | | ||
| Support of Role Mapping within Greenhouse | + | supports with variations in the details all options | | ||
| Supports running Greenhouse components in a single Kubernetes Cluster | - | unclear, how this would be solved | | ||
| Implementation effort | o | | | ||
| Maintenenace effort | - | The required redeployment of components| | ||
|
||
### Team Sync by Plugin during runtime | ||
|
||
![](./assets/c652bfd8-2552-4eea-9e1a-89ee1a078e69.png) | ||
|
||
In this Solution we use a external OIDC provider as well. The mapping of Access Levels for Plugins is also done within Greenhouse. The difference is that the mapping of OIDC Groups to permissions is fetched from the Plugin at runtime from Greenhouse using a API endpoint implemented for this purpose. | ||
|
||
| Decision Driver | Rating | Reason | | ||
| -------- | -------- | -------- | | ||
| Enables support of multiple Identitiy Providers | + | possible | | ||
| Open for adoption | - | Would use for the Authorization a custom implmentation through retrieving the mapping | | ||
| Support of Role Mapping within Greenhouse | + | supports with variations in the implementation details all options | | ||
| Supports running Greenhouse components in a single Kubernetes Cluster | - | unclear how this would be solved | | ||
| Implementation effort | - | We would need to create an additional API Endpoint | | ||
| Maintenenace effort | o | Neutral | | ||
|
||
### Usage of internal IdP for Group Ownership Rewriting based on Greenhouse mappings | ||
|
||
![](./assets/7f365a58-5c96-4648-8c15-d53b32e5b3f7.png) | ||
|
||
This Solution does use a federated IdP that handles the authorization. The Idea here is to us any external Authentication Provider (which could also be something else then a OIDC provider) and use an internal OIDC Provider that is used for the Plugins and Kubernetes. Within the internal OIDC Provider we can then create the Group to Role mappings for plugins before issuing the a Token. | ||
This way the Token would include all custom Permission mappings that we configure in Greenhouse using a standardized approach. This also means that Plugins can either advertise theire expected naming schema with theire Plugin Schema or use a default pre-defined schema that all Greenhouse Plugins are using. | ||
|
||
| Decision Driver | Rating | Reason | | ||
| -------- | -------- | -------- | | ||
| Enables support of multiple Identitiy Providers | +++ | Even allows usage of other Protocols than OIDC | | ||
| Open for adoption | +++ | Openness for different Identity providers enables Organizations to have a very flexible choice | | ||
| Support of Role Mapping within Greenhouse | + | Supports all the variants | | ||
| Supports running Greenhouse components in a single Kubernetes Cluster | +++ | We would internally use only our internal OIDC Provider for issuing tokens which would solve the problem that Kubernetes Clusters only support one OIDC Procider | | ||
| Implementation effort | - | Probably more effort to implement than other solutions| | ||
| Maintenenace effort | - | Probably more maintenance effort than the other solutions especially due to the additional open source dependencies introduced | | ||
|
||
## Related Decision Records | ||
|
||
ADR-1 Logical Auhtorization Concept for Greenhouse Plugins | ||
|
||
|
Oops, something went wrong.