Skip to content

feat: GRANT/REVOKE ACCESS on PUBLISHED REST SERVICE #162

@ako

Description

@ako

Feature Request

Support security access management for published REST services via GRANT/REVOKE.

Use Case

Published REST services have AllowedRoles and AuthenticationTypes fields that control who can access the API. Currently these can only be configured in Studio Pro.

Proposed Syntax

-- Grant access to a role
GRANT ACCESS ON PUBLISHED REST SERVICE Module.API TO Module.AdminRole;

-- Revoke access
REVOKE ACCESS ON PUBLISHED REST SERVICE Module.API FROM Module.AdminRole;

-- Show current access
SHOW ACCESS ON PUBLISHED REST SERVICE Module.API;

-- Set authentication type
ALTER PUBLISHED REST SERVICE Module.API SET Authentication = 'Basic';

Context

GRANT/REVOKE ACCESS is already supported for OData services. The BSON fields AllowedRoles and AuthenticationTypes on Rest$PublishedRestService are already known from the metamodel.

Discovered during testing of CREATE PUBLISHED REST SERVICE (PR rest branch).

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions