Russ Allbery: Review: The Player of Games
| Series: | Culture #2 |
| Publisher: | HarperPrism |
| Copyright: | 1989 |
| Printing: | February 1987 |
| ISBN: | 0-06-105356-2 |
| Format: | Trade paperback |
| Pages: | 295 |
| Series: | Culture #2 |
| Publisher: | HarperPrism |
| Copyright: | 1989 |
| Printing: | February 1987 |
| ISBN: | 0-06-105356-2 |
| Format: | Trade paperback |
| Pages: | 295 |
Team Rcpp is excited to share that an brandnew new version 1.1.2 of
Rcpp is now on CRAN, has also
been uploaded to Debian, and has
already built for r2u
and r-universe;
Windows etc builds at CRAN
should follow in due course.
Rcpp has long established itself
as the most popular way of enhancing R with C or C++ code. Right now,
3236 packages on CRAN depend on
Rcpp for making analytical code go
faster and further. On CRAN, 13.4% of all packages depend (directly) on
Rcpp, and 61.4% of all compiled
packages do. From the cloud mirror of CRAN (which is but a subset of all
CRAN downloads), Rcpp has been
downloaded 121.6 million times. The two published papers (also included
in the package as preprint vignettes) have, respectively, 2263 (JSS, 2011) and 471 (TAS, 2018)
citations, while the the book (Springer useR!,
2013) has another 742.
The is the second update in the 1.1.* series which had, among other
changes, switched to C++11 as
the minimum standard. This release continues as usual with the
six-months January-July cycle started with release
1.0.5 in July 2020. Interim snapshots are always available via the
r-universe page and
repo. We continue to strongly encourage the use of these development
released and their testing we tend to run our systems with them too.
Having said that, we would like to reiterate that we strongly object
to the upstream R release and change management which in this 4.6.*
cycle made several abrupt changes forcing packages which
consume header files to make very abrupt change. Rcpp, just like numerous other CRAN packages demonstrates that
API changes can be undertaken responsibly in a managed manner which
allows for transition periods followed by possible warning periods,
deprecations periods and finally (but only at long last) errors. What
happened here is a speed run to the final stage of forced errors. Uncool
and irritating for something as widely used as R. This forced us to make
an interim release 1.1.1-1.1 even though we have of course had a policy
of always keeping properly tested, installable, and error-free
releases candidate version in the main repository branch and hence
available via R-universe tested
packages for all relevant platforms, and even via binaries for most
(including Ubuntu LTS). It would be nice if R Core found a way to take
advantage of this. Maybe development cycles, running apart for a year as
they do for R, should also include selected packages.
Once again I am not attempting to summarize the different changes.
The full list follows below and details all these changes, their
respective PRs and, if applicable, issue tickets. Big thanks from all of
us to all contributors!
Thanks to my CRANberries, you can also look at a diff to the previous interim release along with pre-releases 1.1.1-1 and 1.1.1-1.1 that were needed because R-devel once again sudden decided to move fast and break things. Not our doing. And there also should not have been a need to two such uploads but it was amateur hour all around. Questions, comments etc should go to the GitHub discussion or issue section, or the Rcpp list. Bugs reports are welcome at the GitHub issue tracker as well. GitHub offers decent search for issue, pull requests and discussions; as many topics have been covered it is worth checking as well.Changes in Rcpp release version 1.1.2 (2026-07-01)
- Changes in Rcpp API:
- Use of
execinfo.his again conditional to avoid build complexity (Dirk in #1445 addressing #1442)- An internal state component for
Datetimeis nowint(Dirk in #1448 and #1449 fixing #1447)- Three new (in R 4.6.0) attribute accessors are used conditionally (Dirk in #1450 closing #1432)
- An UBSAN error in the Sugar-based NA comparison has been corrected (I aki in #1453 fixing #1452)
- Treatment of Inf outside of integer range in Sugar function has been corrected (I aki in #1458 fixing #1455)
- Integer overflow protection has been added for sugar functions (I aki in #1457 fixing #1454)
- The parent environment is now accessed via
R_ParentEnv(Dirk in #1460 fixing #1459)- Change to returning
dataptragain for better handling of empty vectors (I aki in #1462 fixing #1461)- Undefined behavior errors in use of
ListOfproxies have been addressed (I aki in #1464 fixing #1463)- Under newer R version,
R_UnboundValueis no longer used (I aki in #1466 fixing #1465)- New R API access point
R_getRegisteredNamespace()is used with current R versions (Dirk in #1469 fixing #1468)- The
Nullable::as()exporter now uses an explicit cast to the templated type (Dirk in #1471 fixing #1470)- A memory leak in the variadic
Rcpp::warning()template has been fixed (Kevin in #1475 fixing #1474)- The
Nullable::operatorT()has been added as a 'opt-out' (Dirk in #1477 with coordination in #1472)- Add templated integer-index overload for
operator[]on small systems such as WASM (Jeroen Ooms in #1482)- The attribute accessors in
AttributeProxyPolicyno longer rely onget__()(Kevin in #1484 fixing #1483)- Changes in Rcpp Documentation:
- Reference in the bibliography used by the package vignettes have been updated.
- Changes in Rcpp Deployment:
- Excute permissions are set consistently on scripts with shebangs (Mattias Ellert in #1467)
- R 4.5.* has been added to the CI matrix (Dirk in #1476)
- Three nag messages issued when obsolete build flag accessors are used now show
Rcpp:::(Dirk in #1480 fixing #1456)- Reference GitHub Actions have been updated to their current versions (Dirk in #1481)
- Non-release Changes:
- A non-release hotfix 1.1.1-1 used by CRAN accommodates breaking changes to the API in R 4.6.0. It would be nice to have the same level of release management in R itself that CRAN expects from us.
This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. If you like this or other open-source work I do, you can sponsor me at GitHub.
common-auth
directive of pam (seeh #1140096)apis_entities app. When the search module is merged
it will give way for removing the last bits of the old cruft to be removed.
During a regular dependency update session I looked at the changes in the dal
dependency. After a
long time with no commits, the project suddenly had a lot of commits
co-authored by Claude and then released a new major version with a regression.
Given the state of the project, we decided to keep using the previous release
for now and look into replacing the dependency with an HTMX based solution. I
implemented a POC for one of the plugins we develop and it was actually pretty
easy. I also managed to combine the autocomplete approach with a multi-select
form field, based on this blog
post.
In the
PFP
project I finally merged the stats endpoint which give statistics about the
named graphs that are used as data sources.
As is the case for many people working in the security industry, the last
few months of my life have been focused on dealing with people wanting to
use LLMs everywhere. From an enterprise security perspective that s not an
inherent problem - what s more of a problem is that people want those agents
to have access to resources like their calendar and email and so on, and now
we have somewhat non-deterministic agents that seem very enthusiastic to
achieve what you asked whether that s a good idea or not, and we re
combining this with credentials that give them access to sensitive data, and
leaving those credentials on disk where they can be committed into git repos
or exfiltrated to some other service to make use of them on the agent s
behalf or well just any other number of things, at which point your CEO s
email is suddenly readable by everyone and you re having a bad day.
As I mentioned in my last
post, pretty
much every strong mechanism for keeping credentials in place is just not
supported in the wider world. We can imagine a universe where agents use
hardware (or at least hypervisor) backed certificates to obtain credentials
and any that end up leaking are worthless as a result. But, sadly, that s
not an option for most people using existing identity providers. The state
of the art is that you use the device code
flow and a human authenticates and
the token ends up back inside the agent environment and then it proceeds to
do whatever it wants with it and you just hope that you wake up the next
morning without an awful infoleak occurring.
(An aside: I do not like the device code flow as used in enterprise
environments, and I never will. The identity provider doesn t have a real
opportuity to inspect the security posture of the system asking for the
token, and as a result some identity providers will restrict tokens that are
issued in this way. The common alternative of doing stuff using a more
standard flow and having a redirect URI pointing at localhost works fine for
local systems and is a pain for remote ones, even if you can commit crimes
with SSH forwarding. I m going to suggest something that I think is better,
and you are free to disagree)
I m not in a position to get every identity provider and service provider to
change their security posture, so I m somewhat stuck in terms of the tokens
they re willing to issue me - largely either JWTs or opaque access tokens,
with no support for any mechanism of binding that token to an instance. The
token that s going to have to be provided to the remote service is something
I have little influence over. But that doesn t mean I can t influence the
token that lands inside the agent s environment. I can issue a placeholder
token to the agent, and force it to communicate via a proxy that swaps out
the placeholder for the real thing. The worst the agent can do is exfiltrate
the placeholder token, and as long as malicious actors don t have access to
that proxy, it doesn t matter - nobody else can do anything with the
placeholder.
This isn t a terribly novel insight, and it seems like almost everybody has
reinvented this on their own. But a lot of these implementations involve you
somehow obtaining the real token in advance and then pasting that into
something that generates a placeholder that you provide to your agent
environment somehow, and it s all a bit clunky and awkward, and it also
means that you need to deal with something that keeps track of the mapping
between placeholders and real tokens and oh no we ve just invented a secret
store, and if you want this to work at scale and reliably you re just
invented a high availability distributed secret store, and a lot of people
who ve read that are now shaking their heads and reaching for gin. Can we
simplify this, and improve security at the same time? I think we can!
Remember when I said as long as malicious actors don t have access to that
proxy, it doesn t matter ? What if they do? What if they compromise one
machine inside your environment and are then able to email a bunch of
employees and convince their agents to send more tokens back to them and
then delete the email before a human reads it? Now you have someone inside
the wall with access to those tokens, and presumably with access to the
proxy, and now they can be anyone whose agent was gullible enough to think
sending them a token was a good idea. This isn t good!
So, I thought for a while, and I came up with a new idea. We can have a
broker service that obtains credentials for us. We can run that centrally,
away from the agents. A client in an agentic environment can request a
token, and that can result in a URL being generated and the user being
directed to open a URL in a browser and authenticate. When the user
authenticates, the authentication flow redirects the confirmation back via
the broker, and the broker obtains the real auth token. The obvious thing to
do now would be to return the auth token to the client in the agentic
environment, but we don t do that. Instead, we mint a new JWT, and add a new
claim - one that contains an encrypted copy of the token. In the process we
can copy over all the original claims, because those aren t secret - and now
even if the client inspects the token to figure out what access it has,
it ll get a correct answer. We sign the new token with our own signing key,
and pass that back to the client. The client now has a legitimate JWT that
is utterly useless, because the signature isn t trusted by anyone other than
us.
How does it use it? It makes an API request via a proxy, including the new
token in the Authorization: header. The proxy verifies the signature on the
token, and then decrypts the original token and swaps out the fake token for
the real one. The remote API sees what it expects, and everyone is
happy. There s never a real token in the agentic environment, but also we
don t need to store anyting anywhere. The only state is the encryption keys,
and those can be injected into the environment at startup. You need to
scale? Just start more of these processes. You need to support multiple
availability zones? Just start more of these processes in different
places. No persistent data is ever held in the broker or the proxy. You
don t need to care about distributed databases or secret stores.
This felt wonderfully elegant and I felt smug about coming up with a better
idea, and then I went to a bar earlier this week and sat down to read RFC
8705 and the guy next to me
saw that over my shoulder and asked what I was reading and I explained why I
was interested and we talked about agentic identity and then he mentioned
that fly.io had something that sounded very
similar and I read that and gosh yes
it is very similar, so damn you fly.io for stealing my ideas 3 years before
I even had them. Anyway. Now I need to do better.
Remember that there s still a risk around anyone who has access to the proxy
having access to the encrypted keys? We can remove that risk as well. It s
not uncommon for agentic environments to have an identity issued via
something like SPIFFE, at which point they have a
client certificate. You can probably guess where I m going with this. If we
require that an agent present a client cert to the broker when requesting a
token, we can embed a representation of that client cert into the token we
mint. The proxy can then require mTLS for the client connection, and can
verify that the presented certificate matches the one represented in the
token. If it does then whoever s using the token has access to the private
key associated with the environment it was issued to. If we then ensure that
the private keys backing these certificates are either hardware or
hypervisor backed, and as such tied to a specific instance, we now have a
high degree of confidence that the token can only be used in its intended
environment. Even if our identity provider doesn t support RFC 8705, we can.
This is fairly straightforward where you re using a platform where your
identity provider is also the environment that s consuming your tokens, and
more annoying for third parties. The broker potentially needs some amount of
third party vendor knowledge to make that work for everyone. This is even
more the case where login isn t via your identity provider (thanks, github),
but none of this is insurmountable - just annoying. And where vendors issue
opaque tokens rather than JWTs, this still isn t a problem; we can just mint
a new JWT that includes the opaque token as an encrypted claim, and include
the same certificate binding. The opaque token ends up being the thing
that s presented to the third party, but only after we ve verified the mTLS
binding.
In an ideal world none of this would be necessary - someone would spin up a
new agentic environment, a user would prove their identity, and a
certificate embodying that identity would be issued to the environment with
a private key that can t be exfiltrated. That certificate would be
sufficient to obtain new certificates associated with the same private key,
and we could still bind that into mTLS identity. This would be much simpler,
but browsers don t support it, so it s not likely to happen any time soon.
Anyway. Even if we can t have the best thing, we can do better than we are
at the moment, and also it would be lovely if we could standardise on this
rather than have everyone build their own thing. The end.
When you log into a service you re given an authentication token. Each
further request to the site includes that token, allowing the server to
figure out who you are and ensuring that you have access to your
data. Depending on site policy, this token may either be stored in memory
(and so vanish if you restart your browser) or disk. The token is the proof
of your identity. As far as the site is concerned, anyone with your token is
you. These tokens may be traditional browser cookies, but they may also be
stored in either site local storage or (if you re not using a browser) in
some other storage location.
In recent years we ve seen infostealer malware (like
LummaC2)
gain the ability to exfiltrate user tokens, allowing attackers to gain
access to the user s data without needing to retain access to the user s
machine. This attack is viable even if the site has strong MFA requirements,
so passkeys don t help. Encrypting the tokens on disk doesn t prevent the
malware from scraping them out of the browser s RAM or obtaining whatever
key is used to encrypt them. This feels like a pretty hard problem to solve.
But that hasn t stopped people from trying! Dirk Balfanz wrote an IETF draft
describing a mechanism for using self-signed certificates for TLS
authentication. This
uses the mutual
authentication
feature of the TLS protocol that requires both sides prove their identity to
each other. In regular TLS, the remote site presents a signed certificate
that tells you who it is. When performing mutual authentication, you then
present a certificate to the remote site telling it who you are. These
client certificates are largely unused outside enterprise environments
because they re a huge pain to deploy. It s not so much that this has
sharp edges, it s that it s entirely made of sharp edges. Managing
certificate deployment to your devices is hard. Browsers get confused if the
certificates change under them. You have one certificate and it lives
forever, so sites you present it to can track your identity. Users are
prompted to choose a certificate to authenticate with, and if they pick the
wrong one everything breaks and is hard to recover. I ve deployed this and I
did not have a good time.
But Balfanz s idea was simple. Rather than require certificates to be
deployed, browsers would simply generate a certificate on the fly. The goal
wasn t to prove the device or user s identity in any global way - but it
would associate a TLS session with a specific certificate. You could then,
for example, include a hash of the certificate in the cookie, and if someone
tried to use that cookie without presenting that certificate then the cookie
could be rejected. If the browser used a hardware-backed private key for the
certificate then it would be impossible for an attacker to steal it. Sure,
you could still steal cookies, but you wouldn t be able to use them.
This was written almost 15 years ago, and seems simple, elegant, and
functional. It didn t happen. Part of the reason for that is that, well, it
wasn t quite so simple. One problem was privacy related. Cookies are only
sent after the TLS session is established, so anyone monitoring the network
doesn t know anything about the user identity. A naive implementation of
this approach would have meant the client certificate being sent before
session establishment, and now user identity can be tracked (no longer an
issue if this was implemented on top of TLS 1.3, but this was a log time
ago). This was avoided by reordering the client handshake, but that meant
having to modify the TLS specification and implementations would have to be
updated to support this. Another was that figuring out the granularity of
the certificates was difficult. You d want to use different certificates for
every site to avoid them effectively becoming tracking cookies, but you need
to provide the certificate before cookies are set, and you don t know what
origin the site is going to set in its cookies. If you generate a
certificate for a.example.com and a different one for b.example.com, and
a.example.com sets a cookie for *.example.com and includes the certificate
you used for a.example.com, that cookie isn t going to work on b.example.com
and things are broken. This meant supporting it wasn t as straightforward as
it seemed - you d need to ensure that your cookie scope was compatible with
the certificate scope. You could probably make this work well enough by
aligning it with the Public Suffix List, but
there was still some risk of expectations not being aligned.
And, perhaps most importantly, TLS session
resumption (replaced by
pre-shared keys in
TLS 1.3) somewhat defeats the purpose of the exercise - clients store state
that allows them to re-establish a TLS connection without performing
certificate exchange (this reduces overhead if a connection gets interrupted
or you switch to a new network or anything along those lines), and anyone in
a position to steal cookies could steal that state as well.
The followup attempt was channel
IDs.
This simplified the implementation somewhat - rather than certificates, a
raw public key would be sent, along with proof of possession of the private
key in the form of a signature over a portion of the TLS handshake. This was
required even in the event of session resumption, which avoided having to
worry about theft of session secrets. The timing of the exchange was after
the encrypted session had been established, so user identity couldn t be
leaked that way either. Cookies could then be bound to this
identifier. Unfortunately it didn t really deal with the problem of scoping
keys in a way that would match cookie requirements, and the spec suggests
that the right way of handling this is to scope keys to TLDs, which would
enable user tracking across sites (Chrome s implementation apparently
restricted it to eTLD+1, which would match the third party cookie policy and
avoid the tracking risk).
Chrome added support for this, but it was removed in early
2018. The
discussion of some of the pain points in that message is interesting,
explicitly calling out problems with connection coalescing across domains
and the incompatibility with zero-RTT TLS1.3. The overall consensus at the
time seems to be that trying to solve this entirely at the TLS layer has too
many rough edges, and a different approach should be taken.
And so almost 7 years after the initial draft for origin bound certificates,
we come to token
binding. This ended up being
a rather more complex endeavour, covering 3 different RFCs describing how it
impacts TLS, how to incorporate it into HTTP, and how to manage all the
various parties involved in the process. The short version is that it s
pretty similar to channel ID, except that there s also a documented
mechanism for allowing tokens to be bound to one party and consumed by
another, avoiding any need for widely scoped keys. Token binding effectively
solved all the issues in the original proposal, but at the cost of somewhat
more complexity.
The RFC was finalised in October 2018. Chrome removed its (incomplete,
draft) support for token binding in November 2018. Edge carried support
until late 2024. Despite getting all the way through the RFC process, it s
functionally dead.
The process up until this point had been largely initiated by Google, with
Microsoft contributing significantly to the token binding standards. The
work had been focused on identifying a generic solution to the problem
rather than tying it to any specific authentication flow. The next step was
in a different direction - rather than trying to fix this for the entire
internet, how about we try to fix it for OAuth?
RFC 8705 is titled OAuth
2.0 Mutual-TLS Client Authentication and Certificate-Bound Access
Tokens . This is basically the 2011 approach, but (a) with an explicit
definition of how the certificate should be incorporated into issued auth
cookies, and (b) with a proviso that well uh if you re going to use tokens
issued by your IdP to authenticate to someone else then well you re going to
need to use the same cert for both. This is probably fine for the
company-owned-laptop case where you re actually fine with multiple sites
being able to tie identities together (that s kind of the point here!), and
also works for I am using an app and not a browser , but doesn t work for
more generic scenarios. It also doesn t seem to take the session resumption
case into account at all? Support for RFC8705 seems poor, as far as I can
tell of the big players only Auth0 implements it. In theory it works fine
with self-signed client certs but in reality that s going to be almost as
difficult to support across multiple platforms as just issuing proper client
certs in the first place, so deployment is going to be kind of a pain. But
the good news is it doesn t rely on any TLS extensions or custom browser
behaviour, so at the client side it works fine with any browser.
Which brings us on to RFC
9449, Demonstrating Proof
of Possession . This goes even further than RFC8705 in terms of reducing the
burden of deployment - it works fine with existing browsers, and it
doesn t even require any certs. The client generates a keypair and provides
the pubkey when requesting the cookie. The cookie contains the pubkey. Every
request to the service now provides the cookie with the pubkey and also
provides a signature over the URI and HTTP method. If the signature matches
the pubkey in the token then clearly the signature came from the machine the
token was issued to, and everything is good.
This does come with some downsides, though. The first is that it uses
browser interfaces to generate the keys (typically
crypto.subtle.generatekey())
and as far as I can tell there are no browsers that guarantee that that key
is going to be generated in hardware even if it s marked non-exportable, so
anyone able to steal the cookies can also steal the keys. The second is that
the signature only covers the URI and HTTP method, and not the message
content or any other headers, so anyone able to exfiltrate a valid signature
can replay it against the same URI with different message content. The
recommended way to handle this is to reject any signatures that weren t
generated within the last few seconds, which is a wonderful additional way
to allow clock skew to give you a Bad Day. And the third is that every
single request has to be separately signed, which is not intrinsically a
problem because computers are fast and have multiple cores, but if you re
trying to solve the first problem by sticking the key in a TPM then you re
dealing with something that s slow and single threaded and that s maybe
acceptable if you re using client certificates (because there s going to be
one signature per session and you can use the same session for multiple
requests) but probably not if you re dealing with a user opening a browser
that restores previous tabs and each of those is a webapp that fires off 100
requests in parallel.
In case it wasn t clear, I don t like DPoP. It doesn t feel like it actually
solves the underlying problem that we see in the real world (malware running
in a context where if it can grab the tokens it can grab the keys), it adds
a massive amount of overhead, and it has baked in replay vulnerabilities. I
don t know why it exists and I m incredibly suspicious of vendors telling me
that it fixes my problems, because if they re telling me that then I m going
to end up assuming that they either don t understand my problems or they
don t understand their technology, and neither of those is good.
Still. Then we get to the thing that prompted me to write this - Chrome s
announcement that they had launched device-bound session
credentials. This
is interesting because it s a Chrome feature that s explicitly intended to
counter on-device malware, which was one of the things that was out of scope
in 2018 when token binding was being removed. Since this is entire web level
it doesn t have to be an RFC, and so is instead defined by
W3C. I m going to handwave all the
complexity and say that it s basically a way to register a public key when a
cookie is issued, and then prove possession of the private key when it s
time to renew the cookie. By making the cookies shortlived and having
support for rotating them in the background, user impact is basically zero
and while it s still possible for an attacker to exfiltrate and use a cookie
they ll only be able to do so for a short window before it needs to be
refreshed - something the attacker can t do, since they don t have the
private key. This avoids the DPoP overhead because you only need to do
signing once per cookie per cookie lifetime, and not on every single
request. I don t like this due to the window where exfiltrated tokens can
be used, but it feels like a strict improvement over the status quo. An
extension called device-bound session credentials for
enterprise
allows pre-enrollment of device keys, so even though the actual runtime DBCE
flow doesn t involve certificates, certificates can be used for device
registration in enterprise environments and you can make sure that auth
cookies only go to trusted devices. Unfortunately this is Chrome-only, and
so we re going to need to wait for it to be backported to all the random app
frameworks for it to have widespread support on mobile or for almost
everyone s desktop app that s actually three websites in an Electron
wrapper. Mozilla s current
position
is that they re not in favour of it, so I guess we ll see where Safari lands
in terms of broad uptake.
The last thing on my list is another client cert/OAuth
binding,
this one still in draft state at the time of writing. This one is aimed
primarily at the use of agent-driven tooling, where you have something
running in the background using a whole bunch of tools that are each acting
on your behalf. Authenticating to all of them separately isn t a fun time,
but giving broadly scoped access tokens to a non-deterministic agent and
trusting that it ll never post them somewhere public also isn t a fun
time. The key distinction between it and RFC8705 is that it s aimed at
connections rather than sessions, which avoids the worries about session
resumption. This is done with TLS
Exporters, which in TLS 1.3
should be unique to the connection even over session resumption (TLS 1.2 may
reuse some of the same key material for exporters over session resumption,
so it s recommended to enforce 1.3 for this). By providing a new signature
alongside the cookie on every new connection, the client proves that it
still has access to the private key. This is a very new spec and I haven t
had much time to work through it yet, but my naive understanding is that
unlike RFC8705 this would require some additional client support to be able
to regenerate the client signature on every TLS reconnection.
This doesn t avoid all the problems that RFC8705 has, including how to scope
certificates. For the agentic use case that probably doesn t matter - all
these tools are acting on behalf of the same user, it s fine if all the
sites involved know they re the same user. But it doesn t solve the general
purpose user use case, and right now DBSC seems like the best we have there.
But. Part of me still wonders whether Dirk
Balfanz s
approach was the right one. Yes, there s risk associated with TLS session
resumption, but in the worst case you could just switch that off for high
risk setups. The cookie scope argument is real, and also in cases where it
could violate privacy the site owner could already choose to broaden their
cookie scope and violate your privacy, and in cases where it breaks things
you could just not make use of it. The other problems are largely fixed by
TLS 1.3, and then we re just left with Browsers handle client certificates
badly to which my answer is Yes, and we should fix that anyway .
Despite having a pretty good answer to this solution over a decade ago, the
closest we have to actual deployment is something that offers strictly worse
security guarantees. And tokens keep getting stolen, and compromises keep
occurring, and for the most part people shrug and get on with things.
Many months ago I had been ordering some furniture from IKEA1 and
on one of those orders I got tempted by a hair towel wrap: it mostly
worked as an idea, but it was too short for my hair.
On the other hand, I had two old towels I wasn t using, and a recently
unpacked sewing machine.
I didn t plan too much, I just put the STJ RNBUSKE over the towel, cut,
realized that the two pieces didn t fit with right sides together, cut
the second towel (I had planned to make two wraps, anyway, so it wasn t
a big deal), and started sewing by machine in what seemed like a
reasonable procedure, taking notes and pictures.
The result was pretty good, and I started using it every time I washed
my hair, but then I started to entertain the idea of shooting myself
sewing the second one by hand for a video, but never found the time to
actually doing it, and the pieces remained in the Pile for months, and
months, and way more than a year.
Until one day I bought a meter of cotton cheesecloth (mostly because it
was almost cheaper than buying a sample) and it felt like a good
material to make a nicely looking head wrapper, to keep my hair out of
the way when needed.
A couple months later, it was finally time to bring this project to the
top of the list, and even if I was sewing two by hand it went pretty
quickly: we had a weekend when it was too hot to do anything else, and
by the end of it the wraps were done.
All that remained was finish writing the instructions for my
FreeSoftWear patterns website
<https://sewing-patterns.trueelena.org/contemporary_unisex/headwear/hair_towel_wrap/index.html>>,
and having some pictures taken, and this project was done.
And now, on to documenting a few more things I ve done lately, and to
start working on the other projects I have added to the queue in the
meantime.
This month s work was dominated by the transition of Debian 12
bookworm to support by the LTS team, and by review of some large
updates to Linux stable branches.
Linux 6.12 is currently available in bookworm-backports, but that
suite will stop accepting uploads after the last bookworm point
release. I updated some supporting packages in bookworm in
preparation for adding Linux 6.12 there. I also prepared for
the possibility that bookworm-backports would close earlier.
Since the LTS team is still also maintaining Debian 11 bullseye
until August, I reviewed upstream changes for both Linux 5.10 and 6.1
stable branches and reported a number of regressions and other issues.
The still-very-new logging package tl was just updated for
the first time at CRAN. The tl package wraps the (also
very new) rspdlite package to
offer a lightweight and consistent logging interface from both R and C++
that enjoys being tiny, fast, capable thanks to spdlite. With tl we follow the same idea
that our spdl package
introduced: a simple consistent interface via just the tl::
prefix and the appropropriate logging level. In other words
tl::debug("Alert: foo now ' '", foo) will work from both R
and C++ (given a variable foo, and, in the case of C++, an
extra semicolon) and log if the current level is debug or higher, and
skip logging if not.
This release adds a fallback when compilation does not use the
(required) C++20 standard, expands the README and adds a initialization
helper function reflecting a preferred default logging level from either
an environment variable or a global option. We are also working on
adding tl to an example
package as a simple illustration, more on that hopefully soon.
The NEWS entry for this release follows.
Courtesy of my CRANberries, there is also a diffstat report for the this release.Changes in version 0.0.2 (2025-06-30)
- Added badges to README now that package is on CRAN, add NEWS file
- Condition the provided header on C++20 use, offer fallback
- Add an exported initialization function picking up a logging level from either an environment variable or a global option, see '?init'
This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. If you like this or other open-source work I do, you can sponsor me at GitHub.
No matter that the hype cycle wants you to think, the renewable energy
transition is the biggest thing happening in tech and it's happening faster
and faster. Despite being neck deep in it personally with offgrid solar
projects, most recently solar hot water, increasingly it becomes clear I'm
watching from the sidelines.
In Australia,
everyone gets 24 kwh of free daytime electric power now.
That's without installing any solar panels of their own, the grid just has
that much excess capacity. All it takes to save $thousands per year (and
avoid emissions) is to schedule some big loads like the hot water heater
and EV to charge during the day. To save more, drop in a home battery
that charges for free and powers the home through the evening.
In Germany, a 2 kwh plug-in home battery costs $350 and the electric
company will pay you
$130 per year to plug it into your wall.
There are similar offers throughout Europe.
In Cuba something something geopolitics, oil blockade, belt and road =>
suddenly 1GW of solar farms with another gigawatt on the way.
I'll soon visit South Carolina where with no subsidies whatsoever from a
decidedly renewable-unfriendly government, it made sense for my dad's house
to get a whole home battery and double the solar array. The resulting
system will be able to power the well pump and probably also the whole
geothermal HVAC system through the kind of month-long grid down events that
happened in Hurricane Helene.
Myself, well, I've got a by modern standards small 4 kwh home battery that
powers my house offgrid, and I've recently installed a heat pump hot water
heater. That's after about a decade pondering what solution to use for
solar hot water, to replace an aging and horrible propane instant water
heater. I've in the past considered everything from evacuated tubes to
special direct drive inverters to DC resistive MPTT dump loads. The solution
turned out to be just a big enough solar array, and plugging in a 120v hot
water heater that needs only 500 watts in heat pump mode. Plus a small
amount of code to manage when it runs.
In the time I was thinking about that, economies of scale and tech
improvements just wiped all those other possibilities off the map, it's not
economical to install and maintain a separate evactuated tube heat
collector when a pile of solar panels costs so little and when electric
hot water has gotten more than 200% efficient.
I also recently completed my permanant EV charger installation, with a new
inverter and conduit and proper wiring, and increased the car's charge rate
to 2 kw. Eliminating the need to charge anywhere except at home except
on road trips.
Coordinating when these two big loads run, to maximize solar production and
ensure that the house battery is full at the end of the day was ... not
hard at all actually? The car charger amps can be dialed up and down to
match incoming solar power fairly well, and leave some room for the hot
water heater. They both operate as more or less dump loads. More or less
because neither one can be cycled on or off very fast (to avoid wear and
tear on the car's contactor and the heat pump's compressor), so it makes
sense to leave them on and skate through short cloudy sections of the day,
as long as the house battery doesn't get too low.
How low is too low for the house battery? Depends on the time of day. The
code it's currently using, which may get tweaked over winter:
-- When the battery is charged enough to run major loads that may prevent
-- charging it further.
--
-- This varies with the hour of day. Early in the day, the battery does not
-- need to be as full to be considered well charged, since there is
-- still plenty of time for it to charge up. Later in the day, with less
-- time to charge, it needs to be more full.
wellCharged :: Hour -> Percentage
wellCharged (Hour hour)
hour < 9 = Percentage 90 -- night
pmhour <= 0 = Percentage 50
pmhour <= 1 = Percentage 60
pmhour <= 2 = Percentage 70
pmhour <= 3 = Percentage 80
pmhour <= 4 = Percentage 90
otherwise = Percentage 95
where
pmhour = hour - 12
wellCharged in an hour. So if it's 2 pm, the battery needs to be 80%
charged to run the lower-priority load, and if it dips below that, that
load will turn off but the high-priority load will keep running down to 70%
battery.
Unfortunately, getting any information out of my hot water heater relies on
a vendor API server that is often down on weekends, and reverse
engineered the web page of my EVSE[1] to control it, to say nothing of the
nightmare of getting the car's state of charge from The Cloud.
Anyway, I'm pleased with having easily tweakable code and how far I've
taken this offgrid, and everything I've learned doing so, but like I said,
I'm clearly observing from the sidelines over here while the most
significant thing for all of us is going on over there. You might
appreciate my code or method, but you'll eventually be plugging in a home
battery or signing up for a free daytime power tarrif from your electric
company, or having professionals install a whole home system for
climate resiliance.
So my question is, where does free software fit into all this? There are
things like Home Assistant that do productize the kind of thing I'm doing
enough to be useful more widely. But still niche. Meanwhile there are
inverters and batteries that phone home to China, and every consumer
facing install is either "use this device" or "integrate these 3
proprietary devices".
I don't think focusing on these negatives is really useful though, I'm more
trying to understand where all this is going and then maybe get out ahead
of it in some useful way with free software. Your thoughts welcome.
dcut migrate to fully release them. The DLA had gone out earlier.
ela-needed list.
:wq for today.
I previously wrote about the
upcoming UEFI
CA rollover. Well, it's happened now - the old Microsoft UEFI
CA from 2011 expired yesterday:
Third Party Marketplace Root (used for signing option ROMs and other software) Subject: C=US, ST=Washington, L=Redmond, O=Microsoft Corporation, CN=Microsoft Corporation UEFI CA 2011
Validity
Not Before: Jun 27 21:22:45 2011 GMT
Not After : Jun 27 21:32:45 2026 GMT
It's dead - it's not coming back...
The world doesn't seem to have ended yesterday, so I guess we did
ok? :-)
How did we do?
After a lot of prodding behind the scenes, Debian and many other
distributions managed to get new shim binaries dual-signed with both
the old and new CAs. The members of the shim-review team did a
sterling job with reviews in the last few weeks. Since I started
pushing people in May, we've had 21 reviews accepted successfully -
see here
for the list. Great stuff! Microsoft have also been working quickly -
many of those shim submissions were accepted and signed by Microsoft
very quickly too, with a turnaround time of less than 1 day in some
cases.
Not all of those signed shims have been published and used by the
distros involved yet, but expect to see them in the wild in the coming
weeks and months.
These binaries should be good for people to use for the foreseeable
future, until either we need to do another CA rollover or (sadly, more
likely) we find an issue in shim that necessitates a new release.
What's next?
We already have one of our new dual-signed shim
binaries in place in Debian, in unstable and testing (Forky) right
now. In a couple of weeks from now, we'll be rolling out very similar
new dual-signed shim binaries in the next point releases for Debian 12
(bookworm) and Debian 13 (trixie). We'll also be
upgrading fwupd in both those point releases, to make DB
and KEK updates work better.
For more information about these updates,
see https://wiki.debian.org/SecureBoot/CAChanges. For
your own safety, validate that your systems are updated when
possible. If you don't, they may fail to boot in future.
I had intended that the next release of onak, my OpenPGP keyserver, would be 0.7.0, and include OpenPGP v6 support (RFC9580). However events conspired to make a 0.6.5 release a really good idea.
Firstly, I threw an LLM at the code base and asked it to review it. This isn t intended to be a post about LLMs, but there s a considerable amount of pressure at work to be AI native . I m very much an AI sceptic, so I figured throwing it at a code base I know well might be an interesting exercise. It did find a bunch of embarrassing mistakes, but I don t think there was anything earth shattering that a human reviewer wouldn t have pulled me on. The problem is with a hobby project with a single user there s no actual review of my work.
I also enabled GitHub s security scanning. It mostly complained about format strings, and those were easy enough to fix up.
Next I threw AFLplusplus at the code. I d previously tried American Fuzzy Lop, but not in some time. AFL++ found a whole bunch of places I should really have checked available buffer lengths and wasn t doing so. It really is an incredibly easy tool to get up and running.
valgrind is also a tool I ve used before, and rate highly. Thankfully it didn t find anything in my testing this time.
Finally I threw a few more automated tests into the mix and discovered something has changed around dynamic linking such that the libonak symbols in the dynamic key database backends were using private copies, rather than the main binary. This caused problems with seeing the correct configuration settings in some instances.
All in all this release is not my proudest moment; a bunch of the issues fixed should never have made it to a release.
(Also, just to explicitly state it, all the actual code in this release was artisanly crafted by me, in vim. The only involvement of an LLM was for a review pass.)
Available locally or via GitHub.
0.6.5 - 27th June 2026
- Lots of fixes/improvements around length checking
- Added extra basic tests for maxpaths/sixdegrees/CGI
- Correctly end transactions in the stacked backend
- Ensure the file backend avoids stale key data on updates
- Fix decoding of v2/3 signature creation times
- Fix EdDSA signature parsing when r < 249 bits long
- Fix migration of bools from old to new config style
- Fix parsing of new config details for DB parameters
- Fix problems with linking + dynamic backends
- Fix RSA-SHA2-384 signature checking
- Fix sixdegrees parsing of keyids with high bit set
- Handle failures in maxpath more gracefully
- Make new style config path match old path
| Series: | White Space #3 |
| Publisher: | Saga Press |
| Copyright: | June 2025 |
| ISBN: | 1-6680-7812-0 |
| Format: | Kindle |
| Pages: | 483 |
A new small package of mine just hit CRAN. The tl package wraps the (also
very new) rspdlite package
(announced last
week) to offer a lightweight and consistent logging interface from
both R and C++ that is also tiny, fast, capable thanks to rspdlite.
The rspdlite
announcement is a good place to get a first glimpse at that package;
the upstream spdlite
repo has all the details (for the C++ side of things). With tl we follow the same idea
that our spdl package
introduced: a simple consistent interface via just the tl::
prefix and the appropropriate logging level. In other words
tl::debug("Alert -- foo is at ' '", foo) will work from
both R and C++ (given a variable foo, and in the case of
C++ an extra semicolon). Just give it a try, and see how it goes. The
package is still young and small.
The NEWS entry for this release is also very simple and just
announces that we have a release. More details are in the ChangeLog
and the GitHub
repo.
Changes in version 0.0.1 (2025-06-17)
- Initial CRAN upload
This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. If you like this or other open-source work I do, you can sponsor me at GitHub.
Armadillo is a powerful
and expressive C++ template library for linear algebra and scientific
computing. It aims towards a good balance between speed and ease of use,
has a syntax deliberately close to Matlab, and is useful for algorithm
development directly in C++, or quick conversion of research code into
production environments. RcppArmadillo
integrates this library with the R environment and language and is
widely used by (currently) 1282 other packages on CRAN, downloaded 47.1 million
times (per the partial logs from the cloud mirrors of CRAN), and the CSDA paper (preprint
/ vignette) by Conrad and myself has been cited 697 times according
to Google Scholar.
This versions updates to the 15.4.0 upstream Armadillo release made on
Thursday. We had run a complete reverse-dependency check leading up to
it, asserting there were no issues with packages dependent on it. As it
sometimes goes with that many packages involved, one CRAN package reported one test
failure. And it turned out to be both unrelated and pre-existing. But
sorting this out over one round of email delayed things by a day. And
then I went cycling
for a good cause so this announcement post comes a little later than
usual. The package has also been updated for Debian, built for r2u, and by now also at
CRAN for the different binary
releases.
All changes since the last CRAN release follow.
Courtesy of my CRANberries, there is a diffstat report relative to previous release. More detailed information is on the RcppArmadillo page. Questions, comments etc should go to the rcpp-devel mailing list off the Rcpp R-Forge page.Changes in RcppArmadillo version 15.4.0-1 (2026-06-17)
- Upgraded to Armadillo release 15.4.0 (Medium Roast Agave)
- Added
fill::nan,fill::pos_inf,fill::neg_infas optional fill forms for theMatclass- Added
.push_back()for appending elements to vectors- Faster handling of
find()within.elem()- Faster element-wise
min()andmax()- Faster
conv_towhen element types of input and output objects are the same
This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. If you like this or other open-source work I do, you can sponsor me at GitHub. You can also sponsor my Tour de Shore 2026 ride in support of the Maywood Fine Arts Center.
Through work, I have paid license to windsurf
(recently renamed to "devin"), an application for LLM-based (aka,
"Agentic") development.
I hadn't been using it that much, but in an effort to more clearly
understand how this whole AI development thing works, I decided to give
it a closer look recently.
My conclusions:
In its current form, this whole LLM wave is problematic for multiple
reasons. But ignoring that, and looking at the technology only, I can
say that:
sendmail to finish, but the hang was happening when the
application was idle, not when it was sending out emails, and only
when I told it about it happening when it was idle did it find the
deadlock.
So it's not a fully automatic process, and it needs to be guided by
someone who knows what they're doing. But if that is the case, you can
come up with something that works. I spent evenings and breaks for about
a week, and I managed to create a working application which, had I
written it by hand, would have taken me a few months of full-time work
to come up with. And I now have a side project, fully complete and
working, that I had been thinking about doing for more than a decade,
but never got around to actually doing, because of all the work that
would be involved and I just didn't see myself having the time for.
It's not perfect code. But it's mostly good enough, and it will perform
the job it needs to. And it looks far slicker than most of the side
projects I've done in the past, because in the past I would prioritize
between implementing new features or making something look slick, and I
would decide that the new feature was more important because it's only
for me and there's only me and nobody cares if it looks good or not and
I don't have three weeks to come up with something that looks better.
But here, I found myself sometimes spending 10 minutes writing a prompt
with instructions on making things look better. Because what's 10
minutes when you just spent an hour writing down and refining
specifications for functionality and tests?
There are a number of other things in which an LLM can help a
programmer.
For instance.
I received a bug report recently in a project I'm paid to
maintain that I couldn't make heads
or tails of. I opened the source code in my windsurf IDE, pasted the bug
report in the prompt, and then requested the tool to analyze the source
code and the associated logs and tell me how the described behavior
could be happening. It turned out that I had overlooked something, but
with the help of the tool, I found the bug in minutes.
I was trying to understand a particular part of a large
codebase that I didn't really grasp very well.
I loaded the codebase in the tool, and asked it to explain to me how a
particular action is performed by the code. I requested specific
functions and line numbers. I now have a far better understanding of how
the code works, and will be able to write that patch that I've been
wanting to write for years -- without using the LLM.
I have been struggling for, literally, years with understanding why
another tool that I
maintain was
misbehaving in a particular way but only in Firefox. I opened the
codebase in Firefox, explained the buggy behavior in plain English, and
asked it to explain how this could be happening. It picked up some
obscure corner case behavior of ffmpeg and mp4 containers that I was not
aware of and that perfectly explained why things were misbehaving in the
way that they were.
At the same time, there are limitations. Giving an LLM a codebase that
was originally generated by an LLM (either the same one or another one)
seems to work well. Giving it a codebase that was written by a human and
expecting it to correctly update it seems to be more error-prone. I did
one or two of those as a trial, and it is more problematic than
anything.
An LLM is also not intelligent, notwithstanding the popular term of
"Artificial Intelligence". On multiple occasions, I've asked it to write
a test case for some code that was not set up to do so; and rather than
suggesting a refactor is required, it would instead copy the code that
needed to be tested and then test the copy, rather than the original.
The tool has made multiple similar errors. I have sometimes people
describe agentic coding as "similar to interacting with junior
programmers", but that is not the case. A junior programmer will either
fill in the gaps in your specifications, or ask for clarification when
something seems off. The LLM will not do that; it will do what you ask,
exactly that and nothing more. If you missed a corner case in your
specification, then all bets are off.
I remember learning about programming language generations in college.
A first-generation language is "machine code", a second-generation
language is "assembler", a third-generation language is any high-level
language such as C, Perl, or Pascal. I've forgotten what set a
3rd-generation language apart from a 4th-generation language. But I
remember the definition they gave me for a 5th-generation language: "you
tell the computer what to do, and it will do it". At the time, I thought
it was ridiculous. Nobody could ever write something like that.
But it's here.
And it's a threat to free software.
If all you have is a hammer, then everything looks like a nail.LLMs are an outgrowth of machine learning, pushed by large corporations. These large corporations have a lot of money. If all you have is money, then every problem can be fixed by throwing more money at it. The initial language models were promising but not (yet) good enough, and it seemed that one way in which they could be improved was to increase the scale of the statistics: throw more hardware (and thus money) at it, and rather than improving the efficiency of the models, just scale up. Scaling up is something that megacorporations are very good at. It's only a money problem, after all. Does that mean that "scaling up" is the only way to improve the models, though? I'm not convinced. Some hardware, such as most modern Apple and Samsung devices, ship with accelerator hardware for machine learning algorithms. There are some models that are small enough to be able to run on these devices. I don't see why it should not be possible to create a small(er) language model that can do some useful part of the above-described use cases; if not locally, then at least on a server that one can run on-prem rather than requiring that you pay rent to one of the LLM companies. The Software Freedom Conservancy has published an aspirational statement on machine learning-assisted programming that, I think, gets a lot right. It's not quite a definition, but it's something to keep in mind. Perhaps that's the way forward? More questions than answers at this point, anyway.
Next.