Skip to content
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

feat: add approvals docs #276

Merged
merged 3 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 92 additions & 0 deletions cloud/features/approval-workflows.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
---

Check warning on line 1 in cloud/features/approval-workflows.mdx

View workflow job for this annotation

GitHub Actions / Vale

[vale] reported by reviewdog 🐶 [Openly.Readability] Grade level (12.56) too high! Raw Output: {"message": "[Openly.Readability] Grade level (12.56) too high!", "location": {"path": "cloud/features/approval-workflows.mdx", "range": {"start": {"line": 1, "column": 1}}}, "severity": "WARNING"}
title: Approval Workflows
description: Learn about the built-in approval workflows available with Flipt Cloud
mode: "wide"
---

Flipt Cloud provides a built-in approval workflow system that allows you to easily manage and track the proposal and approval process for your flags, ensuring that they are approved by the appropriate stakeholders before they are released to production.

Check warning on line 7 in cloud/features/approval-workflows.mdx

View workflow job for this annotation

GitHub Actions / Vale

[vale] reported by reviewdog 🐶 [Openly.SentenceLength] Write short sentences (less than 25 words). Raw Output: {"message": "[Openly.SentenceLength] Write short sentences (less than 25 words).", "location": {"path": "cloud/features/approval-workflows.mdx", "range": {"start": {"line": 7, "column": 1}}}, "severity": "WARNING"}

Check warning on line 7 in cloud/features/approval-workflows.mdx

View workflow job for this annotation

GitHub Actions / Vale

[vale] reported by reviewdog 🐶 [Microsoft.Adverbs] Remove 'easily' if it's not important to the meaning of the statement. Raw Output: {"message": "[Microsoft.Adverbs] Remove 'easily' if it's not important to the meaning of the statement.", "location": {"path": "cloud/features/approval-workflows.mdx", "range": {"start": {"line": 7, "column": 77}}}, "severity": "WARNING"}

Check warning on line 7 in cloud/features/approval-workflows.mdx

View workflow job for this annotation

GitHub Actions / Vale

[vale] reported by reviewdog 🐶 [Microsoft.Contractions] Use 'they're' instead of 'they are'. Raw Output: {"message": "[Microsoft.Contractions] Use 'they're' instead of 'they are'.", "location": {"path": "cloud/features/approval-workflows.mdx", "range": {"start": {"line": 7, "column": 165}}}, "severity": "WARNING"}

Check warning on line 7 in cloud/features/approval-workflows.mdx

View workflow job for this annotation

GitHub Actions / Vale

[vale] reported by reviewdog 🐶 [Microsoft.Contractions] Use 'they're' instead of 'they are'. Raw Output: {"message": "[Microsoft.Contractions] Use 'they're' instead of 'they are'.", "location": {"path": "cloud/features/approval-workflows.mdx", "range": {"start": {"line": 7, "column": 222}}}, "severity": "WARNING"}

![Proposal Merged](/images/cloud/features/approval/proposal-merged.png)

## Overview

Flipt Cloud's approval workflow system is designed to be simple to use and understand. It is built on top of Flipt Cloud's [Git backed storage](/cloud/features/git-backed-storage) and integrates natively with your existing GitHub Pull Request (PR) process.

Check warning on line 13 in cloud/features/approval-workflows.mdx

View workflow job for this annotation

GitHub Actions / Vale

[vale] reported by reviewdog 🐶 [Microsoft.Contractions] Use 'it's' instead of 'It is'. Raw Output: {"message": "[Microsoft.Contractions] Use 'it's' instead of 'It is'.", "location": {"path": "cloud/features/approval-workflows.mdx", "range": {"start": {"line": 13, "column": 88}}}, "severity": "WARNING"}

Many teams have existing processes for managing PRs and ensuring code is reviewed by the appropriate stakeholders. We believe that feature flags should be no different and should follow the same process.

Check warning on line 15 in cloud/features/approval-workflows.mdx

View workflow job for this annotation

GitHub Actions / Vale

