Skip to content

201911 #25

merged 104 commits into from Jan 5, 2020
Merged
Changes from 1 commit
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
52dd6e1
Update Jenkinsfile
chubing Apr 19, 2019
67961e2
Update common.bash
chubing Apr 19, 2019
f323fbf
Update Jenkinsfile
chubing Apr 19, 2019
9497c39
Update manualBuild.sh
chubing Apr 19, 2019
7729514
Update Dockerfile
chubing Apr 19, 2019
39aef68
Update Jenkinsfile
chubing Apr 19, 2019
97305d6
Update Jenkinsfile
chubing Apr 19, 2019
a442729
Update manualBuild.sh
chubing Apr 19, 2019
97fc4a9
fixed context for oddball builds. paths will stay the same.
wgthom Apr 20, 2019
2dc9ad8
added gte tag to base
wgthom Apr 20, 2019
22f216b
fixed tagging scheme for image builds
wgthom Apr 20, 2019
d53ec91
fixed typo
wgthom Apr 20, 2019
dc720ba
added version tag
wgthom Apr 20, 2019
acd82d5
added version tag
wgthom Apr 20, 2019
4fbf26a
Update Dockerfile
wgthom Apr 20, 2019
2d75fc1
Create buildVersion.sh
wgthom Apr 20, 2019
41162de
updated 101 build to use VERSION_TAG
wgthom Apr 20, 2019
26b8dde
updated to use VERSION_TAG
wgthom Apr 20, 2019
6076c4d
updated to use VERSION_TAG
wgthom Apr 20, 2019
14cdb62
updated to use VERSION_TAG
wgthom Apr 20, 2019
d06a8ed
added VERSION_TAG to jenkins build
wgthom Apr 20, 2019
05e30ea
Update manualBuild.sh
wgthom Apr 20, 2019
1c99a6c
Update Jenkinsfile
wgthom Apr 20, 2019
dd934df
add VERSION_TAG to rest of build
wgthom Apr 20, 2019
40d0ec6
Update Jenkinsfile
wgthom Apr 20, 2019
9326941
Update buildVersion.sh
wgthom Apr 20, 2019
f0a55ed
Update Jenkinsfile
wgthom Apr 23, 2019
d463a7d
updated USERTOKEN
wgthom Apr 23, 2019
d8d92ac
Update README
dima767 Apr 23, 2019
bcb35c2
Update to tier shib-idp 3.4 immage wip
dima767 Apr 23, 2019
3820f6d
polishing
dima767 Apr 24, 2019
7e1c4f2
Merge pull request #13 from docker/201906-shib-upgrade
wgthom Apr 26, 2019
4957de7
Reworked readme
wgthom Apr 26, 2019
387d0e0
markdown updates
wgthom Apr 26, 2019
3e3c897
minor updates
wgthom Apr 26, 2019
91d1ffa
polish
wgthom Apr 26, 2019
83a5bd3
minor update
wgthom Apr 26, 2019
bd00217
minor update
wgthom Apr 27, 2019
f41a015
ignore spell check
wgthom Apr 27, 2019
38bcfc9
spelling
wgthom Apr 27, 2019
4bd952c
minor update
wgthom Apr 27, 2019
b188372
disable docker HEALTHCHECK
wgthom Apr 27, 2019
9a9ba2d
Merge branch '201906' of https://github.internet2.edu/docker/grouper_…
wgthom Apr 27, 2019
d9c6ad7
ignore .vscode
wgthom Apr 27, 2019
eb28c50
updated pspng config to match new app template
wgthom May 23, 2019
e355a46
initial docs import
wgthom May 29, 2019
2622d85
ignore build
wgthom May 29, 2019
5ec39bf
Merge branch '201906' of https://github.internet2.edu/docker/grouper_…
wgthom May 29, 2019
3cbe7e5
content added to index.rst
wgthom May 29, 2019
7b7bb06
moved ref and basis groups up to 201.1.1
wgthom May 30, 2019
2893834
rabbitmq start script
wgthom May 30, 2019
cb58886
content updates for 201
wgthom May 30, 2019
f1e39d8
gte command
wgthom May 30, 2019
d74239e
Merge pull request #16 from docker/201906-201-updates
wgthom May 30, 2019
03f891f
fixed docker image tag
wgthom May 30, 2019
0a5206b
added ref and basis tags to class groups
wgthom May 30, 2019
698c393
typo fix
wgthom May 30, 2019
82a7cb3
updated content for 2.1.2
wgthom May 31, 2019
6b9c6d9
updated gte for 201.2
wgthom May 31, 2019
58e9a1f
Merge branch '201906-201-updates' of https://github.internet2.edu/doc…
wgthom May 31, 2019
14448df
added gte version folders
wgthom May 31, 2019
ef92a1f
content update for 201.3
wgthom May 31, 2019
9ef07c2
added gte version folder
wgthom May 31, 2019
7bb5970
gte update for 201.3
wgthom May 31, 2019
0535d6c
Merge pull request #17 from docker/201906-201-updates
wgthom May 31, 2019
15eadaa
update headings
wgthom Jun 1, 2019
b2a62bf
content and gte updates for 201.4
wgthom Jun 1, 2019
1b6e586
Merge pull request #18 from docker/201906-201-updates
wgthom Jun 1, 2019
a934c58
content and gte updates for 201.5
wgthom Jun 2, 2019
df4b2b5
Merge pull request #19 from docker/201906-201-updates
wgthom Jun 2, 2019
604dde4
401.1 updates WIP
wgthom Jun 3, 2019
686644c
401 updates
wgthom Jun 6, 2019
8c80828
updates for 401 gte
wgthom Jun 6, 2019
db80bcc
Merge pull request #20 from docker/201906-201-updates
wgthom Jun 6, 2019
5b7d16c
content and gte updates for 401.2
wgthom Jun 7, 2019
6241645
Merge pull request #21 from docker/201906-201-updates
wgthom Jun 7, 2019
95c7d3b
401.3 content and gte updates
wgthom Jun 8, 2019
cd4cb48
401.5.7 updates
wgthom Jun 8, 2019
6cefbad
updates for 401.3
wgthom Jun 8, 2019
2adc619
updates for 401.3
wgthom Jun 8, 2019
59f9271
Merge pull request #22 from docker/201906-201-updates
wgthom Jun 8, 2019
01335e7
gte and content updates for 401.4
wgthom Jun 8, 2019
42680ba
Merge pull request #23 from docker/201906-201-updates
wgthom Jun 8, 2019
6a86074
gte helper scripts
wgthom Jun 9, 2019
fdf8fec
shib idp branding
wgthom Jun 9, 2019
3df83f2
updates for 201.1 and 201.2
wgthom Jun 10, 2019
fa3e0d9
updates for 201.3
wgthom Jun 10, 2019
2538c22
updates for 201.4
wgthom Jun 10, 2019
88437a0
201.5 updates
wgthom Jun 10, 2019
cb1ff40
404.4 update
wgthom Jun 10, 2019
2b188dd
Merge pull request #24 from docker/201906-201-updates
wgthom Jun 10, 2019
caf0648
cleaned up readme a bit
wgthom Jun 10, 2019
a98f774
readme fix
wgthom Jun 10, 2019
dc80644
added gdg folders, groups, and subjects to 101.1.1
wgthom Jun 10, 2019
31e9d88
added gdg folders, ref/basis groups, subjects
wgthom Jun 10, 2019
7eb4a39
grouper version at 2.4.0-a47-u25-w5-p6-20190611
wgthom Jun 12, 2019
a5c7fdb
grouper 2.4a64 101/201 updates
wgthom Jun 13, 2019
9c33823
updates for 401
wgthom Jun 13, 2019
7d70be3
only build setup and end for each module
wgthom Jun 13, 2019
80b9a9f
update for 201911 build
wgthom Oct 5, 2019
aa25e9e
updates for 201911 build
wgthom Oct 5, 2019
7f58304
update to grouper:latest and fix mysql install
wgthom Oct 9, 2019
2741016
enable config in ui for any IP address
wgthom Oct 29, 2019
9314d1f
grouper build for temple
wgthom Nov 1, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
content and gte updates for 201.5
wgthom committed Jun 2, 2019
commit a934c581d598d54856e1798d1b50ec8ad4a8bdf2
136 changes: 97 additions & 39 deletions docs/201/201.5.rst
@@ -6,7 +6,7 @@
Learning Objectives
-------------------

