Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Containerized Grouper and Secrets

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Containerized Grouper and Secrets


Chronological Thread 
  • From: Christopher Hubing <>
  • To: John Schrader <>
  • Cc: Jack Stewart <>, "Hyzer, Chris" <>, "" <>, csp study grouper <>
  • Subject: Re: [grouper-users] Containerized Grouper and Secrets
  • Date: Mon, 30 Apr 2018 15:39:51 +0000 (UTC)
  • Authentication-results: nd.edu; dkim=none (message not signed) header.d=none;nd.edu; dmarc=none action=none header.from=internet2.edu;
  • Ironport-phdr: 9a23:MzWzPxdwC0rYPMbqKf6D307xlGMj4u6mDksu8pMizoh2WeGdxc26bBSN2/xhgRfzUJnB7Loc0qyK6/umATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfb1/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4rx1QxH0ligIKz858HnWisNuiqJbvAmhrAF7z4LNfY2ZKOZycqbbcNgHR2ROQ9xRWjRPDI28cYUBEugOM+VWr4bzqFQBsRq+CBKpBO/z0DJJhmP60Lc43uknDArI3BYgH9ULsHnMstj1NL0SUeGuzKnUyjXDd/NW1inn6IPVcB4hvOqDXbN2ccre1EIiEB/KjlWNqYP+PjOV0OsNvnOa7+pmSeKglXQnqwdvrTiz2MsgkJfGiZ8Iyl3d8yhy3Yg7Jdq9SEFhYN6kFoNdtzyAN4tyWM8iWGRotD4gxb0Do5G6fS8KyJI9yxHDbPyHdpCE4gr5W+aKOjd5inVleKiiiBqo6kigz/XwVsiy0FZWsCVFiN/MuW4R1xDN8MSIVOZy/lq51TaUyQ/c9vtELl4olarALp4u2LgwmYAcsUvdBC/6gl/2g7GMeUo54uSo9v/nbav8pp+aLYB0jx/xPr41msy6B+kzLwsAX3CD9OiizrLv4VD1TbBXgvErj6XUtZ7aKMsHqqKlBgJY0Jgs5hmhAzqj1dkUg2ULIE5ddB+HgIXlIUzCLfL4APulnlihki1nyv/IM7DnH57DNGLMkK37crZ480NcyBQ8zdRY559MEr8MPPX9VlPsuNDBExI2MRK4z//gCNpmyIwSQ2WPArKFMKzJtl+I++QvLPSWaI8Nojb9LOQl6ODygn8lmF8deq+p0YEQaHClAvRmJ0KZYX3vgtsbDWgKuQ8+QPTriF2ETzFTe26/U7wm6T0nFY6rCJrPSp2wjLGE0ie2EYFaanxDB12OD3jleJuIVvIJZS6MPsNtjiQIVb27RI8g0RGuuhX6y71iLufM5iIYtY/j28N05+3VmhE/7j10D8KB026TVWF0mH0HRyMo0Kxlv0Ny10qD3bBig/NEDdxT++9JUgAiOJ7T1ex6DM3yWhrfcdeTUVqmX86mDi8rTtIq2NIOZ0d9G86+jhDYwSamGb4Vl7qXBJMq6KLc2Wb+J9pjx3rcyqYukkQmEYNzMjiEga55vzPYB5TAn0iD3/KIcqQamhXG9H2KwWeUlEdUFgN8TPOWc2oYYx79rc74/V/FV7+jE/wHLwFAz8HKfqBKd9foi1puRfH/Nc7Ybn7r3Wq8GEDblfu3cIP2djBFj23mA08enlVWpC7eOA==
  • Spamdiagnosticoutput: 1:0


Good addition to the mix, John. Do you use this feature and then how do you deploy it? Would you include such secrets in a cloudformation template or just create them manually, as needed? There is also a 4096 byte limit to each secret, so has lengthty configuration items that contain secrets been a problem?

-c


On Sun, 29 Apr 2018, John Schrader wrote:

This is a great conversation..
For those of us running in AWS cloud, AWS has released "SecretsManager" [1]