[vale] reported by reviewdog 🐶 [Microsoft.We] Try to avoid using first-person plural like 'We'. Raw Output: {"message": "[Microsoft.We] Try to avoid using first-person plural like 'We'.", "location": {"path": "cloud/features/approval-workflows.mdx", "range": {"start": {"line": 15, "column": 116}}}, "severity": "WARNING"}

Organizations may require that all flag changes are reviewed and approved by a specific set of approvers before they are released to production. This could be a team lead, tech lead, or even a cross functional team.

Check failure on line 17 in cloud/features/approval-workflows.mdx

View workflow job for this annotation

GitHub Actions / Vale

[vale] reported by reviewdog 🐶 [Flipt.Spelling] Check the spelling of 'approvers'. If the spelling is correct, add this word to the spelling exception list. Raw Output: {"message": "[Flipt.Spelling] Check the spelling of 'approvers'. If the spelling is correct, add this word to the spelling exception list.", "location": {"path": "cloud/features/approval-workflows.mdx", "range": {"start": {"line": 17, "column": 96}}}, "severity": "ERROR"}

Check warning on line 17 in cloud/features/approval-workflows.mdx

View workflow job for this annotation

GitHub Actions / Vale

[vale] reported by reviewdog 🐶 [Microsoft.Contractions] Use 'they're' instead of 'they are'. Raw Output: {"message": "[Microsoft.Contractions] Use 'they're' instead of 'they are'.", "location": {"path": "cloud/features/approval-workflows.mdx", "range": {"start": {"line": 17, "column": 113}}}, "severity": "WARNING"}

Check warning on line 17 in cloud/features/approval-workflows.mdx

View workflow job for this annotation

GitHub Actions / Vale

[vale] reported by reviewdog 🐶 [Openly.Hedging] Consider removing 'could' Raw Output: {"message": "[Openly.Hedging] Consider removing 'could'", "location": {"path": "cloud/features/approval-workflows.mdx", "range": {"start": {"line": 17, "column": 151}}}, "severity": "WARNING"}

The approval workflow system is designed to fit into this process, and to make it as easy as possible to configure and manage.

<Info>
Proposals and approvals functionality is only available on our Team plan and

Check warning on line 22 in cloud/features/approval-workflows.mdx

View workflow job for this annotation

GitHub Actions / Vale

[vale] reported by reviewdog 🐶 [Microsoft.We] Try to avoid using first-person plural like 'our'. Raw Output: {"message": "[Microsoft.We] Try to avoid using first-person plural like 'our'.", "location": {"path": "cloud/features/approval-workflows.mdx", "range": {"start": {"line": 22, "column": 62}}}, "severity": "WARNING"}
above. See our [pricing page](https://www.flipt.io/pricing) for more
information.
</Info>

## Protected Environments

When you create an environment in Flipt Cloud, you can choose to protect the environment. This will require that all flag and other configuration changes go through a review and approval process before they are served from the environment.

![Protected Environment](/images/cloud/features/approval/protected-environment.png)

In our Git backed storage model, all environments have a default branch. If your chose an existing repository and branch when creating the environment and that branch is protected, the environment itself will be protected by default.
markphelps marked this conversation as resolved.
Show resolved Hide resolved

<Note>
Many teams protect their `main` branch, but you can select a different branch
when creating the environment.
</Note>

Protected environments are read-only and can only be changed by going through the proposal/approval process. If you are in a protected environment, you will see the 'Protected' badge in the top right of the environment.

![Protected Environment Badge](/images/cloud/features/approval/protected-badge.png)

## Approval Process

To make a change for a protected environment, you will need to put the environment into 'editing mode' by clicking on the 'Protected' badge. This will prompt a confirmation dialog asking you to confirm that you want to create a proposal branch to make your changes.

![Create Branch Dialog](/images/cloud/features/approval/create-branch-dialog.png)

Once you click 'Create Branch', you will be redirected to a new environment that is no longer protected. This environment is a full read/write replica of the protected environment, but any changes you make will not be deployed to the protected environment until they are approved and merged.

![Unprotected Environment](/images/cloud/features/approval/unprotected-environment.png)

You can make changes to the unprotected environment, and they will be captured in the proposal branch. Once you are ready to deploy your changes, you can create a pull request into the protected environment.

## Creating a Proposal

After making the changes you want to propose, you can create a proposal by clicking on the 'Propose' button in the top right of the screen. This will again prompt a confirmation dialog asking you to confirm that you want to create a new pull request in your repository and add it to the approval workflow.

![Create Proposal Dialog](/images/cloud/features/approval/create-proposal-dialog.png)

Once you click 'Create Proposal', you will see a badge in the top right of the screen indicating that a proposal is pending, with a link to the proposal pull request.

![Proposal Pending Badge](/images/cloud/features/approval/proposal-pending.png)

Clicking on the badge will take you to the proposal pull request.

![Proposal Pull Request](/images/cloud/features/approval/proposal-pull-request.png)

## Approve and Merge

Your team can review the proposal and approve it by clicking on the 'Approve' button in the pull request. Once the proposal is approved, you will be able to merge the pull request into the protected environment.

![Approve Pull Request](/images/cloud/features/approval/approve-pull-request.png)

Once the pull request is merged, the changes will be deployed to the protected environment.

![Deployed Changes](/images/cloud/features/approval/deployed-changes.png)

<Tip>
You can leverage GitHub's existing [Code
Owners](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners)
feature to automatically request reviews from specific teams or individuals
when a proposal is created. This is a great way to get the approvers you need

