SGF-569 - Move Off-Heap, Redis Adapter and Security Annotation config from apache-geode to SDG 2.0.x.

This commit is contained in:
John Blum
2016-11-18 15:58:56 -08:00
parent 9bba7e747e
commit 49b86a0ed0
31 changed files with 1923 additions and 237 deletions

View File

@@ -0,0 +1,42 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Shiro INI configuration
# Objects and their properties are defined here, such as the securityManager, Realms and anything else needed
# to build the SecurityManager
[main]
# The 'users' section is for simple deployments when you only need a small number of statically-defined
# set of User accounts.
# username = password, roleName1, roleName2, …, roleNameN
[users]
root = s3cr3t!, ADMIN, DBA
scientist = w0rk!ng4u, DATA_SCIENTIST
analyst = p@55w0rd, DATA_ANALYST
guest = guest, GUEST
# The 'roles' section is for simple deployments when you only need a small number of statically-defined roles.
# rolename = permissionDefinition1, permissionDefinition2, …, permissionDefinitionN
[roles]
ADMIN = CLUSTER:MANAGE, CLUSTER:READ, CLUSTER:WRITE
DBA = DATA:MANAGE, DATA:READ, DATA:WRITE
DATA_SCIENTIST = DATA:READ, DATA:WRITE
DATA_ANALYST = DATA:READ
GUEST = NULL
# The 'urls' section is used for url-based security in web applications. We'll discuss this section
# in the Web documentation
[urls]

View File

@@ -0,0 +1,32 @@
#
# Copyright 2016 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# Apache Shiro PropertiesRealm security properties configuration file
# used to configure Apache Geode Security
# Apache Geode System Users and assigned Roles
user.root = s3c3rt!, ADMIN, DBA
user.scientist = w0rk!ng4u, DATA_SCIENTIST
user.analyst = p@55w0rd, DATA_ANALYST
user.guest = guest, GUEST
# Apache Geode Roles and granted (Resource) Permissions
role.ADMIN = CLUSTER:MANAGE, CLUSTER:READ, CLUSTER:WRITE
role.DBA = DATA:MANAGE, DATA:READ, DATA:WRITE
role.DATA_SCIENTIST = DATA:READ, DATA:WRITE
role.DATA_ANALYST = DATA:READ
role.GUEST = NULL