-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Managing policies docs #1426
Merged
JoaoMartins51
merged 6 commits into
main
from
sc-23363-move-user-management-role-management-and
Nov 6, 2024
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
373c6f6
adding managing policies
JoaoMartins51 00d1eff
Update content/docs/details/managing-policies/index.md
JoaoMartins51 ebe996b
Update content/docs/details/managing-policies/index.md
JoaoMartins51 bc86286
requested changes
JoaoMartins51 ab7aaa9
remove warning
JoaoMartins51 7ff15f4
change disclaimer to policies
JoaoMartins51 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,42 @@ | ||
--- | ||
title: Policies Management | ||
publishedDate: '2024-11-05T21:00:00.0Z' | ||
description: How to configure and manage policies in Roadie for access control. | ||
--- | ||
|
||
## Introduction | ||
|
||
**This feature is currently in the process of being rolled out. If you want access, please contact our support or sales teams.** | ||
|
||
In Roadie, **policies** are integral components of the permissions framework, governing access control within the platform. They define the rules and conditions under which users can perform specific actions on various resources, such as services, components, or documentation. | ||
|
||
**Key aspects of policies:** | ||
|
||
- **Authorization Decisions:** Policies determine whether a user is permitted to execute a particular action. For instance, a policy might allow only the owner of a service to delete it from the catalog. For more on policy definitions, refer to the [Backstage documentation](https://backstage.io/docs/permissions/writing-a-policy/). | ||
- **Conditional Logic:** Policies can incorporate complex conditions, such as verifying if a user belongs to a specific group or possesses certain attributes, to make nuanced authorization decisions. Details are available in the [Backstage documentation on custom rules](https://backstage.io/docs/permissions/custom-rules/). | ||
- **Customization:** Administrators have the flexibility to craft custom policies tailored to their organization's unique requirements, ensuring that access controls align with internal processes and security standards. Read more in the [Backstage custom rules documentation](https://backstage.io/docs/permissions/custom-rules/). | ||
|
||
By implementing policies, Roadie ensures that access to resources is managed effectively, enhancing security and maintaining the integrity of the development environment. | ||
|
||
To configure this in Roadie we provide a UI for **Policies Management** and you can access it at: `https://<tenant name>.roadie.so/administration/settings/policies`. | ||
|
||
Currently, a set of permissions is available from the upstream Backstage project, with the option to create and validate new permissions. | ||
|
||
- Built-in policies cannot be modified or removed, but they can be added to or removed from roles. | ||
- Each policy can be configured with an effect to either **ALLOW** or **DENY** the specified permissions and the conditions set for the policy. | ||
|
||
### Conditions for Configurable Permissions | ||
|
||
Some permissions allow configuration with a set of conditions, particularly those starting with `catalog.entity.`. These conditions enable access customization based on defined rules. Currently, these are the available rules: | ||
|
||
| Rule Name | Parameters | Description | | ||
| --------------------- | --------------------- | --------------------------------------------------------------------------- | | ||
| isEntityOwner | None | Checks if the user is the owner of the entity. | | ||
| isUserEntity | None | Checks if the entity represents the current user. | | ||
| hasOwnEntityName | None | Validates that the entity has its own unique name. | | ||
| hasOwnEntityNamespace | None | Confirms that the entity has its own designated namespace. | | ||
| hasEntityKind | `kinds` | Checks if the entity is of a specific kind (e.g., Component, API). | | ||
| hasSpec | `key`, `value` | Verifies the entity’s specification includes a specific key-value pair. | | ||
| hasMetadata | `key`, `value` | Ensures the entity metadata contains a specific key-value pair. | | ||
| hasLabel | `label` | Checks if the entity includes a specific label in its metadata. | | ||
| hasAnnotation | `annotation`, `value` | Validates the presence of a particular annotation in the entity’s metadata. | |
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this to not be written from Backstage point of view but from Roadie POV and referring to and on top of Backstage permissions/policies.