/srv/irclogs.ubuntu.com/2018/02/26/#ubuntu-server.txt

lordievaderGood morning06:58
Jeffrey4lwhere is the packaging source code for ubuntu cloud archive repo?08:14
=== masber is now known as masuberu
ktosiekIs there any tool for managing upgrades for multiple servers other than Landscape and apt-dater?12:07
ktosiekI'd love to have a workflow where I can see upgrades per package, and then apply them to specific groups of servers12:07
yeatsktosiek: puppet? ansible? (totally different approaches, each requiring forethought and up-front configuration setup)12:29
ktosiekI'm using Ansible for some hosts, but I could use a nice package-oriented dashboard :-)12:33
patdk-lapya, ansible and puppet/chef are backwards on how they think12:41
rbasakpatdk-lap: how do you think they should think?13:17
patdk-lapI don't understand how that has to do with anything13:19
patdk-lapthat is like asking me, how linux and windows should work13:20
patdk-lapthey are two totally different things designed for different purposes13:21
rbasakI thought you were making a general statement.13:23
patdk-lapI did13:23
patdk-lappuppet/chef conforms a system to a model you define13:24
patdk-lapansible conforms the app to the system13:24
rbasakOh13:24
patdk-lapthey work backwards13:24
rbasak"ya, (ansible) and (puppet/chef are backwards on how they think13:24
rbasakUh13:24
rbasak"ya, ((ansible) and (puppet/chef)) are (backwards on how they think)13:25
rbasakIs what you meant.13:25
rbasak"ya, (ansible and puppet/chef) are (backwards on how they think)13:25
rbasak"13:25
rbasakIs what I thought you meant.13:25
rbasakI follow now :)13:25
xnoxrbasak, hey, php7.1->7.2 transition is done, however php7.1 cannot yet be removed because there are packages that depend on the removed php-mcrypt (no longer provided by php7.2)13:56
xnoxrbasak, do you know if anybody knows how php packaging works, to potentially package this https://pecl.php.net/package/mcrypt standalone php mcrypt library?13:56
rbasakxnox: nacc was talking about that on Friday13:56
xnoxrbasak, ah, cool. Is he going to do it?13:56
rbasakHe had some options in mind I think.13:57
rbasakI'd rather wait for him than relay his opinions badly :)13:57
xnoxok13:57
xnoxi'll try to catch up with him.13:57
cpaelzersmoser: hi on your open-vm-tools question14:46
cpaelzersmoser: is that because you still assume that privateTmp is not what triggers the bug?14:47
cpaelzerand you'd be interested to see what actually fails (via the strace) ?14:47
smosercpaelzer: yeah, i was going to see strace.14:59
smoseri'd rather actually know what is the problem.14:59
smoserif it is privatetmp, then we need to file a bug on systemd14:59
smoserbut i suspect it is not14:59
smoserso i'd like actual reason for failure.14:59
cpaelzersmoser: ok, so my assumption what you were after was correct at least15:05
cpaelzertrying to get some data on it15:05
cpaelzer...15:05
=== chat is now known as Guest83894
cpaelzersmoser: it is a systemd issue16:45
cpaelzersmoser: I updated the bug with some more details that would flood the chan16:45
smosercpaelzer: local-fs.target is no where near the same thing as a dependency on private tmp16:49
smoserlocal-fs.target means a dependency on /opt/some/path if /opt/some/path is in /etc/fstab.16:50
xnoxsmoser, note that PrivateTmp= generates implicit dependencies already - Similar, units with PrivateTmp= enabled automatically get mount unit dependencies for all mounts required to access /tmp and /var/tmp16:51
xnoxhttps://www.freedesktop.org/software/systemd/man/systemd.exec.html#Implicit%20Dependencies16:51
xnoxone more obscure "helpful" systemd feature.16:52
naccheh16:52
smoserxnox: yes.16:52
smoseras figured out https://bugs.launchpad.net/ubuntu/+source/open-vm-tools/+bug/175078016:52
ubottuLaunchpad bug 1750780 in open-vm-tools (Ubuntu Xenial) "Race with local file systems can make open-vm-tools fail to start" [Undecided,Triaged]16:52
xnoxnacc, hi!16:52
naccxnox: hiya16:52
smoserbut it doesnt do that in xenial16:52
smoserbut that said, a mount of /tmp and /var/tmp != local-fs.target16:52
naccrbasak: did you want to sync on git-ubuntu today? (mini-sprint to get phasing going this week?)16:52
smoserwhere local-fs.target is all mounts in /etc/fstab16:52
xnoxnacc, what's up with packaging php-mcrypt from https://pecl.php.net/package/mcrypt ?16:52
smoserincluding /opt/some/random/path16:53
naccxnox: i pinged ondrej on it and he said he would not do it in debian16:53
xnoxnacc, i think that's the easiest way forward, to remove php7.116:53
naccxnox: i have a bug filed16:53
naccxnox: we just need to remove two more source packages16:53
xnoxnacc, sure, but i think we should, until it's done in debian.16:53
naccone of which i've talked to upstream about and they don't want it pacakged in ubuntu :)16:53
xnoxnacc, hm, ok. Do you have bug number?16:53
naccxnox: yeah, sorry was looking it up https://bugs.launchpad.net/bugs/174974516:53
ubottuLaunchpad bug 1749745 in zoneminder (Ubuntu) "php7.2 has removed the mcrypt module" [Undecided,New]16:54
xnoxnacc, from http://people.canonical.com/~ubuntu-archive/nbs.html it's 6, no?16:54
xnoxah16:54
naccxnox: iirc, tsome of those are reverse-recommends, but let me check16:54
xnoxah, could be.16:54
naccxnox: yeah the last 3 are recomends16:54
xnoxi think we can upload dropping reverse-recommends.16:54
naccxnox: yeah, i can do that today16:55
naccand then we'd remove cakephp{,-scripts} and gosa16:55
nacci think gosa will come back in, as i've talked to upstream abou tit16:55
naccbut i'd rather we sync it from debian then try to diverge right now16:55
xnoxyeah =/16:56
naccxnox: i'll work with the AAs on the removals today16:56
xnoxcool16:56
smoserxnox: could you take a *quick* look at  my scary systemd-resolve bug ?16:59
smoseri can't understand why anyone using network manager on bionic would not be affected.17:00
rbasaknacc: yep. Five minutes?17:00
SircleHi17:01
Sircle How to make sure that .php script of one site cannot access data of any other site?17:01
xnoxsmoser, something is very odd17:02
xnoxsmoser, so  DNS Domain: ~mosers.us does not look right.17:02
Sircle I am having hard times in blocking access to the directory ".git" and any files under its tree. This directory is in every of my 70 websites. What should I do ? I have referred http://httpd.apache.org/docs/current/mod/mod_authz_core.html#require    but cannot make up syntax17:02
xnoxsmoser, i think you may be able to fix it by sending the right domain to resolved via d-feet.17:02
xnoxsmoser, i believe it is set to "route-only" ~mosers.us => meaning, only use this network for mosers.us and nothing else.17:03
xnoxi think, it should be "mosers.us" there instead.17:03
naccrbasak: ack17:03
xnoxsmoser,           DNS Domain: ~mosers.us17:03
xnoxis the odd bit, because for me, it is17:03
xnoxsmoser,           DNS Domain: surgut.co.uk17:03
naccSircle: ok, cross-posting *three* times does not help17:03
xnoxSircle, hm, you should not store .git in public directories.... if you deploy from git, you should export a tree from git, not clone a git repository....17:04
sdezielSircle: you can have the .git reside outside of the documentroot and then you can set permissions on it to prevent the www-data user from accessing it17:04
xnoxSircle, or are you trying to serve naked git dir / as in host git repositories over http? then it should not be /.git/ subdir, but a full top level one, like myrepo.git/17:05
xnoxsmoser, are you using, something like "use this connection only for things on behind this connection" in network manager?17:06
smoserxnox: have you rebooted ?17:07
naccrbasak: i'm in the standup HO17:07
rbasakomw17:07
xnoxsmoser, not recently no, maybe i should.17:08
smoseri do not have 'use this connection fo resources ...'17:08
xnoxsmoser, i am close to end of day, and will reboot and debug this stuff. I do think we may need changes to make sure it sends domains as "search & route", not "route-only".17:08
Sirclexnox,  let me know the syntax?17:08
xnoxsmoser, as looking at resolved dns plugin inside network manager, it did look wrong to me before.17:08
xnoxSircle, sorry, i do not provide support at that level. And i'm not sysadmin myself.17:09
cpaelzerxnox: smoser: don't focus on local-fs.target != "dependency on private tmp" that is the easy to resolve path in bionic17:14
cpaelzerfocus on the trivial unit that I added to the bug that fails in Xenial by NOT having those implicit dependencies17:14
smosercpaelzer: i'm not able to reproduce your failure17:18
Sirclexnox,  nacc sdeziel I need www-data to access .git to take pulls17:18
smoseryeah. i dont understand it.17:18
smoserunless /tmp and /var/tmp are on a different filesystem then / then i am missing something17:19
sdezielSircle: if you need www-data to access the .git dir but not PHP, I think you can use PHP-FPM and run it with a non www-data user17:20
Sirclesdeziel,  there are many httpd rules like I mentioned above to deny access.17:20
sdezielSircle: deny rules affect clients access, not what apache/mod_php can do17:21
Sirclesdeziel,  I want to deny client acccess. yes.17:36
=== led_ir23 is now known as led_ir22
naccpowersj: ping17:53
powersjnacc: sup17:54
naccpowersj: wanted to sync on the git-ubuntu CI. i'm about to land the changes in master that will make us need to switch to the new CI jobs17:55
naccpowersj: we had chatted last week about making there be 3 stages or so? snap build, snap self-test, integration test ?17:55
powersjnacc: yeah I am finishing 16.04.4 testing now, then I can work on the workflow17:55
naccpowersj: ack, thanks17:55
naccpowersj: do you want me to hold off on landing in master? or can you run against master to show the potential output?17:56
powersjnacc: I'd actually prefer it be in master, so I can use it to test the workflow17:56
naccpowersj: ack, landing them now then17:57
=== chat is now known as Guest60542
ahasenackmdeslaur: that clamav 0.99.3 update somehow reverted the NEWS file to talk about 0.99.1, did you notice that?18:55
* mdeslaur looks19:10
mdeslaurahasenack: what news file are you referring to? the one I see mentions 0.97.519:11
ahasenackmdeslaur: "NEWS" at the root19:12
ahasenackmentions 0.99.119:12
Sirclesdeziel,   I have 70 directories under /var/www/html/   Do I need to put <Directory for each of 70  or just something like <DirectoryMatch /var/www/html/*/.git/*> ?19:12
ahasenackin the 0.99.3+addedllvm-0ubuntu1 package, and also in upstream's 0.99.3 tarball19:12
mdeslaurahasenack: yes, that's normal...upstream's 0.99.3 tree actually got renamed to 0.100 when they decided 0.99.3 should be a minor update to 0.99.219:12
mdeslaurahasenack: so the 0.99.3 betas have nothing in common with the actual 0.99.3 release19:13
ahasenackhmm19:13
ahasenackso we got a downgrade?19:13
ahasenackthere was no fix for the 0.99.3 betas (or 0.100)?19:13
mdeslauryes, we downgraded to the stable release19:13
mdeslaurthere's no release for 0.100, it's a work in progress19:14
ahasenacksince we were using a beta already, couldn't we have upgraded to 0.100?19:14
ahasenackwouldn't the code diff be smaller?19:14
mdeslauryou want to ship an unfinished work in progress with no release date and possibly no proper signatures in our LTS release?19:15
ahasenackwasn't it like that already with 0.99.2~beta?19:15
ahasenackor rather, 0.99.3~beta19:15
mdeslauryes, and we should have never synced that19:15
ahasenackah19:16
=== Sircle_ is now known as Sircle
=== Sircle_ is now known as Sircle
SircleI had files in /var/www/html/site1.com   /var/www/html/site2.com and so on. One of my sites got compromised and script in it copied many files inside other website directories. How can I restrict this so php cannot access files outside the parent directory or vhost path?19:54
Sirclenacc,  xnox sdeziel19:54
naccSircle: don't use php? :)19:54
naccSircle: please don't ping users with random questions19:54
Sirclek19:54
sarnolddo not let the user that runs the php code have write access to anything except log files, database sockets, and an uploads directory if you absolutely must have one19:55
sarnoldyou can use both unix access control mechanisms and AppArmor for this task19:55
SircleNo way to isolate each site?19:56
Sirclesarnold, For access rights, it varies so much. For every site its different upload folder or pluging folder (wordpress). Very difficult to keep track of19:58
sarnoldSircle: Probably you could run each site under a different user account via as many FPM things as needed..20:00
Sirclehm sarnold thats the only way?20:04
sarnoldSircle: you could also use different VMs or LXD containers per site ..20:07
Sircle_sarnold,  don't I just need this? https://stackoverflow.com/a/164973120:30
sarnoldSircle_: open_basedir is not a security tool20:32
sarnoldSircle_: even if it were, it only influences filesystem operations that go through php; ptrace, IPC, or filesystem operations that don't go through PHP aren't handled at all.20:33
Sircle_will that not limit .php files to limit to the vhost files only? <- thats what I want20:33
sarnoldit will not. it's about the same as asking drivers to politely not get into accidents.20:37
=== Sircle_ is now known as Sircle
powersjnacc https://jenkins.ubuntu.com/server/view/git-ubuntu/job/git-ubuntu-ci-nightly/21:44
powersjcurrently running the nightly job against master21:44
powersjwill watch status21:45
powersjthen will run a CI job if that passes21:45
naccpowersj: ack, thanks21:56
=== nchambers is now known as telnet
naccrbasak: code looks good to me; you ahve one TBC in gitubuntu/apt_repo_test/README22:48
rbasaknacc: ah yes. I just need to look up the command, thanks.22:49
naccrbasak: np22:50
naccrbasak: and you also need a rebase :)22:51
naccpowersj: did you see the failure just now? https://jenkins.ubuntu.com/server/job/git-ubuntu-ci/303/console23:06
powersjnacc: yeah I kicked that after the nightly passed23:07
=== catalase- is now known as catalase
powersjI think there was a race with the nightly script also doing a vm launch23:08
nacccpaelzer: do you think you could pick up the merge of kopanocore? i think you have more context on your delta (and if it's all been picked up by debian). I think we would normally sync, excpet we need to transition php7.1-mapi -> php-mapi23:14

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