#security - March 2020

btai
btaiover 6 years ago
Adam Blackwell
Adam Blackwellover 6 years ago
@Adam Blackwell has joined the channel
btai
btaiover 6 years ago
Has anyone used gatekeeper without keycloak? Works ok? Thinking about integrating it with one login
erik
erikover 6 years ago
Meb
Mebover 6 years ago
regarding:
https://github.com/cloudposse/bastion
I see that if you add slack notification, webhook token will be in env vars...
Meb
Mebover 6 years ago
wouldn't that be safer to login using another user than root? to hide it?
Meb
Mebover 6 years ago
even if it's an alpine docker with minimal commands
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 6 years ago
it's just tricker to orchestrate and in the end, all the webhook can do is post messages. Of course, that can be used for phishing and other things, but don't see any way an unprivileged user couldn't game it.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 6 years ago
oh, and the idea with bastion is to mount a passwd file so users aren't root.
Meb
Mebover 6 years ago
yep agree but they are bound to root on bastion. instead of user without sudo
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 6 years ago
no, sshd should be handling that like any other system
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 6 years ago
sshd runs as root so it can drop perms to the user logging in
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 6 years ago
yes, the container itself runs as root
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 6 years ago(edited)
but that's the only way sshd can have the right permissions to change uid
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 6 years ago(edited)
if we had the container run as nobody for example, then sshd could not change uid to something like UID 1001
Meb
Mebover 6 years ago
by the way noticed the make is not working. Strange the make build:latest will fail in the project. Did I miss something?
Meb
Mebover 6 years ago
I grabbed instead the latest build
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 6 years ago
I think just run “make build”
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 6 years ago
mumoshu
mumoshuover 6 years ago
@mumoshu has joined the channel
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 6 years ago
@Jeremy G on our team is also curious if we can do this?
mumoshu
mumoshuover 6 years ago(edited)
@Erik Osterman (Cloud Posse) It isn't possible today but seems easy to add support for. Could you expand more on your use-case(s) though?

https://github.com/mumoshu/aws-secret-operator/issues/22#issuecomment-599817070
Maciek Strömich
Maciek Strömichover 6 years ago
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 6 years ago
Adding @U010XGY9B46 bot