-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
DB Integration & Observability
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Add register_command_descriptor to the host portal vtable in api.h, gated on 1.1. Implement it in the host portal adapter, and add the SDK registration helper. Add the ExtensionCommand host bridge. Register the command in every role it declares, including registries built after the extension loads. Map all static properties onto the matching Command overrides, including enforcing requiredPrivileges in checkAuthForOperation. Pass a namespace-only command context; SERVER-137298 fills in the rest.
Tests (auth jstest, standalone and sharded): a user who holds the declared actions can run the command; a user without them gets Unauthorized and run is never called; privileges on a different namespace don't grant access; [] runs with no extra check.
- depends on
-
SERVER-137295 Add static properties IDL for extension commands
-
- Open
-
-
SERVER-137299 Add the extension command descriptor API and SDK adapter
-
- Blocked
-
- is depended on by
-
SERVER-137297 Support interrupts and deadlines in extension commands
-
- Backlog
-
-
SERVER-137298 Pass the resolved namespace, UUID, and view to extension commands
-
- Backlog
-
-
SERVER-137303 Select extension or built-in search index commands at startup
-
- Backlog
-