-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1186 from GRIDAPPSD/releases/2019.12.0
Release of version 2019.12.0
- Loading branch information
Showing
67 changed files
with
863 additions
and
289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 17 additions & 25 deletions
42
gov.pnnl.goss.gridappsd/conf/pnnl.goss.core.security.propertyfile.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,18 @@ | ||
user1=123,queue:*,topic:ActiveMQ.Advisory.*,temp-queue:*,fusion:*:read,fusion:CapacityRequirement:write,fusion:InterfacesViolation:write,fusion:VoltageStabilityViolation:write | ||
user2=123,queue:*,topic:ActiveMQ.Advisory.*,temp-queue:*,fusion:*:read,fusion:GeneratorData:write | ||
user3=123,queue:*,topic:ActiveMQ.Advisory.*,temp-queue:*,fusion:*:read | ||
tony=tony,queue:*,topic:ActiveMQ.Advisory.*,temp-queue:*,fusion:*:read,fusion:CapacityRequirement:write,fusion:InterfacesViolation:write,fusion:VoltageStabilityViolation:write | ||
pavel=pavel,queue:*,topic:ActiveMQ.Advisory.*,topic:/goss/fusion/*,temp-queue:*,fusion:*:read,fusion:*:write | ||
erin=erin,queue:*,topic:ActiveMQ.Advisory.*,topic:goss/fusion/*,temp-queue:*,fusion:*:read | ||
yousu=yousu,queue:*,topic:ActiveMQ.Advisory.*,topic:goss/fusion/*,temp-queue:*,fusion:*:read | ||
poorva=123,queue:*,topic:ActiveMQ.Advisory.*,topic:goss/fusion/*,topic:synthdata/request/*,topic:synthdata/poorva/*,fusion:*:read | ||
admin=admin12345,queue:*,topic:*,temp-queue:* | ||
system=manager,queue:*,topic:*,temp-queue:*,fusion:*:read,fusion:*:write | ||
user1=user1,queue:*,topic:ActiveMQ.Advisory.*,topic:goss/fusion/*,temp-queue:*,fusion:*:read | ||
user2=user2,queue:*,topic:ActiveMQ.Advisory.*,topic:goss/fusion/*,temp-queue:*,fusion:*:read | ||
user3=user3,queue:*,topic:ActiveMQ.Advisory.*,topic:goss/fusion/*,temp-queue:*,fusion:*:read | ||
user4=user4,queue:*,topic:ActiveMQ.Advisory.*,topic:goss/fusion/*,temp-queue:*,fusion:*:read | ||
user5=user5,queue:*,topic:ActiveMQ.Advisory.*,topic:goss/fusion/*,temp-queue:*,fusion:*:read | ||
user6=user6,queue:*,topic:ActiveMQ.Advisory.*,topic:goss/fusion/*,temp-queue:*,fusion:*:read | ||
user7=user7,queue:*,topic:ActiveMQ.Advisory.*,topic:goss/fusion/*,temp-queue:*,fusion:*:read | ||
user8=user8,queue:*,topic:ActiveMQ.Advisory.*,topic:goss/fusion/*,temp-queue:*,fusion:*:read | ||
user9=user9,queue:*,topic:ActiveMQ.Advisory.*,topic:goss/fusion/*,temp-queue:*,fusion:*:read | ||
user10=user10,queue:*,topic:ActiveMQ.Advisory.*,topic:goss/fusion/*,temp-queue:*,fusion:*:read | ||
user11=user11,queue:*,topic:ActiveMQ.Advisory.*,topic:goss/fusion/*,temp-queue:*,fusion:*:read | ||
user12=user12,queue:*,topic:ActiveMQ.Advisory.*,topic:goss/fusion/*,temp-queue:*,fusion:*:read | ||
user13=user13,queue:*,topic:ActiveMQ.Advisory.*,topic:goss/fusion/*,temp-queue:*,fusion:*:read | ||
user14=user14,queue:*,topic:ActiveMQ.Advisory.*,topic:goss/fusion/*,temp-queue:*,fusion:*:read | ||
user15=user15,queue:*,topic:ActiveMQ.Advisory.*,topic:goss/fusion/*,temp-queue:*,fusion:*:read | ||
fncs=fncs,queue:*,topic:*,temp-queue:*,fusion:*:read,fusion:*:write | ||
operator1=operator,queue:*,topic:ActiveMQ.Advisory.*,topic:goss.gridappsd.process.request.status.*,topic:goss.gridappsd.simulation.*,temp-queue:*,fusion:*:read | ||
operator2=operator,queue:*,topic:ActiveMQ.Advisory.*,topic:goss.gridappsd.process.request.status.*,topic:goss.gridappsd.simulation.*,temp-queue:*,fusion:*:read | ||
operator3=operator,queue:*,topic:ActiveMQ.Advisory.*,topic:goss.gridappsd.process.request.status.*,topic:goss.gridappsd.simulation.*,temp-queue:*,fusion:*:read | ||
evaluator1=evaluator,queue:*,topic:ActiveMQ.Advisory.*,topic:goss.gridappsd.process.request.status.*,topic:goss.gridappsd.simulation.*,temp-queue:*,fusion:*:read | ||
evaluator2=evaluator,queue:*,topic:ActiveMQ.Advisory.*,topic:goss.gridappsd.process.request.status.*,topic:goss.gridappsd.simulation.*,temp-queue:*,fusion:*:read | ||
testmanager1=testmanager,queue:*,topic:ActiveMQ.Advisory.*,topic:goss.gridappsd.process.request.status.*,topic:goss.gridappsd.simulation.*,temp-queue:*,fusion:*:read | ||
testmanager2=testmanager,queue:*,topic:ActiveMQ.Advisory.*,topic:goss.gridappsd.process.request.status.*,topic:goss.gridappsd.simulation.*,temp-queue:*,fusion:*:read | ||
application1=application,queue:*,topic:ActiveMQ.Advisory.*,topic:goss.gridappsd.process.request.status.*,topic:goss.gridappsd.simulation.*,temp-queue:*,fusion:*:read | ||
application2=application,queue:*,topic:ActiveMQ.Advisory.*,topic:goss.gridappsd.process.request.status.*,topic:goss.gridappsd.simulation.*,temp-queue:*,fusion:*:read | ||
service1=service,queue:*,topic:ActiveMQ.Advisory.*,topic:goss.gridappsd.process.request.status.*,topic:goss.gridappsd.simulation.*,temp-queue:*,fusion:*:read | ||
service2=service,queue:*,topic:ActiveMQ.Advisory.*,topic:goss.gridappsd.process.request.status.*,topic:goss.gridappsd.simulation.*,temp-queue:*,fusion:*:read | ||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
gov.pnnl.goss.gridappsd/conf/pnnl.goss.gridappsd.security.rolefile.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
system=admin,operator,evaluator,testmanager,application,service | ||
operator1=operator | ||
operator2=operator | ||
operator3=operator | ||
evaluator1=evaluator,operator | ||
evaluator2=evaluator,operator | ||
testmanager1=testmanager | ||
testmanager2=testmanager | ||
application1=application | ||
application2=application | ||
service1=service | ||
service2=service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Configuration for the goss-core module. Each jar in | ||
# goss-core can be configured using the following. During | ||
# compilation 'mvn compile' the place holders @@ will be | ||
# replaced with values from a global goss.properties file. | ||
|
||
# This user is equivelant to root. Must have '*' | ||
# permissions on the message bus. | ||
goss.system.manager = system | ||
goss.system.manager.password = manager | ||
|
||
# Used in the core-ssl.bndrun file | ||
client.keystore = ${client.keystore} | ||
client.keystore.password = ${client.keystore.password} | ||
client.truststore = ${client.truststore} | ||
client.truststore.password = ${client.truststore.password} | ||
ssl.enabled = false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
gov.pnnl.goss.gridappsd/src/gov/pnnl/goss/gridappsd/api/RoleManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2017, Battelle Memorial Institute All rights reserved. | ||
* Battelle Memorial Institute (hereinafter Battelle) hereby grants permission to any person or entity | ||
* lawfully obtaining a copy of this software and associated documentation files (hereinafter the | ||
* Software) to redistribute and use the Software in source and binary forms, with or without modification. | ||
* Such person or entity may use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
* the Software, and may permit others to do so, subject to the following conditions: | ||
* Redistributions of source code must retain the above copyright notice, this list of conditions and the | ||
* following disclaimers. | ||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and | ||
* the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
* Other than as used herein, neither the name Battelle Memorial Institute or Battelle may be used in any | ||
* form whatsoever without the express written consent of Battelle. | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY | ||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL | ||
* BATTELLE OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, | ||
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE | ||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED | ||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
* OF THE POSSIBILITY OF SUCH DAMAGE. | ||
* General disclaimer for use with OSS licenses | ||
* | ||
* This material was prepared as an account of work sponsored by an agency of the United States Government. | ||
* Neither the United States Government nor the United States Department of Energy, nor Battelle, nor any | ||
* of their employees, nor any jurisdiction or organization that has cooperated in the development of these | ||
* materials, makes any warranty, express or implied, or assumes any legal liability or responsibility for | ||
* the accuracy, completeness, or usefulness or any information, apparatus, product, software, or process | ||
* disclosed, or represents that its use would not infringe privately owned rights. | ||
* | ||
* Reference herein to any specific commercial product, process, or service by trade name, trademark, manufacturer, | ||
* or otherwise does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United | ||
* States Government or any agency thereof, or Battelle Memorial Institute. The views and opinions of authors expressed | ||
* herein do not necessarily state or reflect those of the United States Government or any agency thereof. | ||
* | ||
* PACIFIC NORTHWEST NATIONAL LABORATORY operated by BATTELLE for the | ||
* UNITED STATES DEPARTMENT OF ENERGY under Contract DE-AC05-76RL01830 | ||
******************************************************************************/ | ||
package gov.pnnl.goss.gridappsd.api; | ||
|
||
import java.util.List; | ||
|
||
|
||
public interface RoleManager { | ||
|
||
List<String> getRoles(String userName) throws Exception; | ||
|
||
boolean hasRole(String userName, String roleName) throws Exception; | ||
|
||
//TODO | ||
//addRole(user, role) | ||
//removeRole(user, role) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.