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

RFC: Preview Environments Implementation Details #3803

Closed
polamoros opened this issue Aug 14, 2023 · 2 comments
Closed

RFC: Preview Environments Implementation Details #3803

polamoros opened this issue Aug 14, 2023 · 2 comments
Assignees

Comments

@polamoros
Copy link
Contributor

polamoros commented Aug 14, 2023

RFC | Preview Environments Implementation Details

Introduction

Defines some of the technical implementation details for Wing Cloud Preview Environments.

GitHub App

A GitHub App will be created for the integration between GitHub and Wing Cloud (docs).

The configuration of the GitHub App will require the following steps:

Configuring permissions

The GitHub App will need specific permissions to be able to perform the required actions with repositories.

  • Repository Permissions
    • Contents - Read
      • This permission is essential for accessing the .main.w entry points within PRs.
    • Pull Requests - Read and Write
      • This permission is required to create comments containing the fly.io link.

Webhook Configuration

The GitHub App will need to subscribe to specific events through webhook URLs. The following configurations will be applied:

  • Webhook URL:
    • https://wing.cloud/api/v1/github/webhook
  • Events:

The GitHub App will be installed at the organization level. Upon installation, all PRs within the repositories accessible by the GitHub App will automatically have Preview Environments enabled.

GitHub Sign Up / Log In

The GitHub App will be used for the user sign-up and log-in processes. docs.

The login flow is defined further in the documentation, available here.

To generate a user access token, a callback URL must be added to the GitHub App's configuration:

  • Callback URL: https://wing.cloud/github/callback
  • An example about how to generate a user access token is provided here.

Storage of users

TBD

Storage of fly.io links

TBD

Storage of Environment Variables

TBD

DNS Resource

TBD

@monadabot monadabot added this to Wing Aug 14, 2023
@github-project-automation github-project-automation bot moved this to 🆕 New - not properly defined in Wing Aug 14, 2023
@polamoros polamoros changed the title RFC: Wing Cloud Dashboard website RFC: Preview Environments Implementation Details Aug 18, 2023
@ainvoner
Copy link
Contributor

ainvoner commented Oct 2, 2023

@polamoros what do you want to do with this issue?

@polamoros
Copy link
Contributor Author

@polamoros what do you want to do with this issue?

We can close it

@github-project-automation github-project-automation bot moved this from 🆕 New - not properly defined to ✅ Done in Wing Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants