Skip to content

chore: initial configuration - #2

Open
dcoa wants to merge 3 commits into
mainfrom
dcoa/init
Open

chore: initial configuration#2
dcoa wants to merge 3 commits into
mainfrom
dcoa/init

Conversation

@dcoa

@dcoa dcoa commented Aug 4, 2026

Copy link
Copy Markdown

Description

Sets up this repository as a standalone package for openedx-authz permission validation: build and release tooling, a dual-architecture integration harness, and the ADR recording why the package exists at all.

This PR is scaffolding only — src/index.ts is still an empty barrel. The hooks and API client land in a follow-up, on top of the contract established here.

The package is intended to be cosumend for MFEs either migrated or not to frontend-base

docs/decisions/0001-standalone-package-for-authz-validation.rst has the full reasoning, including the rejected alternatives and the intended retirement path — this is expected to be absorbed into frontend-base once enough MFEs have migrated, so the public API is kept deliberately small to make that a move rather than a rewrite.

@openedx-webhooks openedx-webhooks added open-source-contribution PR author is not from Axim or 2U core contributor PR author is a Core Contributor (who may or may not have write access to this repo). labels Aug 4, 2026
@openedx-webhooks

Copy link
Copy Markdown

Thanks for the pull request, @dcoa!

This repository is currently unmaintained.

🔘 Find a technical reviewer To get help with finding a technical reviewer, reach out to the community contributions project manager for this PR:
  1. On the right-hand side of the PR, find the Contributions project, click the caret in the top right corner to expand it, and check the "Primary PM" field for the name of your project manager.
  2. Find their GitHub handle here.

Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review.

🔘 Get product approval

If you haven't already, check this list to see if your contribution needs to go through the product review process.

  • If it does, you'll need to submit a product proposal for your contribution, and have it reviewed by the Product Working Group.
    • This process (including the steps you'll need to take) is documented here.
  • If it doesn't, simply proceed with the next step.
🔘 Provide context

To help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:

  • Dependencies

    This PR must be merged before / after / at the same time as ...

  • Blockers

    This PR is waiting for OEP-1234 to be accepted.

  • Timeline information

    This PR must be merged by XX date because ...

  • Partner information

    This is for a course on edx.org.

  • Supporting documentation
  • Relevant Open edX discussion forum threads
🔘 Get a green build

If one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green.

Details
Where can I find more information?

If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources:

When can I expect my changes to be merged?

Our goal is to get community contributions seen and reviewed as efficiently as possible.

However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:

  • The size and impact of the changes that it introduces
  • The need for product review
  • Maintenance status of the parent repository

💡 As a result it may take up to several weeks or months to complete a review and merge your PR.

Comment thread .github/workflows/ci.yml
# Packs the library and installs it into a frontend-platform/frontend-build MFE
# and a frontend-base site, then builds both. This is what keeps the package
# genuinely consumable by both architectures.
integration:

@dcoa dcoa Aug 4, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

my intention here is garantee the library works for both making the install and build process in consumers. Let me know what do you think, if it is okay or may be too much for the size of the app.


// On frontend-platform
import { getAuthenticatedHttpClient } from '@edx/frontend-platform/auth';
configureAuthz({ getHttpClient: getAuthenticatedHttpClient, baseUrl });

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This is a proposal, another option could be add a provider. Let me know what do you think or if there is a better approach. :)

@dcoa dcoa changed the title chore: initial configuratio chore: initial configuration Aug 4, 2026
@mphilbrick211 mphilbrick211 moved this from Needs Triage to Ready for Review in Contributions Aug 5, 2026

@arbrandes arbrandes left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I have several small concerns around the branching/publication strategy (basically, the repo doesn't follow the specs given in openedx/openedx-proposals#815), but that is minor. The main question is about the existence of this package in the first place: see inline comments.

Comment on lines +73 to +76
The long-term home for this functionality is most likely ``frontend-base``. What
makes a standalone package the right answer *now* is sequencing, not destination:
absorbing it today would force the coupling described above onto every MFE that
has not yet migrated.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

My main question is: besides frontend-app-authoring, which MFEs/apps are going to need this functionality until Xylon is released?

If it's just frontend-app-authoring, I think we should just build this into frontend-base - but just for frontend-base apps to use. Legacy MFEs don't get it until they're converted to frontend-base.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

We actually started implementing this in frontend-base, but the feedback there was to extract it into a shared library instead: openedx/frontend-base#269 (comment).

For the current scope, we need this functionality in:

  • frontend-app-authoring, since we're working with course and library roles.
  • frontend-app-admin-console.

Among frontend-base apps, I know this will also be important for the Instructor Dashboard.

As far as I know, that's the planned scope for Willow (@BryanttV, am I missing anything?).

@arbrandes arbrandes Aug 7, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ok, let's assume Instructor Dashboard will also need it (though I'd still like to know whether it actually needs it). That means two MFEs and one app. It makes the argument for this repo stronger.

However, there are two drawbacks I see:

  1. The API is by necessity different from what we're used to, precisely because this is not included in frontend-base or frontend-platform. It is a departure from our architectural philosophy of bundling basic functionality into one or the other.
  2. Once frontend-platform goes away, we'll want to bring this into frontend-base to stick with the philosophy, which will change the API again. It would be less work if it were already in frontend-base to begin with.

I'm open to being convinced, but I think right now we should stick to the status quo: either we implement this only in frontend-base, or we implement it both in frontend-base and frontend-platform. Trying to do both at the same time is never going to be neat (see https://github.com/openedx/frontend-base-compat, which is only acceptable because it has a set expiration date and it doesn't mess with the green-field API).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@brian-smith-tcril, thoughts? ☝🏼

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I'm not opposed to there being a repo for this instead of bundling it in frontend-base, but if the only reason to make it standalone is to make it work with both frontend-base and frontend-platform I'm not on board.

I think the deciding question for me is: does it make sense for this to be a standalone package in a frontend-base only world?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

does it make sense for this to be a standalone package in a frontend-base only world?

Yeah, this boils it down.

I'll be glad to stand corrected, but even though openedx-authz is itself a separate package, if I understand it correctly it is very much a core thing, not meant to be replaced or pluggable. If this assumption is correct, then there's not much reason to have a separate frontend-authz.

Comment on lines +103 to +104
* Consumers must wire the library explicitly at startup. Forgetting
``configureAuthz()`` is a runtime error rather than a compile-time one.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is a departure from how auth works, currently: it's pretty much transparent to MFEs.

Unless of course by "consumers" what is meant here is frontend-base and frontend-platform.

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

Labels

core contributor PR author is a Core Contributor (who may or may not have write access to this repo). open-source-contribution PR author is not from Axim or 2U

Projects

Status: Ready for Review

Development

Successfully merging this pull request may close these issues.

5 participants