Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 439993

Summary: Grant authorized users access to /logapi
Product: [ECD] Orion Reporter: Maciej Bendkowski <maciej.bendkowski>
Component: ServerAssignee: Maciej Bendkowski <maciej.bendkowski>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ahunter.eclipse
Version: 6.0   
Target Milestone: 7.0   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Maciej Bendkowski CLA 2014-07-21 08:23:17 EDT
We need a solution for granting authorization permissions to the log service API. This task should be divided into several subtasks, including building a dynamic role based approach for user permissions. 

For start, we should investigate the already present "user right" URL patterns, attached to user.json files. A dedicated filter should suffice for now, however it should be backed up with an administrator facilitation API.
Comment 1 Maciej Bendkowski CLA 2014-07-22 08:19:24 EDT
Fixed with: http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=f902b6ebacb09fc1c02cbc85c0bb0e00ef643224

The Log provider service has been hidden behind an authorization filter.
Comment 2 Anthony Hunter CLA 2014-11-07 17:19:24 EST
(In reply to Maciej Bendkowski from comment #0)
> We need a solution for granting authorization permissions to the log service
> API. This task should be divided into several subtasks, including building a
> dynamic role based approach for user permissions. 
> 
> For start, we should investigate the already present "user right" URL
> patterns, attached to user.json files. A dedicated filter should suffice for
> now, however it should be backed up with an administrator facilitation API.

For now I have added a orion.conf property that matches exactly the existing orion.auth.user.creation property format so that we can access the logs for orionhub.

/**
 * The name of a configuration property specifying a comma-separated list of users
 * that are allowed to access the logs service. If unspecified, then no users can
 * access the logs service.
 */
public static final String CONFIG_AUTH_LOG_SERVICE = "orion.auth.log.service";