Skip to content

Add some "guardrail" rules which will prevent/allow specific http operations - e.g. to increase confidence that code won't modify things #149

Open

Description

@barny

This is exploratory.

Some users might want to be assured that, for example, client code can't POST to /rm/resources i.e. can't create an artifact. Or can't PUT to /rm/resources which could modify something. This would apply to any http operation, i.e. not just for rm.

This might be implemented by rules for specific http operations with certain patterns of URL path.

Some of these rules could be allow list as well as block list, perhaps.

Note that this might imply a specific sequence for checking the rules so that a rule explicitly in the allowlist would override another related rule in the blocklist.

This would be specified to elmclient (e.g. as a json file) when a server connection is created and then can't be modified by the client code. There might be some default rulesets to choose from or user can specify their own.

This will to some extent override the user's permissions but might be more flexible than actually modifying the permissions.

Obviously this isn't/can't be a complete defence against undesirable modifications but might be better than nothing.

Not in a rush to implement this, but wanted to record the idea here

Activity

  1. self-assigned this
    on Nov 16, 2026
  2. added
    enhancement
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions