Perl 6 - the future is here, just unevenly distributed

IRC log for #confidant, 2016-06-10

| Channels | #confidant index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:26 Ryan_Lane joined #confidant
01:48 ilbot3 joined #confidant
01:48 Topic for #confidant is now Secret management for AWS. https://lyft.github.io/confidant Channel logs at http://irclog.perlgeek.de/confidant/
18:25 lyftbot [jmickle] @ryan-lane hey there
18:25 lyftbot [jmickle] I am having an issue where when i try to do anything in the interface it gives me 'Unexpected server error.' but no logs are visible I am running the docker container on ECS
18:35 Ryan_Lane hey jmickle
18:36 Ryan_Lane you're running 1.0 or 1.1?
18:36 Ryan_Lane latest == 1.0
18:36 lyftbot [jmickle] uh whichever is pulled from lyft/confidant
18:36 lyftbot [jmickle] on docker hub
18:36 Ryan_Lane yeah, that'll pull latest by default
18:37 lyftbot [jmickle] hmm
18:37 Ryan_Lane hm. it should be outputting to stdout/stderr
18:37 lyftbot [jmickle] well it may be and i may not be able to see it
18:37 lyftbot [jmickle] i wonder if docker attach
18:37 lyftbot [jmickle] would pick it up?
18:37 Ryan_Lane I haven't used ecs, so I'm not too sure how to get its logs
18:37 Ryan_Lane don't ecs logs to go cloudwatch logs?
18:37 lyftbot [jmickle] let me investigate that
18:38 lyftbot [jmickle] sort of just using ecs and confidant for first time for this project
18:38 * Ryan_Lane nods
18:38 Ryan_Lane have you tried it without ecs?
18:38 Ryan_Lane just using straight docker
18:38 lyftbot [jmickle] i have not i suppose i should
18:38 lyftbot [jmickle] i guess i put a lot of faith into ecs
18:38 lyftbot [jmickle] haha
18:39 lyftbot [jmickle] ecs has certainly been a bumpy road
18:39 Ryan_Lane heh. well, I'd hope ecs works relatively similar to straight docker
18:39 lyftbot [jmickle] its very premature
18:39 Ryan_Lane but that's probably asking for a lot
18:39 lyftbot [jmickle] i may just build a docker env
18:39 lyftbot [jmickle] haha
18:39 Ryan_Lane well, if you get logging out of docker and not out of ecs, let me know. I'd like to make sure it logs properly in both places
18:39 lyftbot [jmickle] will do, i will get back to you shortly :-)
18:40 lyftbot [jmickle] is there a config param to specify the output of logs?
18:41 Ryan_Lane are you looking in /var/log/ecs?
18:41 lyftbot [jmickle] or its just using stdout and stderr?
18:41 Ryan_Lane it's gunicorn, so you may be able to run it with params to send logs to files
18:42 Ryan_Lane hm. ecs says you should be able to use `docker logs <container_id>`
18:42 Ryan_Lane which should show stderr/stdout
18:43 lyftbot [jmickle] docker logs only seems to show the web requests
18:43 lyftbot [jmickle] like 10.1.21.202 - - [10/Jun/2016:18:27:06 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "ELB-HealthChecker/1.0"
18:43 lyftbot [jmickle] nothing else is coming in there
21:07 lyftbot [jmickle] @ryan-lane     rv = self.dispatch_request()
21:07 lyftbot File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request
21:07 lyftbot return self.view_functions**req.view_args
21:07 lyftbot File "/srv/confidant/confidant/authnz.py", line 193, in decorated
21:07 lyftbot if email_suffix and not user.email.endswith(email_suffix):
21:07 lyftbot [jmickle] result.user has not method of .endswith()
21:07 lyftbot [jmickle] when specifying the config param GOOGLE_AUTH_EMAIL_SUFFIX
21:21 lyftbot [jmickle] yeah @ryan-lane all the errors seem to be relating to the session of the user and not being able to actually get a user token
21:22 lyftbot [jmickle] oddly enough it still lets me login perfectly fine
21:30 Ryan_Lane @jmickle ah. I think I know what the issue may be
21:31 lyftbot [jmickle] could it be something on my oauth setup?
21:31 Ryan_Lane @jmickle I think it's lack of APIs enabled on google
21:31 lyftbot [jmickle] ahh which one?
21:31 Ryan_Lane you need google+ api and users api or something along those lines
21:31 Ryan_Lane we really need to add docs for this
21:31 Ryan_Lane in 1.1 SAML support was added as well, btw :)
21:31 Ryan_Lane (and google can act as a SAML IdP now)
21:32 Ryan_Lane that I think it completely missing docs, but we'll hopefully add some before the 1.1 release
21:48 Ryan_Lane @jmickle: https://github.com/lyft/confidant/issues/58
21:48 Ryan_Lane that issue I think lists the various apis to be enabled
21:48 Ryan_Lane looks like google+ is the right one

| Channels | #confidant index | Today | | Search | Google Search | Plain-Text | summary