* Understand ACM3 and how to use grouper policy groups with application specific roles
* Understand ACM3 and how to use policy groups with application specific roles
* Implement delegated access control
* Configure attestation

@@ -23,62 +23,120 @@ Overview

In applications with sophisticated RBAC capabilities, fine-grained permission
sets are typically configured via an administrative interface within the
application itself. These permission sets are then associated with a role name
that can be mapped to a set of users. In this model, the user to role mapping
is done in Grouper by pairing a normal access control group with the role name
defined at the target service. The policy indicating which subjects are mapped
to application roles (permissions sets) can be attribute based or a simple
access control list, or some combination of both.
application itself. These permission sets are then associated with a role name
that can be mapped to a set of users. In this model, the user to role mapping
is done in Grouper by pairing a access policy group with the role name
defined at the target service. The policy indicating which subjects are mapped
to application roles (permissions sets) can be attribute based, a simple access
control list, or some combination of both.

ACM3 is implemented using Grouper as follows:
In AC3, the policy adminstration point is split between Grouper and the target
service. Policy decision point and policy enforcement point are with the target
service.

* Subject |rightarrow| Role assignment is made in Grouper. Access control policies are used to represent Roles.
* Fine-grained permission sets are managed at the target service and assigned a Role Name
* Grouper access control groups are mapped to target service Role Name, completing the User |rightarrow| Role mapping
* PAP split between Grouper and target service, PDP and PEP at service
ACM3 is implemented in Grouper as follows:

----------------
Exercise 201.5.1
----------------
#. Permission sets are managed at the target service and assigned a Role Name
#. Grouper policy groups are mapped to target service Role Name
#. Subject to Role assignment is made in Grouper

*Create application folder and group set*
-------------------------------------------------------------------
Exercise 201.5.1 Create a `congos` application folder and group set
-------------------------------------------------------------------

Use wizard template (or gsh script) to create new application folder/group set.
1. Use the Application template to create the `cognos` application folder and
group set in the `app` folder.
2. Use the Policy template to create two new policy groups in
`app:cognos:service`

#. Create `app:cognos:service:security:cg_adv_manager`.
#. Create `app:cognos:service:ref` folder.
#. Create `app:cognos:service:policy` folder.
#. Create `app:congos:service:policy:cg_adv_report_reader|allow|deny`.
#. Create `app:congos:service:policy:cg_adv_report_writer|allow|deny`.
------------------------------------------------------
Exercise 201.5.2 Implement Report Reader Access Policy
------------------------------------------------------

----------------
Exercise 201.5.2
----------------
All finance employees have read access to finance reports.

*Add reference groups to policy*
1. Implement the reader policy by adding `ref:dept:finance` to
`cg_adv_report_reader_allow`.

#. Add `ref:dept:advancement` to `cg_adv_report_reader_allow`.
.. figure:: ../figures/201-fin-report-reader.png

----------------
Exercise 201.5.3
----------------
------------------------------------------------------
Exercise 201.5.3 Implement Report Writer Access Policy
------------------------------------------------------

*Create app specific reference group for advancement report writers*
Only employees authorized by the Finance Manager have access to write reports

#. Create `app:congos:service:ref:advancement_report_writer`.
#. Add `...:ref:advancement_report_writers` to `...:cg_adv_report_writer_allow`.
#. Add read/update privileges to `cg_adv_manager` to `cg_adv_report_writer_allow`.
This policy will require an application specific reference group the we will
use as an access control list managed by the Finanance Manager.

----------------
Exercise 201.5.4
----------------
1. Create a `app:congos:service:ref:finance_report_writer` group.
2. Add `finance_report_writer` to `cg_fin_report_write_allow`.

*Add attestation*
.. figure:: ../figures/201-fin-report-writer.png

---------------------------------------------------------------
Exercise 201.5.4 Delegate access control to the Finance Manager
---------------------------------------------------------------

The Finance Manager will directly managed the `finance_report_writer` access
control list.

1. Create a `ref:role:Finanance Manager` institutional reference group
2. Grant UPDATE and READ on `finance_report_writer` to `Finance Manager`

.. figure:: ../figures/201-priv-grant-fin-mgr.png

3. Add `asmith989` to `ref:role:Finance Manager`
4. Review privileges on `finance_report_writer`

.. figure:: ../figures/201-review-priv-fin-mgr.png

5. Trace privileges for Anna Smith
(Choose action -> Actions -> Trace privileges)

.. figure:: ../figures/201-anna-smith-trace-priv.png

.. figure:: ../figures/201-anna-smith-trace.png

6. Open a seperate browser and log in with username `asmith989` and password
`password`. Add `bthompson392` to `finance_report_writer`

7. Go back to `banderson` browser and review audit log for
`finance_report_writer` (finance_report_writer -> More actions -> View audit
log)

.. figure:: ../figures/201-fin-report-write-audit.png

----------------------------------------------------------
Exercise 201.5.4 Add attestation for finance_report_writer
----------------------------------------------------------

ABAC policy groups are kept in sync automatically as subject attributes change
in the underlying business systems. Access control lists, on the otherhand,
tend to drift as soon as they are created. Grouper provides an attestation
feature that reminds group managers and owners to review group memberships and
keeps an audit of attestation actions.

#. Add attestation requirement for `advancement_report_writer`.
(finance_report_writer -> More actions -> Attestation ->
Attestation actions -> Edit attestation settings)

.. figure:: ../figures/201-fin-report-writer-attestation.png

2. Log back in as `asmith989`. Review and attest the
`finance_report_writer` membership.

.. figure:: ../figures/201-asmith989-attest.png

3. Log back in as `bandereson`. Review attestation audit log.
(finance_report_writer -> More actions -> Attestation ->
View audit log)

.. figure:: ../figures/201-fin-report-attest-audit-log.png

Congrats! Your Congos access policy is clear, consistent, automated,
delegated, auditable, and attestable!

.. |rightarrow| unicode:: U+2192
Welcome to Grouper Guru Level 7! :)

.. _Grouper Deployment Guide: https://spaces.at.internet2.edu/display/Grouper/Grouper+Deployment+Guide+Work+-TIER+Program
Binary file added docs/figures/201-anna-smith-trace-priv.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/201-anna-smith-trace.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/201-asmith989-attest.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/201-fin-report-attest-audit-log.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/201-fin-report-reader.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/201-fin-report-write-audit.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/201-fin-report-writer.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/201-priv-grant-fin-mgr.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/201-review-priv-fin-mgr.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions ex201/ex201.5.1/container_files/seed-data/bootstrap.gsh
@@ -1 +1,9 @@
GrouperSession.startRootSession()
delStem("201.4.end")
addRootStem("201.5.1", "201.5.1")

// should be a loader job?
addStem("ref", "dept", "dept")
addGroup("ref:dept", "finance", "finance")
addMember("ref:dept:finance", "asmith989")

47 changes: 28 additions & 19 deletions ex201/ex201.5.end/container_files/seed-data/bootstrap.gsh
@@ -1,38 +1,43 @@
gs = GrouperSession.startRootSession()
delStem("201.5.1")
addRootStem("201.5.end", "201.5.end")

//ex201.5.1
addStem("app", "cognos", "cognos");
addStem("app:cognos" , "security", "security");
addStem("app:cognos", "service", "service");
addStem("app:cognos:service" , "security", "security");
addGroup("app:cognos:service:security", "cg_adv_manager", "cg_adv_manager");

addStem("app:cognos:service", "ref", "ref");
addStem("app:cognos:service", "policy", "policy");

addGroup("app:cognos:service:policy", "cg_adv_report_reader", "cg_adv_report_reader");
addGroup("app:cognos:service:policy", "cg_adv_report_reader_allow", "cg_adv_report_reader_allow");
addGroup("app:cognos:service:policy", "cg_adv_report_reader_deny", "cg_adv_report_reader_deny");
addGroup("app:cognos:service:policy", "cg_fin_report_reader", "cg_fin_report_reader");
addGroup("app:cognos:service:policy", "cg_fin_report_reader_allow", "cg_fin_report_reader_allow");
addGroup("app:cognos:service:policy", "cg_fin_report_reader_deny", "cg_fin_report_reader_deny");
addComposite("app:cognos:service:policy:cg_fin_report_reader", CompositeType.COMPLEMENT, "app:cognos:service:policy:cg_fin_report_reader_allow", "app:cognos:service:policy:cg_fin_report_reader_deny")

addGroup("app:cognos:service:policy", "cg_fin_report_writer", "cg_fin_report_writer");
addGroup("app:cognos:service:policy", "cg_fin_report_writer_allow", "cg_fin_report_writer_allow");
addGroup("app:cognos:service:policy", "cg_fin_report_writer_deny", "cg_fin_report_writer_deny");
addComposite("app:cognos:service:policy:cg_fin_report_writer", CompositeType.COMPLEMENT, "app:cognos:service:policy:cg_fin_report_writer_allow", "app:cognos:service:policy:cg_fin_report_writer_deny")

addGroup("app:cognos:service:policy", "cg_adv_report_writer", "cg_adv_report_writer");
addGroup("app:cognos:service:policy", "cg_adv_report_writer_allow", "cg_adv_report_writer_allow");
addGroup("app:cognos:service:policy", "cg_adv_report_writer_deny", "cg_adv_report_writer_deny");
//ex201.5.2 part 1
addMember("app:cognos:service:policy:cg_fin_report_reader_allow", "ref:dept:finance");

//ex201.5.2
addStem("ref", "dept", "dept");
addGroup("ref:dept", "advancement", "advancement");
addMember("app:cognos:service:policy:cg_adv_report_writer_allow", "ref:dept:advancement");
//ex201.5.2 part 2
finance_report_writer = addGroup("app:cognos:service:ref", "finance_report_writer", "finance_report_writer")
addMember("app:cognos:service:policy:cg_fin_report_writer_allow", "app:cognos:service:ref:finance_report_writer");
addStem("ref", "role", "role")
addGroup("ref:role", "Finance Manager", "Finance Manager")
grantPriv("app:cognos:service:ref:finance_report_writer", "ref:role:Finance Manager", AccessPrivilege.READ)
grantPriv("app:cognos:service:ref:finance_report_writer", "ref:role:Finance Manager", AccessPrivilege.UPDATE)
addMember("ref:role:Finance Manager", "asmith989")

//ex201.5.3
group = addGroup("app:cognos:service:ref", "advancement_report_writer", "advancement_report_writer");
addMember("app:cognos:service:policy:cg_adv_report_writer_allow", "app:cognos:service:ref:advancement_report_writer");
grantPriv("app:cognos:service:security:cg_adv_manager", "app:cognos:service:policy:cg_adv_report_writer_allow", AccessPrivilege.READ);
grantPriv("app:cognos:service:security:cg_adv_manager", "app:cognos:service:policy:cg_adv_report_writer_allow", AccessPrivilege.UPDATE);

//ex201.5.4
// add attestation to finance_report_writer
attribute = AttributeDefNameFinder.findByName("etc:attribute:attestation:attestation", true);
attributeAssignSave = new AttributeAssignSave(gs).assignPrintChangesToSystemOut(true);
attributeAssignSave.assignAttributeDefName(attribute);
attributeAssignSave.assignOwnerGroup(group);
attributeAssignSave.assignOwnerGroup(finance_report_writer);

attributeAssignOnAssignSave = new AttributeAssignSave(gs);
attributeAssignOnAssignSave.assignAttributeAssignType(AttributeAssignType.group_asgn);
@@ -49,3 +54,7 @@ attributeAssignOnAssignSave.addValue("true");
attributeAssignSave.addAttributeAssignOnThisAssignment(attributeAssignOnAssignSave);

attributeAssign = attributeAssignSave.save();

// 201.5.4 step 6
GrouperSession.start(findSubject("asmith989"))
addMember("app:cognos:service:ref:finance_report_writer", "bthompson392")