SecretsManager opens up some interesting possibilities for both EC2 instances
and containers(tasks) running in ECS.

As a POC, I've created an elConfig class (thanks to Chris for the capability)
that retrieves values for hibernate properties:

hibernate.connection.url.sm.elConfig =
${edu.internet2.middleware.grouperClient.config.SecretsManagerElClass.getSecret('/grouper/dev','url')}
hibernate.connection.url =
$$hibernate.connection.url.sm$$

hibernate.connection.username.sm.elConfig =
${edu.internet2.middleware.grouperClient.config.SecretsManagerElClass.getSecret('/grouper/dev','username')}
hibernate.connection.username =
$$hibernate.connection.username.sm$$

hibernate.connection.password.sm.elConfig =
${edu.internet2.middleware.grouperClient.config.SecretsManagerElClass.getSecret('/grouper/dev','password')}
hibernate.connection.password =
$$hibernate.connection.password.sm$$
from SecretsManager.

Read/Decrypt access to the `/grouper/dev` secret is controlled by the role
associated with an EC2 instance or ECS task.
Using a role helps with the initial credential bootstrapping and allows for
immutability.

-John

[1] https://aws.amazon.com/secrets-manager/








On Thu, Apr 26, 2018 at 1:27 PM, Jack Stewart
<>
wrote:
Everyone,

Thank you all for your wonderful feedback!  I hope the discussion continues.

A few thoughts:

- Although Grouper can run with environment variables, it would take a lot of
time to convert, and each major upgrade could possibly be made tricky as a
result.  Or am I being too
paranoid?

- I don’t quite see consensus on a clear way forward.  All the information
presented here has been helpful, though.  I will check what others are doing
locally.

Jack


-- 
Jack Stewart
Solutions Architect, Identity and Access Management
University of Michigan
4251 Plymouth Road
Ann Arbor, Michigan 48105-3640
(734) 764-0853

On Apr 26, 2018, at 12:39 PM, Hyzer, Chris
<>
wrote:

Fyi grouper config can happen in env vars, also the sources.xml can be
migrated to subject.properties


https://spaces.internet2.edu/display/Grouper/Grouper+configuration+overlay#Grouperconfigurationoverlay-Environmentvariables


https://spaces.internet2.edu/display/Grouper/Grouper+sources.xml+conversion+to+subject.properties

Thanks
Chris

-----Original Message-----
From:


[mailto:]
On Behalf Of Christopher Hubing
Sent: Wednesday, April 25, 2018 1:00 PM
To: Jack Stewart
<>
Cc:
;
csp study grouper
<>
Subject: Re: [grouper-users] Containerized Grouper and Secrets


For I2, we are storing secret things in an encrypted S3 bucket. The
build
host has access to read from it, and then pushes the images to a private
Elastic Container Repo. The containers run in ECS.

Here's an example of our Dockerfile for the UI:

https://github.internet2.edu/gist/chubing/c4e663ab5a39fb73dccdcd748a92c5fe

Since the new Grouper container is pushed to Dockerhub (and have tags
for
patches), it should make it pretty easy to manange (hopefully).

-c

On Wed, 25 Apr 2018, Jack Stewart wrote:

Everyone,

I would like to start out by saying that the new role-based
Grouper containers are great!  It was very easy to build the images.


Now my question is, what are other schools doing with regard to their
Grouper configurations?  Are you "burning them into" storing them in the
containers
themselves, or are you using

secrets?


Converting an application like Grouper to use secrets would be a
LOT of work.  Effectively, you would need to convert all of the settings to
environment
variables.  How would you deal with

the sources.xml files which, by design, need to be customized?


Many thanks,

Jack



--

Jack Stewart

Solutions Architect, Identity and Access Management

University of Michigan

4251 Plymouth Road

Ann Arbor, Michigan 48105-3640

(734) 764-0853






--
John Schrader
Identity and Access Management
Office of Information Technologies
University of Notre Dame

EVERYTHING SHOULD BE MADE AS SIMPLE AS POSSIBLE, BUT NOT ANY SIMPLER—ALBERT
EINSTEIN




Archive powered by MHonArc 2.6.19.

Top of Page