-
Notifications
You must be signed in to change notification settings - Fork 81
docs(sharing): badges and verifiable credentials documentation rework #2968
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
Open
GlugovGrGlib
wants to merge
5
commits into
openedx:master
Choose a base branch
from
GlugovGrGlib:g-glugovskiy/badges-documentation-corrections
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f18a792
docs: update readme and fix typos in credentials sharing docs
GlugovGrGlib 14c281f
docs(vc): move credentials sharing docs under the same parent dir
GlugovGrGlib 75e1fe5
docs: major docs refresh and improvement
GlugovGrGlib 3073c73
docs: finalize c4 diagrams and text enhancements
GlugovGrGlib 19e7d56
docs: major update and docs polishing for credentials sharing
GlugovGrGlib 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 hidden or 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 hidden or 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,117 @@ | ||
| /* | ||
| * C4 model for the Credential Sharing feature in Open edX. | ||
| * Covers Digital Badges and Verifiable Credentials. | ||
| * | ||
| * Written in Structurizr DSL (https://structurizr.org/). | ||
| */ | ||
| workspace "Credential Sharing" { | ||
|
|
||
| model { | ||
| siteAdmin = person "Site Admin" "Configures badge templates and VC issuing" | ||
| learner = person "Learner" "Earns credentials through learning activities" | ||
| verifier = person "Verifier" "Employer or institution that verifies learner credentials" | ||
|
|
||
| digitalWallet = softwareSystem "Digital Wallet" "Learner Credential Wallet or compatible storage" | ||
| digitalBadgePlatform = softwareSystem "Digital Badge Platform" "Credly, Accredible" "Existing System" | ||
|
|
||
| openedX = softwareSystem "Open edX" { | ||
| edxPlatform = container "openedx-platform" "LMS and course management" "Python/Django" | ||
| eventBus = container "Event Bus" "Redis Streams or Kafka" "" "Queue" | ||
| credentialsService = container "edX Credentials" "Stores learner achievements, issues credentials" "Python/Django" { | ||
| credentialsCore = component "Credentials Core" "Manages course and program certificates" "Django" | ||
| digitalBadgesIssuer = component "Digital Badges Issuer" "Processes badge requirements, issues badges to external platforms" "Django" | ||
| verifiableCredentialsIssuer = component "Verifiable Credentials Issuer" "Issues W3C Verifiable Credentials, signs with didkit (Ed25519)" "Django" | ||
| vcIssuerMFE = component "Learner Record MFE" "UI for learners to request verifiable credentials" "React" | ||
| } | ||
| credentialsDB = container "MySQL" "Credentials database" "" "Database" | ||
| } | ||
|
|
||
| # --- Actors --- | ||
|
|
||
| siteAdmin -> credentialsCore "Configures badge templates and VC settings" "Admin panel" | ||
| learner -> edxPlatform "Completes courses and assignments" | ||
| learner -> vcIssuerMFE "Requests verifiable credential" | ||
|
|
||
| # --- Event Bus flows --- | ||
|
|
||
| # LMS produces events consumed by Credentials | ||
| edxPlatform -> eventBus "Publishes certificate and course passing status events" "openedx-events" | ||
| eventBus -> credentialsCore "Delivers certificate and course grades events" "openedx-events" | ||
| eventBus -> digitalBadgesIssuer "Delivers badge-related events" "learning-badges-lifecycle topic" | ||
|
|
||
| # Credentials produces events back to the bus | ||
| digitalBadgesIssuer -> eventBus "Publishes badges lifecycle events" "openedx-events" | ||
|
|
||
| # --- Internal flows --- | ||
|
|
||
| credentialsCore -> credentialsDB "Uses" "Django ORM" | ||
| digitalBadgesIssuer -> credentialsDB "Uses" "Django ORM" | ||
| verifiableCredentialsIssuer -> credentialsDB "Uses" "Django ORM" | ||
|
|
||
| # --- External integrations --- | ||
|
|
||
| # Badges | ||
| digitalBadgesIssuer -> digitalBadgePlatform "Issues and revokes badges" "REST API" | ||
|
|
||
| # Verifiable Credentials | ||
| vcIssuerMFE -> verifiableCredentialsIssuer "Initiates VC issuance" | ||
| verifiableCredentialsIssuer -> digitalWallet "Sends signed verifiable credential" | ||
| digitalWallet -> verifiableCredentialsIssuer "Sends issuance request" "HTTP" | ||
|
|
||
| # Verification | ||
| verifier -> verifiableCredentialsIssuer "Checks credential revocation status" "StatusList2021 API" | ||
| verifier -> digitalBadgePlatform "Checks badge revocation status" "" | ||
|
|
||
| } | ||
|
|
||
| views { | ||
| systemContext openedX "SystemContext" "High-level view of Credential Sharing" { | ||
| include * | ||
| autoLayout lr | ||
| } | ||
|
|
||
| container openedX "Containers" "Open edX containers involved in credential sharing" { | ||
| include * | ||
| autoLayout lr | ||
| } | ||
|
|
||
| component credentialsService "Components" "Credentials service internal components" { | ||
| include * | ||
| autoLayout lr | ||
| } | ||
|
|
||
| styles { | ||
| element "Person" { | ||
| color "#ffffff" | ||
| background "#08427b" | ||
| fontSize 22 | ||
| shape Person | ||
| } | ||
| element "Software System" { | ||
| background "#1168bd" | ||
| color "#ffffff" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [suggestion] these diagrams rely heavily on shades of blue, which may not be very accessible. Further, black on light blue probably doesn't pass accessible contrast ratios. |
||
| } | ||
| element "Existing System" { | ||
| background "#999999" | ||
| color "#ffffff" | ||
| } | ||
| element "Container" { | ||
| background "#438dd5" | ||
| color "#ffffff" | ||
| } | ||
| element "Component" { | ||
| background "#85bbf0" | ||
| color "#000000" | ||
| } | ||
| element "Database" { | ||
| shape Cylinder | ||
| } | ||
| element "Queue" { | ||
| shape Pipe | ||
| } | ||
| } | ||
| } | ||
| configuration { | ||
| scope softwaresystem | ||
| } | ||
| } | ||
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.
This file was deleted.
Oops, something went wrong.
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.
Can we call the service "Open edX Credentials", or is there a reason it needs to be "edX Credentials"?