Skip to content

Initial project and component dashboards #242

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

Merged
merged 18 commits into from
Apr 2, 2024
Merged

Conversation

sra405
Copy link
Contributor

@sra405 sra405 commented Feb 20, 2024

Introduction of an admin dashboard for viewing and configuring editor projects. The initial purpose of this dashboard is to increase visibility of built projects and their current state. It also provides an easy interface to update aspects that didn't build correctly i.e. images.

Notes

Currently this utilises a similar approach to the badge-service however auth approaches aren't aligned with editor-api using token introspection only to get user info, this includes direct authentication in app. Currently:

  • editor-api authenticates via a token set in the request headers set from a previous auth instance
  • an admin dashboard requires direct authentication flows and have access to an auth object
  • current apps and gems utilise one or the other but not both

Access to the dashboard (similarly to badge-service) utilises role assignments against the users rpf account. If they have editor-admin assigned to their account they're granted access to the dashboard, if not they can't go to /admin or any of its subpath.

Staging/Prod

Environment variables needed in staging/prod:

# to be added to staging
HYDRA_PUBLIC_URL=https://staging-auth-v1.raspberrypi.org
HYDRA_CLIENT_ID=editor-api-dev
HYDRA_CLIENT_SECRET=secret

IDENTITY_URL=https://staging-my.raspberrypi.org
HOST_URL=https://staging-editor-api.raspberrypi.org

# to be added to production
HYDRA_PUBLIC_URL=https://auth-v1.raspberrypi.org
HYDRA_CLIENT_ID=editor-api-dev
HYDRA_CLIENT_SECRET=secret

IDENTITY_URL=https://my.raspberrypi.org
HOST_URL=https://editor-api.raspberrypi.org

@cla-bot cla-bot bot added the cla-signed label Feb 20, 2024
@raspberrypiherokubot raspberrypiherokubot temporarily deployed to editor-api-p-initial-ad-tb5xoo February 20, 2024 13:35 Inactive
@raspberrypiherokubot raspberrypiherokubot had a problem deploying to editor-api-p-initial-ad-4wmdwh February 20, 2024 13:45 Failure
@sra405 sra405 temporarily deployed to editor-api-p-initial-ad-4wmdwh February 20, 2024 13:46 Inactive
@raspberrypiherokubot raspberrypiherokubot temporarily deployed to editor-api-p-initial-ad-vgzwso February 20, 2024 14:40 Inactive
@raspberrypiherokubot raspberrypiherokubot had a problem deploying to editor-api-p-initial-ad-n5e8cq February 20, 2024 16:41 Failure
@sra405 sra405 temporarily deployed to editor-api-p-initial-ad-n5e8cq February 20, 2024 16:42 Inactive
@raspberrypiherokubot raspberrypiherokubot temporarily deployed to editor-api-p-initial-ad-m5xged February 20, 2024 17:16 Inactive
@raspberrypiherokubot raspberrypiherokubot temporarily deployed to editor-api-p-initial-ad-ezqmtf February 20, 2024 17:24 Inactive
@sra405 sra405 temporarily deployed to editor-api-p-initial-ad-ezqmtf February 21, 2024 09:37 Inactive
@sra405 sra405 temporarily deployed to editor-api-p-initial-ad-uqqhls February 21, 2024 15:13 Inactive
@sra405 sra405 marked this pull request as ready for review February 21, 2024 16:13
@sra405 sra405 self-assigned this Feb 22, 2024
@sra405 sra405 added the blocked label Feb 27, 2024
@sra405
Copy link
Contributor Author

sra405 commented Mar 4, 2024

not needed with the CORP middleware now adding the required headers in prod

@sra405 sra405 closed this Mar 4, 2024
@sra405
Copy link
Contributor Author

sra405 commented Mar 5, 2024

closed the wrong PR 🤦

@sra405 sra405 reopened this Mar 5, 2024
@raspberrypiherokubot raspberrypiherokubot temporarily deployed to editor-api-p-initial-ad-kb9sai March 5, 2024 14:15 Inactive
@sra405 sra405 removed the blocked label Mar 15, 2024
@sra405 sra405 temporarily deployed to editor-api-p-initial-ad-f9e033 March 15, 2024 16:19 Inactive
@sra405 sra405 temporarily deployed to editor-api-p-initial-ad-f9e033 March 15, 2024 16:24 Inactive
@sra405 sra405 temporarily deployed to editor-api-p-initial-ad-f9e033 March 15, 2024 16:35 Inactive
Copy link
Contributor

@loiswells97 loiswells97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wahay, let's get this out there 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants