/srv/irclogs.ubuntu.com/2016/06/14/#ubuntu-server.txt

jayjoI'm trying to setup ssl on a mongodb instance I have on an ubuntu server... I have a pem file and crt file from Letsencrypt using this guide: https://gist.github.com/leommoore/1e773a7d230ca4bbe1c2 so now I can run the mongod with ssl enabled. Do I now use this certificate to produce client certs and distribute them over gpg?00:39
patdk-lapjayjo, no00:51
patdk-lapyou should not use letsencrypt for your mongo00:51
patdk-lapunless you plan to have 3rd parties access your mongo directly00:51
jayjono I don't, but I thought that self signed certs was not secure00:58
patdk-lapheh?00:59
patdk-lapwho said anything about selfsigned?00:59
patdk-lapand why would selfsigned be insecure?00:59
patdk-lapevery certificate you trust, is selfsigned00:59
jayjoso I generate my own certificates for my mongo instance, and then the .crt that I generate is what I use to produce pem files for clients?01:00
patdk-lapno01:01
patdk-lapbut you should always generate your own certificates, no matter who signs them01:01
patdk-lapyou need to setup your own CA01:01
patdk-lapsign your mongo server cert with your ca01:01
patdk-lapthen make your client certs, and sign them with your ca01:01
patdk-lapthe ca must be selfsigned, just like every other ca cert you have01:02
patdk-lapor cross-signed, but good luck finding someone to do that01:02
runelind_qcan you run something like Gentoo inside an LXD container on 16.04?01:03
jayjoso if I follow the guide on this page: https://help.ubuntu.com/lts/serverguide/certificates-and-security.html and create my own CA I then use that to sign all of the certificates?01:04
patdk-lapsure01:04
patdk-lapdon't know if that page goes into enough detail01:04
patdk-lapthink what most people do is use tinyca01:04
runelind_qI use xca which has a crappy gui interface, but it does the job.01:05
runelind_qlooks like there is a Gentoo template on linuxcontainers.org01:06
runelind_qbut I don't know how to import them :)01:08
patdk-lapimport?01:08
patdk-laplxc is just a folder/ partition/ ...01:09
patdk-lapthere is nothing to do01:09
sdezielrunelind_q: maybe this will help you https://www.stgraber.org/2016/03/30/lxd-2-0-image-management-512/01:09
JanCthere is also pyca & gnomint01:09
JanC(for CAs)01:10
JanCand probably more01:10
jayjopatdk-lap: can I use tinyca on my desktop and use the certs on the server?01:13
patdk-lapyou could01:13
=== JanC is now known as Guest42926
=== JanC_ is now known as JanC
patdk-laponly one server?01:14
jayjoyes its just an EC2 instance01:14
patdk-lapisn't that pointless then? unless your running mongo on one, and the clients on others01:14
patdk-lapno point to bother with ssl01:14
patdk-lapas if they can see the traffic, they are root, and can just read it from disk01:14
jayjomongo is running on the instance and it needs to be connected to from other instances - those instances dont have mongo01:15
jayjowhen ssl is enabled I need to give my client a certificate, and I know it's that I have a very high-level misunderstanding of what's going on, but that's where I'm stuck. Do I use the crt to generate a pem file for the client, and then distribute it to the client?01:18
patdk-lapheh?01:18
patdk-lapwhat is a crt and pem files?01:18
patdk-lappem is a type of encoding for certificates01:18
runelind_qsdeziel: I'm looking at images on https://jenkins.linuxcontainers.org/view/LXC/view/LXC%20Templates/01:19
patdk-lapyou need to generate a server cert for mongo01:19
patdk-lapand client certs for the mongo clients01:19
sdezielrunelind_q: I just tested launching a gentoo container with: lxc launch images:gentoo/current/amd64 gentoo01:19
sdezielrunelind_q: worked well01:19
runelind_qoh, jolly good.01:20
jayjoAnd those processes are completely separate? How does the server know to trust the client? Do I place their public certificates somewhere?01:20
patdk-lapjayjay, nope01:20
patdk-lapthat is the whole purpose of signing01:20
runelind_qsdeziel: trying that now - seems to be stuck at retrieving image 100%01:24
sdezielrunelind_q: once the image is retrieved, the container is started so maybe it's just taking some time?01:25
runelind_qoh, there it goes01:25
sdezielrunelind_q: also, depending on the storage backend, cloning the retrieved image into your new container can take some time. It's almost instant on ZFS01:26
sdezielbut can take much longer on other backend types01:26
runelind_qyeah, ZFS backend.01:26
=== Kenrinx is now known as kenrin
=== prince is now known as kody
jayjoSo I have no created the ca authority on my ubuntu server. Do I create a pem file for the mongo server, and then using the same CA authority to create the certificates, create an additional one to clients?02:58
jayjoAnd I distribute the cacert.crt file along with the generated pem files to clients?02:59
=== kody is now known as prince|offline
=== athairus is now known as afkthairus
LJHSLDJHSDLJHguys, I know ubuntu-server is more prefered to install for creating web or mail server box than a normal desktop distro. my question is, what are the reasons?06:20
ivoksno UI06:20
LJHSLDJHSDLJHso?06:21
LJHSLDJHSDLJHhow does that makes it better?06:21
LJHSLDJHSDLJHI was thinking about security as a reason indeed06:21
cpaelzerLJHSLDJHSDLJH: noUI -> less stuff auto installed -> much less exposure surface regarding security06:28
sarnoldalso storage space; no need to pay to store programs you'll never use06:37
LJHSLDJHSDLJHcpaelzer: are there any scripts for auto ubuntu server installation? where may I find some if so?06:42
sarnolddepends what you need; FAI, preseeding, MAAS, juju, cloud-init, debootstrap, uvt-kvm ..06:46
cpaelzerLJHSLDJHSDLJH: just wanted to answer, but sarndold already listed most of what came to my mind06:53
cpaelzerLJHSLDJHSDLJH: the important point is to know where/how you want to automate installs06:53
cpaelzersarnold: sorry for that extra d in your nick06:53
sarnoldhah, 'sarndold' :) hehe06:54
LJHSLDJHSDLJHsarnold: I don't know what those names are! so what I miss knowing here? in other words what are those?07:01
LJHSLDJHSDLJHdoes anyone know why my working website is throwing connection error even though I've changed mysql password into connection.php file?07:02
LJHSLDJHSDLJHI saved into /var/www/html/index.php07:02
sarnoldLJHSLDJHSDLJH: they're all tools that can do automated / customized installs of some sort. debootstrap populates a directory with a distribution. preseeding is the native way to automate the installer. FAI is a network-driven way to automate installs. MAAS gives you the ability to treat a cluster of machines as if they were cloud machines.07:03
sarnoldLJHSLDJHSDLJH: juju has you focus on the tasks you want the "thing" to do, whether it's allocating virtual machines from a cloud provider, a local openstack install, or lxd containers..07:03
sarnoldLJHSLDJHSDLJH: cloud-init automates installing / configuring tasks on 'cloud' providers, local installs.. uvt-kvm is a frontend to virsh/libvirt.07:04
LJHSLDJHSDLJHcool stuff, I've to find a time slot to go through all those cool things one by one07:09
LJHSLDJHSDLJHare there any useful url(s)?07:09
sarnoldLJHSLDJHSDLJH: https://help.ubuntu.com/lts/serverguide/cloud-images-and-uvtool.html  http://www.ubuntu.com/cloud/juju  http://www.ubuntu.com/cloud/maas  https://cloudinit.readthedocs.io/en/latest/ http://fai-project.org/07:12
LJHSLDJHSDLJHreally appreciate it sarnold, I saved all those into my todo folder07:14
LJHSLDJHSDLJHnow back to my apach2 server problem07:14
LJHSLDJHSDLJHI threw all files into /var/www/html/* but facing connection problem , it could be file access problem07:15
LJHSLDJHSDLJHwhat chmod level do you usually give to files into /html/ folder?07:15
sarnoldit depends upon who will be managing the files, and how; either 444 or 644 or 66407:17
nymonyWhy is ubuntu changing interface naming with almost every version? From eth0 > em1 > p2p1 > p4p1 > and currently some jibberjabber09:33
bekksnymony: http://askubuntu.com/questions/628217/use-of-predictable-network-interface-names-with-alternate-kernels09:34
=== _degorenko|afk is now known as degorenko
toshywoshyI can boot up ubuntu 14.04 lts trusty with the root partition in an lvm09:43
toshywoshyI keep getting "Gave up waiting for root device.  Common problems: ALERT!  /dev/mapper/rootvg-rootlv does not exist."09:44
=== Xin is now known as TRIGGERED__
toshywoshyhowever when it drops down to the initramfs cmd I can see and mount /dev/mapper/rootvg-rootlv09:44
toshywoshys/can/cannot/g09:45
=== TRIGGERED__ is now known as Xin
jamespagecoreycb, ddellav: ok finishing up my ci shift now; rebases trove/newton patches, updated dogpile.cache to 0.6.1 including uploades to experimental and yakkety; dealt with transition of dogpile.core->dogpile.cache10:11
jamespagesome other transitent schroot problems - re-ran failed builds OK10:12
jamespagenote failues of designate for liberty; nova/trusty in mitaka - not looked at those10:12
LJHSLDJHSDLJHhow to set these daemons to run automatically after reboot without having to login or run any of them .. apache2, mysql, ufw11:33
LJHSLDJHSDLJHwebmin11:33
sarnolddid any not start correctly?11:34
LJHSLDJHSDLJHafter remote restart from webmin none of them is back online11:34
LJHSLDJHSDLJHoh I remember now11:34
LJHSLDJHSDLJHvmware problem11:35
LJHSLDJHSDLJHit doesn't obtain ip unless I got sudo dhclient11:35
LJHSLDJHSDLJHhow to automate obtaining ip addresses?11:35
sarnoldcareful with webmin; I think most of those control-panel things are terrible rubbish that allow anyone on the internet to run anything on your computer. Be sure to firewall it to only -your- IP address.11:35
sarnoldconfigure /etc/network/interfaces correctly11:35
LJHSLDJHSDLJHno worries its for training project at the time being11:36
LJHSLDJHSDLJHis there any reference on how /etc/network/interfaces should be configured?11:37
sarnoldman 5 interfaces   :)11:37
LJHSLDJHSDLJHoh real men never read man pages :p11:38
bekks!webmin | LJHSLDJHSDLJH11:43
ubottuLJHSLDJHSDLJH: webmin is no longer supported in Debian and Ubuntu. It is not compatible with the way that Ubuntu packages handle configuration files, and is likely to cause unexpected issues with your system.11:43
LJHSLDJHSDLJHI've already tried auto ens33 into interfaces yesterday but it didn't work11:43
LJHSLDJHSDLJHubottu: what is supported currently so that I can use?11:44
ubottuI am only a bot, please don't think I'm intelligent :)11:44
LJHSLDJHSDLJHlol11:44
LJHSLDJHSDLJHso my question bounces back at you bekks :))11:45
sarnoldLJHSLDJHSDLJH: pastebin the whole /etc/network/interfaces and perhaps someone will spot something11:45
bekksLJHSLDJHSDLJH: zentyal11:46
=== iberezovskiy|off is now known as iberezovskiy
LJHSLDJHSDLJHsarnold: I gave it another try and it worked11:50
LJHSLDJHSDLJHthanks guys11:50
sarnoldaha ;)11:50
LJHSLDJHSDLJHI've followed some tutorial to install openssl, created certificate and then redirect all port 80 traffic to 43311:53
LJHSLDJHSDLJHnow https works but no automatic redirection11:53
fricklerjamespage: coreycb: IIUC one of the CVEs in http://lists.openstack.org/pipermail/openstack/2016-June/016489.html is still present in Neutron 8.1.0, would be great to have 8.1.2 released for Xenial11:54
LJHSLDJHSDLJHplease send me pm if you got anything about the ssl redirection, I gotta run11:56
coreycbfrickler, that is ready to release actually12:08
coreycbbeisner, jamespage: ceilometer 1:5.0.3-0ubuntu1~cloud0 and keystone 2:8.1.2-0ubuntu1~cloud0 are ready to promote to liberty-updates when you get a moment12:12
coreycbfrickler, sorry neutron 8.1.2 is not quite ready to release, but it's in the queue.  I'll press on the sru team for a review.12:13
coreycbjamespage, re: designate for liberty -- it looks like that issue with dh_python not ignoring != is resurfacing.  ddellav was hitting that on the mitaka stable update too.12:20
jamespagecoreycb, that's quite likely - I suspect the dh-python in wily and the backport for trusty both have the same bug that the xenial one did12:53
jamespagesurprised you hit the same problem on a mitaka update tho ddellav12:53
EmilienMhey jamespage12:54
jamespageEmilienM: hey!12:54
EmilienMwe're trying to run tempest with the newton repo, and look what we got:12:54
EmilienMhttp://logs.openstack.org/78/327678/25/check/gate-puppet-openstack-integration-3-scenario001-tempest-ubuntu-xenial/d6c6085/console.html#_2016-06-14_12_19_44_79012:54
EmilienMImportError: No module named keystone_tempest_plugin.plugin12:54
jamespagehmmm12:55
jamespageEmilienM: you don't install tempest from packages do you?12:55
EmilienMjamespage: no, from source12:55
EmilienMjamespage: should we?12:56
jamespageEmilienM: we don't12:56
EmilienMjamespage: how do you deploy / run tempest?12:56
jamespageEmilienM: git clone, tox -e smoke / full12:56
EmilienMsame12:56
jamespagethat looks like some sort of tempest dep problem for the all-plugin target12:57
EmilienMyeah12:59
jamespageEmilienM: do you run tempest directly on the machine that has the cloud deployed on it?12:59
EmilienMjamespage: on the machine13:00
jamespageEmilienM: this might be the cause - the python-keystone package does not ship with the keystone_tempest_plugin python module but the module still declares tempest.test_plugins in its setup.cfg13:01
jamespageEmilienM: I think that if we restore the keystone_tempest_plugin module it will resolve the problem, but I'd also look at the isolation of tempest from the installed system in the way you are testing...13:02
EmilienMjamespage: yeah, we don't have this problem on rdo platform13:03
EmilienMjamespage: you run tempest in venv?13:04
jamespageEmilienM: we can add the keystone tempest plugin to the packaging, but I really don't like this approach to plugin loading from system packages13:04
EmilienMjamespage: can you show me the source please?13:04
jamespageEmilienM:  its just straight up use of the tox targets...13:05
EmilienMbut do you have code handy on github or?13:05
jamespagethe test machine is not part of the cloud, so will never have openstack packages installed on it - apart from a few clients13:05
jamespageEmilienM: erm yeah - one sec13:05
jamespageEmilienM: http://bazaar.launchpad.net/~uosci/ubuntu-openstack-ci/trunk/view/head:/job-parts/osci_openstack_common.sh#L36913:09
jamespagewe actually appear to build out the tempest venv manually first; and then use the run_tempest.sh script13:10
EmilienMjamespage: ok I see13:11
EmilienMjamespage: could we have the keystone plugin loaded in packaging until we sort things out?13:11
EmilienMiberezovskiy: see the script ^13:11
jamespageEmilienM: I should think so13:12
jamespageEmilienM: let me take a look13:12
EmilienMok13:12
jamespageEmilienM: this is a little bit of a problem with tox virtualenvs - by default I think they will use system provided modules13:12
jamespageso its quite easy to get pollution of the virtualenv from the host os13:13
caribourbasak: did you finally have time to look at the kexec-tools merge ?13:14
EmilienMjamespage: mhh the problem for us it rdo provides packaging with loaded plugins too13:18
jamespageEmilienM: we'll add them to the packages so as to be feature comparable from your perspective13:19
EmilienMthanks a lot13:19
jamespageEmilienM: just checking the packaging change and I'll get it uploaded :-)13:19
iberezovskiythanks13:19
EmilienMiberezovskiy: did you noticed other issues in other jobs ? or tempest was only blocker?13:19
iberezovskiyonly tempest for now13:20
EmilienMcool13:20
EmilienMjamespage: so we're close!13:20
gyanHi13:21
coreycbjamespage, beisner: python-os-brick 0.5.0-0ubuntu4~cloud0 is ready to promote to liberty-proposed when you have a moment13:24
jamespageEmilienM: are you using the UCA or the branch package build PPA atm?13:32
EmilienMjamespage: the UCA13:33
EmilienMjamespage: I saw the mail on openstack-dev13:33
EmilienMbut we can come back on the ppa13:33
=== prince|offline is now known as prince
jamespageEmilienM: that's fine - I'll do this into the UCA as well; just uploaded to yakkety to kick that process off13:38
EmilienMok13:38
jamespagecoreycb, 99713:56
coreycbjamespage, uploads?13:57
jamespageyah13:57
jamespagehehe13:57
jamespagenearly 6 years worth....13:57
ddellavjamespage nice13:57
* jamespage ponders what to pick as 100013:57
ddellavcoreycb is keystone sru the one with the dh_python != issue?13:57
coreycbjamespage, awesome :)13:58
cpaelzerjamespage: 1000 = random revert13:58
=== ashleyd is now known as ashd
jamespagewell if you counted my SRU's in pending approval...13:58
coreycbddellav, I think so, you are working on it :)13:58
ddellavcoreycb ok, i thought there was a fix for that and we were waiting for it to be accepted upstream13:59
jamespageddellav, coreycb: just for future reference watch out for aodh point releases14:00
jamespagethey are not on a cadence with the rest of openstack, so we should have done 2.0.1-0ubuntu1 -> yakkety14:00
jamespageand done a 2.0.1-0ubuntu0.16.04.1 to xenial14:00
coreycbjamespage, ah.. they didn't release a b1 for newton14:02
ddellavjamespage ok i'll make a note of that14:03
jamespagecoreycb, no they won't - they are on independent releases...14:03
jamespagelike ironic for example14:03
coreycbjamespage, ok.  so we'll need to upload 2.0.1-0ubuntu1 to yakkety and 2.0.1-0ubuntu0.16.04.1 to xenial.14:07
jamespageto late14:07
jamespage2.0.1-0ubuntu1 is already in Xenial proposed14:07
coreycbjamespage, oh it was accepted14:07
jamespageso you'll have todo a 2.0.1-0ubuntu2 for yakkety14:07
coreycbjamespage, ok14:07
=== ashleyd is now known as ashd
jamespagecoreycb, os-brick promoted to liberty-proposed14:17
jamespagecoreycb, doing ceilometer and keystone now14:18
jamespagecoreycb, ok done14:21
coreycbjamespage, thanks14:21
jamespagedid libvirt-python as well14:21
jamespageas that's had long enough to bake14:21
jamespageand qemu - stack of sec updates...14:22
coreycbddellav, this is the original dh-python bug 158106514:23
ubottubug 1581065 in dh-python (Ubuntu Yakkety) "incorrect parsing of != dependency versions" [High,Fix released] https://launchpad.net/bugs/158106514:23
coreycbddellav: so I think we need to investigate why dh-python is not ignoring != in xenial for the case you're hitting14:24
coreycbddellav, also we need to look at SRUing the original fix to wily  since designate is now hitting it, assuming it fixes it14:27
caribourharper: I'm quite puzzled about the multipath-tools bug I told you about a few hours ago14:36
caribourharper: the patch you submitted to debian has the 'clean-tree' statement on build-stamp:14:37
caribourharper: +build-stamp: clean-tree14:37
caribourharper: if I look at the source package in Xenial I have : clean: clean-tree !!!14:38
caribourharper: so my debdiff of the upstream debian against our xenial version has :14:39
caribourharper: -build-stamp: clean-tree14:39
caribou+build-stamp:14:39
coreycbfrickler: neutron 8.1.2 has been accepted into xenial-proposed for testing14:45
rharpercaribou: hrm, so it does seem like we're missing that in X14:45
caribourharper: no problem, I'm about to SRU the issue so I'll fix that up14:46
rharperI may have not included it since we don't use the systemd unit file, now that it's fixed in debian we can sync the change14:46
caribourharper: I'll ping you to review the SRU before I upload14:46
rharpersure14:47
fricklercoreycb: great, thx14:48
=== afkthairus is now known as athairus
jayjo_I've been asking this question yesterday & today... but i just wanted to clarify again at a high level. I want to secure my mongodb with SSL. I created a CA Authority to sign certificates. I then create a pem file signed by the CA to run the mongod daemon with SSL. That's all fine and good, but then clients need these certs, as well. So I generate them and send them to the client software. Because th15:46
jayjo_ey all use the CA to sign it, they all know the communication can be trusted. The server has a pem and a CA file, and so does the client. the CA is the same for all clients/servers. Is that broadly correct?15:46
LJHSLDJHSDLJHwill ubuntuServer.iso be bootable if I just dd it on a pin drive?15:49
LJHSLDJHSDLJHfeeling lazy to figurer it myself :D15:49
rbasakjayjo_: it would be easier/safer to not give the clients certs at all, only the CA to verify the server cert. Then you don't have to worry about a client pretending to be a server (which you can prevent with extensions or a secondary CA layer, but it's more work).15:52
rbasakjayjo_: specifically: one CA, keep its private key safe. One cert for each server, give to servers with respective private keys only. Only give the CA public cert (no private key at all) to clients.15:53
rbasakUnless clients check the hostname against the cert DN, that is. But like I said, more work :)15:54
jayjo_OK - I think that is reasonable. I can implement that. Is there a way to check the details of the server certificate? Like the subject and host it was generated for?16:03
rbasakClients can do that. It's most common in HTTPS. It's up to the client to do it though. I'm not sure about the MongoDB client.16:19
=== Edgan_ is now known as Edgan
rbasakmagicalChicken: may I have an update on your progress on bug 869017, bug 1394403 and bug 1511222 please?16:24
ubottubug 869017 in kbd (Ubuntu) "Ubuntu server enables screenblanking, concealing crashdumps (DPMS is not used)" [Medium,Triaged] https://launchpad.net/bugs/86901716:24
ubottubug 1394403 in apache2 (Ubuntu Trusty) "RewriteRule of "^$" is broken" [Medium,Incomplete] https://launchpad.net/bugs/139440316:24
ubottubug 1511222 in apache2 (Ubuntu Trusty) "Incorrect trusted proxy match test in mod_remoteip" [Medium,Triaged] https://launchpad.net/bugs/151122216:24
magicalChickenrbasak: yeah, so I have a patch for 1511222, and I did a quick check and I think it does work, but I need to reproduce the old bug and make sure today16:26
jgrimmjamespage, fwiw.. this report now fixed up to have an 'ubuntu-openstack' section.16:26
jgrimmjamespage, this -> http://reqorts.qa.ubuntu.com/reports/rls-mgr/rls-y-tracking-bug-tasks.html#ubuntu-openstack16:27
naccsdeziel: are you ok if I assign LP: #1570472 to you while you're working on the yakkety fix?16:27
ubottuLaunchpad bug 1570472 in puppet (Ubuntu) "Set systemd as default service provider" [Undecided,In progress] https://launchpad.net/bugs/157047216:27
magicalChickenI still have not been able to reproduce 1394403, I'm not sure what I'm doing differently from the reporter, but I keep seeing the change in b16:27
sdezielnacc: sure, I'll try to make time to get to this16:27
naccsdeziel: thanks! i'll keep an eye on it too -- if you dont' have the cycles, just let me konw, i can get it fixed today probably16:28
magicalChickenrbasak: and I'm not sure how or if 869017 should be fixed16:28
magicalChickenrbasak: I can definitely handle another bug this week though, I just don't know what to do about the two old ones16:29
sdezielnacc: if you can get to it today please do as I won't have time today, maybe tomorrow16:29
naccsdeziel: will do, and will note it int he bug16:30
sdezielthx16:30
naccsdeziel: thank you!16:31
sdezielnacc: I'll be able to test stuff for you today if that can help, just ping me16:32
naccsdeziel: ah great, yeah, that'd be perfect16:32
naccsdeziel: fyi, there's a much newer version of puppet stuck in yakkety-proposed. I'll try and unstick that first, as it'll be an easier yakkety fix16:39
sdezielOK16:40
EmilienMjamespage: can you ping me when the keystone pkg is updated in UCA ? so I can re-run tests16:42
rbasakmagicalChicken: thanks! Please can you take bug 1519120?16:44
=== prince is now known as prince|offline
ubottubug 1519120 in network-manager (Ubuntu) "Xenial: VLAN interfaces don't work until after a reboot" [Undecided,Confirmed] https://launchpad.net/bugs/151912016:44
magicalChickenrbasak: sure, I'll test out the patch there and see make a debdiff in the next few days16:46
rbasakThanks!16:46
jayjo_I'm not clear on this... I'm sorry to be persistent but I think it's a high-level misunderstanding so it's hard to dig into documentation. I and just reading as much as I can and I found this blog post about SSL in ubuntu with mongo: http://demarcsek92.blogspot.com/2014/05/mongodb-ssl-setup.html. I was able to connect using this 'client' pem file and this 'server' pem file. They're both referenced in17:13
jayjo_ the mongo.cnf. The connection works with these two. Am I supposed to then pass out this client pem file to a client I want to be able to connect?17:14
jayjo_so any client that wants to connect needs to pem from the server AND the pem for the client? It works in this example, but this seems to not be secure17:15
rbasakI'm not sure about the details of MongoDB in general. But it may help to understand that any SSL connection is automatically secure, but each party cannot verify the identity of the other party without a certificate. So to prevent man in the middle attacks, you need at least for the client to be able to verify the identity of the server by having the server use a certificate.17:16
rbasakIn the other direction (for example server authenticating the client), a password can suffice from a basic perspective, because the client checks that it really is talking to the server securely before revealing the password to it.17:18
rbasakOTOH, it's also fine for the client to use a certificate, and that's better in some ways because then the server doesn't need to be trusted with the shared secret (the password) either, though it is little more difficult to set up.17:18
rbasakTo verify a certificate, an endpoint can: 1) do nothing, in which case it's useless, but this is a common misconfiguration; 2) verify that the certificiate is signed by an authority on the list of allowed authorities (including your own if you like), but then a client could pretend to be a server to another client; 3) verify that the server is using a certificate marked by the authority as only for17:20
rbasakservers, but then a server could pretend to be a different server; or 4) verify that the server hostname to which it connected matches the hostname in the certificate, which is what web browsers do with HTTPS.17:20
sdezieljayjo_: this blog post give completely insecure instructions. Distributing the server's private key to all clients is really not required nor desired17:21
jamespageEmilienM: promoted to newton proposed; should build and publish in the next hour17:28
* jamespage eods'17:28
jayjo_I thought it was insecure because the pem files have both the secret key and certificate... what am I supposed to distribute to clients then? Just the certificate component... don't concat the key?17:30
sdezieljayjo_: if you pass the mongodb-cert.crt to the client that would be an improvement17:33
=== SpikeSpiegel is now known as gagagugu
coreycbjamespage, ddellav: aodh uploaded for newton17:43
ddellavcoreycb ack17:43
coreycbwell, xenial on yakkety that is17:43
coreycbsigh...17:43
coreycbmitaka on yakkety17:43
coreycbddellav, ^17:44
ddellavcoreycb so you did it for mitaka/yakkety not newton?17:44
coreycbddellav, right.  it's 2.0.1 so it is the mitaka point release, uploaded to yakkety.17:45
ddellavcoreycb ok17:45
coreycbddellav, the problem is that aodh doesn't have any newton releases right now, so we need to make sure the version in yakkety is > xenial17:45
ddellavcoreycb right, thats what jamespage said this morning17:46
coreycbddellav, yeah17:46
jamespagecoreycb, ddellav: as its release-independent its not really mitaka either17:50
jamespageat least I think so17:50
=== iberezovskiy is now known as iberezovskiy|off
coreycbjamespage, as if I needed the confusion :)17:57
EmilienMjamespage: ack, thanks18:06
=== alexisb is now known as alexisb-afk
=== alexisb-afk is now known as alexisb
=== Xin is now known as EthicalJesusi
EthicalJesusiwatup y'all20:21
EthicalJesusianyone recommend a home grade http cache?20:22
bekkssquid20:22
EthicalJesusiand is it worth it?20:22
bekksWorth what?20:22
EthicalJesusilike im on 100mbit fibre with a business grade modem/router20:23
EthicalJesusiat home20:23
bekksDefine "worth" in that context.20:23
EthicalJesusiI load google already in like 3ms20:23
EthicalJesusi3-620:23
bekksI doubt that.20:23
bekksYou have a ping latency to its IP.20:23
EthicalJesusiIt might take longer to check a cache20:23
EthicalJesusiPing latency is like 2ms20:24
bekksAnd the ping latency says entirely nothing on about how fast the page content is actually loaded.20:24
EthicalJesusithey have a server across the river from me I believe20:24
bekksWhich doesnt mean you are using it.20:24
EthicalJesusitraceroute confirms <320:24
bekksReally? Do you know the switch names/ip in your area?20:24
EthicalJesusiI have the local google servers ip, sure20:25
EthicalJesusi:|20:25
bekksWhich doesnt mean anything.20:25
EthicalJesusiIt does when I traceroute it.....20:25
EthicalJesusi?!20:25
bekksNope.20:25
EthicalJesusithis isnt complicated20:26
EthicalJesusiim not sure why you seem to think it is20:26
bekksIt is far more complicated than you think.20:26
EthicalJesusiperhaps you could explain20:26
EthicalJesusi:)20:26
bekksBased on the outout of traceroute you can determine the number of hops only, you cannot tell for sure where a hop is located.20:26
EthicalJesusiI mean my certification has lapsed but I was fully cisco accredited at one time lol20:26
bekksTechnically, you can get around half the earth in just one hop.20:27
EthicalJesusisure you can they name their servers and they are geolocatable by ip with like 80% accuracy20:27
bekksEthicalJesusi: Then you should know that...20:27
EthicalJesusiwhen its called perth.*sadas*sad8aF*.asf*saf20:27
EthicalJesusithen its in perth20:27
EthicalJesusilol20:27
EthicalJesusisimples20:27
bekksYou THINK it is.20:27
bekksNAmes are futile.20:27
EthicalJesusiwell im not getting 6ms loads from south australia20:28
EthicalJesusi:P20:28
bekksAnd you have no guarantees that you get your answers from across the river.20:28
EthicalJesusithats like 1000km for you20:28
EthicalJesusiI dont need guarantees lol, its just my home, but generally even if its 10x that TO go over east, 3500+km, its still only 60-80md20:29
EthicalJesusims20:29
bekksWhich is not in the scope of this discussion. This discussion is about the fact that you cannot tell wether you are using the google server across the river based on traceroute.20:30
EthicalJesusilol no, this discussion is about whether or not I should run a local http cache20:31
EthicalJesusiit is still like 320-380ms to the USA ;<20:32
bekksThat decision is up to you. Your initial question was which http cache you should use.20:33
EthicalJesusibut most cool kids have cdn's these days20:33
EthicalJesusiand should get an australian node ffs20:33
EthicalJesusiyeah then I was talking about the inherent cache latency vs a real life example of internet latency20:34
EthicalJesusifacebook and stuff take care of themselves really, they only need to update when theres an update except for the small initial load20:34
EthicalJesusiand they use a cdn20:34
EthicalJesusior are a cdn lol20:35
EthicalJesusiI guess20:35
bekksUSing your real life example, and remembering your former Cisco knowledge, you do know that a 3ms ping means a maximum distance of roughly 150km between source and target.20:38
bekksThats a wide river.20:38
EthicalJesusi2ms, and everything in Perth is far between ;P20:42
EthicalJesusiI think it is one of the biggest river systems in Australia though20:43
bekksI can see two rivers in Perth, on maps.google.com :)20:43
EthicalJesusiits the same river system20:44
EthicalJesusithe swan river system20:44
EthicalJesusianyway, its a huge governmental thing - and its the only reason I have fibre, they all run straight across the river to the central Perth exchange20:44
EthicalJesusifor this reason, most people tend to host their servers in subiaco or the likes20:45
bekks300km in legth, only.20:45
bekksnot that big :)20:45
EthicalJesusihaha... YOU SAID IT WAS A GOOD SIZE!20:45
EthicalJesusi....20:46
bekksWhen did I say that?20:46
EthicalJesusishhh20:46
bekksI guess I'll let you listen to the voices in your head, for a while.20:47
EthicalJesusity20:47
EthicalJesusiif I had a dns server I bet I could do better optimizations20:50
bekksSetup one.20:50
EthicalJesusi10/10 does not sound like fun21:05
van777hey all. i've just installed ubuntu-server in VMware. and VMWare tools. How to change the display resolution? "Display" is not active in Virtual Machine settings22:22
patdk-lapheh? it's just text22:26
compdoc640x480?22:26
compdocyou should be able tweak that. columns, text size, etc22:28
van777compdoc: ok, i've ssh-es with putty, good res now ))22:29
van777ssh-ed*22:30
van777You can setup delay: /set irc.look.smart_filter_delay 1522:50
van777sorry )22:50

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!