Check failure on line 84 in cloud/features/approval-workflows.mdx

View workflow job for this annotation

GitHub Actions / Vale

[vale] reported by reviewdog 🐶 [Flipt.Spelling] Check the spelling of 'approvers'. If the spelling is correct, add this word to the spelling exception list. Raw Output: {"message": "[Flipt.Spelling] Check the spelling of 'approvers'. If the spelling is correct, add this word to the spelling exception list.", "location": {"path": "cloud/features/approval-workflows.mdx", "range": {"start": {"line": 84, "column": 62}}}, "severity": "ERROR"}
to review the proposal and approve it.
markphelps marked this conversation as resolved.
Show resolved Hide resolved
</Tip>

## Evaluation

Proposal environments are full-fledged environments and can be used for evaluation just like any other environment. This means that you can use the same SDKs, API keys, and other mechanisms to evaluate your flags in the proposal environment as you would in any other environment.

You can simply change the URL of your evaluation requests to point to the proposal environment and you will be able to see the changes you made for evaluation.
1 change: 1 addition & 0 deletions cloud/features/authentication.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Authentication
description: Learn about the authentication options available with Flipt Cloud
mode: "wide"
---

Flipt Cloud supports multiple authentication methods, including email/password, Google, and GitHub. You can also use [Single Sign-On (SSO)](#single-sign-on) with providers like Okta, Microsoft Active Directory, and Google Workspace.
Expand Down
7 changes: 7 additions & 0 deletions cloud/features/rbac.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Role Based Access Control
description: Learn about the role-based access control options available with Flipt Cloud
mode: "wide"
---

Role-based access control allows you to define custom roles and permissions for your team members.
Expand All @@ -9,6 +10,12 @@ Role-based access control allows you to define custom roles and permissions for

You can create roles with specific permissions, such as read-only access to feature flags or the ability to create new flags. This gives you fine-grained control over who can do what in Flipt Cloud and your Flipt instances.

<Info>
Role-based access control functionality is only available on our Team plan and
above. See our [pricing page](https://www.flipt.io/pricing) for more
information.
</Info>

## Built-in Roles

Flipt Cloud comes with several built-in roles that you can assign to your team members:
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@
"pages": [
"cloud/features/authentication",
"cloud/features/git-backed-storage",
"cloud/features/approval-workflows",
"cloud/features/rbac",
"cloud/features/user-management"
]
Expand Down
Loading