YuriiShynbuievIOHK
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    ## Purpose of this document Provide the necessary technical information for the engineering team to deliver the Prism SaaS solution MVP. ## Decisions ### `prism-node` service is deployed in the in-memory mode Expected outcome: - deployment simplification - environment cost optimization - `prism-agent` configuration is simple Constraints: - Prism DID is not published to the blockchain - absence of interoperability with other SSI systems Mitigation: - Cardano stack can be added later ### `prism-node` service is shared among all `prism-agent` instances Expected outcome: - deployment simplification - cost optimization - Cardano Wallet is not a part of SaaS - `prism-agent` configuration is simple Constraints: - `prism-node` is a single point of failure Mitigation: - mitigate the SPOF later - switch to Demeter Cadrano infrastructure ### `prism-agent` service uses Postgresql as a Secrets Store Expected outcome: - deployment simplification (the Vault is not needed) - cost optimization Constraints: - the key materials are stored in not secure location Mitigation: - Switch to the Vault service after multi-tenancy implementation ### `prism-mediator` and mediator database are shared among all `prism-agent` instances Expected outcome: - deployment simplification - cost optimization - `prism-agent` configuration is simple Constraints: - `prism-mediator` is a SPOF Mitigation: - mitigate the SPOF after SaaS MVP ### `provisioning-backend` is implemented using TypeScript + Node.js Expected outcome: - engineers with TS experience implement provisioning backend - provisioning backend is simple and maintainable ### Manage App and Enterprise Services are shared among all the `prism-agent` instances Javier says that it's possible and the work to implement it is in progress. Expected outcome: - deployment simplification - cost optimization Constraints: - Enterprise service is SPOF ## Architecture questions to figure out ### How to use the Cardano Wallet in SaaS offering? //out of scope for now ### What Identity and Access Management (IAM) system should be used? // the Keycloak, the Vault, something other ### How to configure the cluster management for the SaaS solution There are the following options: #### ??? ArgoCD + Postgresql + ArgoCD REST API // Platform Engineering task - with @David Poltorak. ## New Components for the SaaS MVP ### Provisioning-backend Purpose: - orchestrate the resources of the SaaS environment - communicate with the underlying infrastructure systems - expose the REST API for resource orchestration ### IAM system Purpose: - provide the authentication method for the SaaS - manage the users (create, activate, deactivate, update, get information) ## Admin UI (optional for MVP) Purpose: - observe the status of the SaaS environment - manage the SaaS environment ArgoCD + Grafana + Prometheus can be used so far ## Deployment Diagram This diagram is exported from the Structurizr ```mermaid graph LR linkStyle default fill:#ffffff subgraph diagram [Prism SaaS - Containers] style diagram fill:#ffffff,stroke:#ffffff 1["<div style='font-weight: bold'>User</div><div style='font-size: 70%; margin-top: 0px'>[Person]</div>"] style 1 fill:#08427b,stroke:#052e56,color:#ffffff 2["<div style='font-weight: bold'>Admin</div><div style='font-size: 70%; margin-top: 0px'>[Person]</div>"] style 2 fill:#08427b,stroke:#052e56,color:#ffffff subgraph 3 [Prism SaaS] style 3 fill:#ffffff,stroke:#0b4884,color:#0b4884 subgraph group1 [Infrastructure Services] style group1 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5 21("<div style='font-weight: bold'>Admin App</div><div style='font-size: 70%; margin-top: 0px'>[Container]</div>") style 21 fill:#438dd5,stroke:#2e6295,color:#ffffff 23("<div style='font-weight: bold'>Platform Backend</div><div style='font-size: 70%; margin-top: 0px'>[Container]</div>") style 23 fill:#438dd5,stroke:#2e6295,color:#ffffff 26("<div style='font-weight: bold'>Argo CD</div><div style='font-size: 70%; margin-top: 0px'>[Container]</div>") style 26 fill:#438dd5,stroke:#2e6295,color:#ffffff 28("<div style='font-weight: bold'>Platform DB</div><div style='font-size: 70%; margin-top: 0px'>[Container]</div>") style 28 fill:#438dd5,stroke:#2e6295,color:#ffffff end subgraph group2 [Prism Enterprise Services] style group2 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5 10("<div style='font-weight: bold'>Manage App</div><div style='font-size: 70%; margin-top: 0px'>[Container]</div>") style 10 fill:#438dd5,stroke:#2e6295,color:#ffffff 12("<div style='font-weight: bold'>Enterprise Service Backend</div><div style='font-size: 70%; margin-top: 0px'>[Container]</div>") style 12 fill:#438dd5,stroke:#2e6295,color:#ffffff end subgraph group3 [Prism Mediator Services] style group3 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5 14("<div style='font-weight: bold'>Prism Mediator</div><div style='font-size: 70%; margin-top: 0px'>[Container]</div>") style 14 fill:#438dd5,stroke:#2e6295,color:#ffffff 16("<div style='font-weight: bold'>MongoDB</div><div style='font-size: 70%; margin-top: 0px'>[Container]</div>") style 16 fill:#438dd5,stroke:#2e6295,color:#ffffff end subgraph group4 [Prism Platform Dynamic Services] style group4 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5 31("<div style='font-weight: bold'>Prism Agent DB</div><div style='font-size: 70%; margin-top: 0px'>[Container]</div>") style 31 fill:#438dd5,stroke:#2e6295,color:#ffffff 32("<div style='font-weight: bold'>Prism Agent #1</div><div style='font-size: 70%; margin-top: 0px'>[Container]</div>") style 32 fill:#438dd5,stroke:#2e6295,color:#ffffff 38("<div style='font-weight: bold'>Prism Agent #2</div><div style='font-size: 70%; margin-top: 0px'>[Container]</div>") style 38 fill:#438dd5,stroke:#2e6295,color:#ffffff end subgraph group5 [Prism Platform Identity Services] style group5 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5 18("<div style='font-weight: bold'>Prism Node</div><div style='font-size: 70%; margin-top: 0px'>[Container]</div>") style 18 fill:#438dd5,stroke:#2e6295,color:#ffffff 19("<div style='font-weight: bold'>Prism Node DB</div><div style='font-size: 70%; margin-top: 0px'>[Container]</div>") style 19 fill:#438dd5,stroke:#2e6295,color:#ffffff end 4("<div style='font-weight: bold'>APISIX API Gateway</div><div style='font-size: 70%; margin-top: 0px'>[Container]</div>") style 4 fill:#438dd5,stroke:#2e6295,color:#ffffff 7("<div style='font-weight: bold'>Teleport Gateway</div><div style='font-size: 70%; margin-top: 0px'>[Container]</div>") style 7 fill:#438dd5,stroke:#2e6295,color:#ffffff end 4-. "<div>Calls</div><div style='font-size: 70%'></div>" .->10 10-. "<div>Calls REST API</div><div style='font-size: 70%'></div>" .->12 4-. "<div>Calls REST/DIDComm API</div><div style='font-size: 70%'></div>" .->14 14-. "<div>Store the state</div><div style='font-size: 70%'></div>" .->16 18-. "<div>Store state</div><div style='font-size: 70%'></div>" .->19 7-. "<div>Calls</div><div style='font-size: 70%'></div>" .->21 12-. "<div>Call REST API</div><div style='font-size: 70%'></div>" .->23 21-. "<div>Call REST API</div><div style='font-size: 70%'></div>" .->23 23-. "<div>Manage Agents</div><div style='font-size: 70%'></div>" .->26 26-. "<div>Stores the topoloy of the<br />environment</div><div style='font-size: 70%'></div>" .->28 23-. "<div>Stores the state of the<br />environment</div><div style='font-size: 70%'></div>" .->28 4-. "<div>Calls REST API</div><div style='font-size: 70%'></div>" .->32 26-. "<div>Manage the instance lifecycle</div><div style='font-size: 70%'></div>" .->32 32-. "<div>Communicate over gRPC API</div><div style='font-size: 70%'></div>" .->18 32-. "<div>Store the state</div><div style='font-size: 70%'></div>" .->31 32-. "<div>Communicate over DIDComm</div><div style='font-size: 70%'></div>" .->14 4-. "<div>Calls REST API</div><div style='font-size: 70%'></div>" .->38 26-. "<div>Manage the instance lifecycle</div><div style='font-size: 70%'></div>" .->38 38-. "<div>Communicate over gRPC API</div><div style='font-size: 70%'></div>" .->18 38-. "<div>Store the state</div><div style='font-size: 70%'></div>" .->31 38-. "<div>Communicate over DIDComm</div><div style='font-size: 70%'></div>" .->14 1-. "<div>Calls</div><div style='font-size: 70%'></div>" .->4 2-. "<div>Calls</div><div style='font-size: 70%'></div>" .->7 end ```

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully