Skip to content

Each extension should be presented its own merged schema #3072

Closed

Description

@sipsma

Right now there's just a global schema in cloak that gets presented to all the actions. The goal is for this to instead be per-action: the schema an action sees should consist of just its own direct dependencies. A few reasons this is desirable:

  1. The cloak server can handle more than one client at a time
  2. Less situations in which namespace conflicts arise; easier to add support for dealing with that
  3. Actions that rely on different implementations of the same schema can coexist in the same DAG

Activity

  1. added this to the Cloak GA milestone on Sep 16, 2022
  2. transferred this issue fromdagger/cloakon Sep 16, 2022
  3. changed the title [-]Each action should be presented its own merged schema[/-] [+]Each extension should be presented its own merged schema[/+] on Sep 28, 2022
  4. sipsma commented on Oct 26, 2022

    @sipsma
    ContributorAuthor

    We also should consider using this as an initial, very primitive security mechanism for preventing arbitrary extensions from reading arbitrary host resources (like dirs and env vars). We can just never expose those APIs to extensions. We'll need more than than in the long term, but that's probably the simplest place to start.

  5. added
    area/engine
    and removed on Dec 5, 2022
  6. added and removed
    area/engine
    on Dec 6, 2022
  7. sipsma commented on Dec 21, 2022

    @sipsma
    ContributorAuthor

    This is technically true now that dagger-in-dagger results in the creation of a new session. More adjustments will be needed when we revisit extensions but this issue isn't relevant anymore

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions