"""
A really simple webserver configuration.
These examples are just boring... ;-)
But without NAT they would be even more boring. ;-)
"""
# web server
add_host(
name="web",
ip="10.100.1.2",
iface="dmz"
)
# offering, well, web service.
allow(
client="ANY DMZ INT",
server="web",
service="www ssh ping"
)
# internal hosts may access FTP, too
allow(
client="INT",
server="web",
service="ftp"
)
# setup NAT
add_nat(
client="ANY INT",
server="web",
ip="12.34.56.80"
)
(Yes, this is a python script. No, you probably won't care to write your
configuration in a programming language, will you?)
[hard, long term] unchecked -> accepted should go into the db, not a suite, but similar. this would allow katie to get even faster, make madison more useful, decomplexify specialacceptedautobuild and generally be more sane. may even be helpful to have e.g. new in the DB, so that we avoid corner cases like the .orig.tar.gz disappearing ‘cos the package has been entirely removed but was still on stayofexecution when it entered new.Obviously, it needed to get defined a little more clearly than that to work out how much the changes for the security queues I’m interested in depend on the other changes, and what they actually mean in detail. After some IRC discussion we came up with more or less the following summary of what NIv2 actually means:
How NIv2 should work.
q/accepted goes away; once packages are accepted, they get added
straight into the pool and the database. At this point they’re added
to a micro-suite for the buildds, and so apt-ftparchive can cache the
package contents; and a symlink tree is made up so incoming.d.o works.
The micro-suite might or mightn’t be a fully fledged suite in the
database. Presumably it wouldn’t be visible in dists/ though. The
micro-suite probably should contain packages uploaded to unstable for
X hours, where X is 48 or 2x pulse-interval or similar.
This means UNACCEPT is impossible and apt-ftparchive takes less time
in cron.daily.
q/byhand and q/new get new friends: q/sec-embargoed, q/sec-unembargoed,
q/stable-updates. Rather than checking for “byhand” entries, or a lack
of overrides; uploads get diverted to those queues if they’re uploaded
to security or stable, and get moved out of there when a security team
member or stable RM (ie, Joey) runs an amber/lisa-esque command.
This means sec-embargoed and sec-unembargoed need to be autobuilt.
This also means that proposed-updates can be a full suite, and point
releases can be a matter of (a) adding proposed-updates to stable;
(b) removing old versions from stable; (c) removing packages that have
to be dropped; and users can put “stable + proposed-updates” in their
sources.list reasonably sanely.
This also means that REJECTs from accepted (security) or the archive
(p-u) aren’t needed.
It means the queue ends up looking like:
unchecked [uploads go here, insecure]
holding [secured]
new [waiting NEW processing]
byhand [waiting byhand processing]
stable-updates [waiting stable RM approval]
done [.changes files for accepted packages]
reject [.changes, .reason and rejected stuff]
bts_version_track [data for BTS]
with q/accepted disappearing and q/proposed-updates and
q/old-proposed-updates being replaced by the stable-updates /
oldstable-updates queues.
One of the nice parts about this is that it breaks down fairly neatly
into three sets of changes: supporting additional queues, removing the
accepted queue, and tracking queue stuff in the database. It does make
those changes more or less dependent though – the new queues need to
be autobuilt in the way accepted is at present; so it makes sense to
add the queues before removing accepted so as not to lose the queue
autobuild support.
The above actually can be simplified a little further – instead of
managing a microsuite for changes since the last update, it’s possible
to add accepted packages directly to the real suite; and generate the
Packages files needed for autobuilding by querying packages accepted to
unstable in the last 24 or 48 hours, simply by adding a field to track
upload time for binaries as well as sources.
In any event, this thus makes generalising the queue autobuild support
the next challenge.
to show their solidarity with the Iraqi people. Which I found amusing to listen to while eating my evening ration of lentil soup. Here I thought I was just a cheapskate, when all along I've been participating in superficial solidarity with the bombed-out people of Iraq! :-)
Operatic ode to Creative Commons, to the tune of Puccini's O Mio Babbino Caro!The lyrics:
This is Creative Commons:It's a wonderful promotional song for Creative Commons, and it sure has the potential to become sort of the hymn of the Creative Commons movement/culture, if you ask me. (found via consumingexperience.blogspot.com) Song: Improbulus - Creative Commons Song (2:33 min, 2.4 MB)
Something that you've created
Somebody else can copy
Spreading the word about you
You see, they're free to copy
But they must give you credit
And others then can copy
Giving you credit anew
And if they make some money so must you - you profit too!
Isn't that fair, and how?
So get Creative now...

LOCALE=en_GB it claims that week 1 of 2006 starts on Sunday 1st January, and ends on Saturday 7th January, making my week numbers one lower than the rest of the world.[T]echnology across software domains should be consistent. There should be a standard, however de facto, that works everywhere. Skills should be portable across those markets, so that someone with experience in desktop software development has a decent chance of developing for handhelds. Everything should just work together, and development across all devices should be relatively straightforward to someone with experience in any one of them. Microsoft has been very good at this. […] I wonder whether the open source world can match that consistency. Granted, there are movements to make things consistent, such as the LAMP set of technologies for Linux, or the Linux Standard Base project. However, the structure of development for open source products militates against the establishment of any consistent standard. Open source development relies mostly on voluntary contributions. People don’t tend to contribute to ALL open source products (that would be impossible). Rather, they concentrate mostly on the products that interest them. This results in a developer version of tunnel vision. Since all that matters is the creation of the handful of products to which the volunteer contributes, what matters is the interests of contributors to a single project, not the interests of technology which should span ALL products.Great points, though I clearly disagree that the open source community is fundamentally unable to match Microsoft on providing a consistent environment. It’s going to take some work on our part though. One of the reasons Microsoft has historically been so successful is its unique ability to integrate disparate technologies into cohesive wholes, as well as to leave the mechanisms they use to do this just open enough that others can integrate with them to a degree but never so open that they can do so better than Microsoft can. Of course, Microsoft can do this because they develop, own, and control each of the pieces and the interfaces between them. Other platforms (Linux, Java, UNIX, even the Web to a certain extent) are comparative mishmashes for the exact reasons John describes, namely that every project is developed independently, and that there’s comparatively little thought put into how the pieces interact. The only parties that do think about these issues, the Linux distributors, tend to do so after the fact, and, of course, they have no direct control over the projects that produce the pieces to push any integration improvements they might make upstream (in the general case anyway). Furthermore, once multiple solutions in a given problem domain emerge, it’s not always possible to generalize the interfaces when the projects behind them don’t agree with each other on the “right solution”. In other words, because it’s an after-the-fact thing, “not invented here” and general inertia come into play. So, while the technical aspect of the problem is important, namely the interfaces between components (APIs at the source level and ABIs at the binary level), there’s a social aspect here too. We need to encourage the kind of competition at the implementation level that results in technical excellence while fostering a sense of cooperation at the interface level to ensure that, collectively, the various implementations fit seamlessly into a larger, consistent environment. In other words, we don’t want to get in the way of open source project and Linux distro innovation, but we do want to encourage open source projects and Linux distros to innovate in a collaborative fashion so the technology that ultimately wins in the marketplace can be standardized with as few legacy issues as possible (or, in the case where multiple best practices emerge, for legacy reasons or otherwise, we want to collaboratively define a uniform interface, i.e., cooperate on interface, compete on implementation, etc.). That’s the only way we’re going to get there.
Next.