Better HN
topnewbestaskshowjobs
Log inSign up

cipherboy

700 karma · joined Sep 28, 2015 (11y ago) · 204 submissions

Head of OpenBao Development @ ControlPlane.

The BUSL-1.1 is not OSS.

My views are my own, not that of any past, present, or future employer.

https://cipherboy.com

https://github.com/cipherboy

alexander.m.scheel@gmail.com

Submissions

31.

ICP-Brasil: Mis-issued certificate(bugzilla.mozilla.org ↗)

61 points · by cipherboy · 1y ago · 3 comments

32.

OpenBao's First Roadmap and Community Direction(openbao.org ↗)

3 points · by cipherboy · 2y ago · discuss

33.

OpenBAO – Maintainers, Commiters, and Moderators Oh-My(openbao.org ↗)

2 points · by cipherboy · 2y ago · discuss

34.

Announcing the OpenBao Blog(openbao.org ↗)

2 points · by cipherboy · 2y ago · discuss

comment 2y ago · link · parent

Which reference AES implementation? My memory is that the one from the spec has terrible timing side channel attacks... e.g. https://www.redhat.com/en/blog/its-all-question-time-aes-tim... seems to corroborate my memory.

I seem to recall this was remotely exploitable, and exploiting timing side channels has only gotten better since 2014.

comment 2y ago · link · parent

FWIW, most of the code and docs contributions have come from non-IBMers [0]. That said, IBM has done a lot of great work building the foundation and initial community and without them, OpenBao wouldn't be here. :-)

Speaking for myself, but I do not get any monetary compensation from IBM and I suspect this is true for all of the other non-IBM contributors.

[0]: https://github.com/openbao/openbao/releases/tag/v2.0.0-alpha...

comment 2y ago · link · parent

And OpenBao's fork of Vault. There are non-IBM companies on the TSC.

comment 2y ago · link · parent

That looks like a(n unofficial) fork, not contributions to the official upstream repository.

comment 2y ago · link · parent

Citation needed? https://github.com/facebook/zstd/commits/dev/?author=jiaT75

comment 2y ago · link · parent

Sure, but in general the expected value of a HSM is that (especially in FIPS mode) it prevents extraction and accidental leakage of the keys (and maybe at appliance levels has explicit logging).

If you're sure you never do a plaintext backup or anything else that might leak the key, then it may not matter. But it is a decent defense in depth measure for high assurance operations.

I heard a story once about a CA (public? private? not sure!) that had an airgapped root CA in a basement lab, only for an enterprising admin to run an Ethernet cable between their desk and the basement lab to save themselves a few trips... An online HSM may allow effective leakage (by allowing arbitrary signing operations), but hopefully would prohibit export by a crypto user and retain audit logs of all operations to identify scope of the compromise.

At some point, you end up reinventing an HSM from first principals. :-) My 2c.

comment 2y ago · link · parent

As an example, an offline PKI root backed by a picohsm would be fast enough, given intermediates aren't typically minted that frequently.

comment 2y ago · link · parent

https://csrc.nist.gov/pubs/sp/1800/37/2prd

It seems to be intentional exfiltration of key material (either bounded DH keypairs rather than ephemeral or, more likely, exfil of the symmetric channel key).

comment 2y ago · link · parent

Does this also extend to the BUSL?

comment 2y ago · link · parent

I think there's many counter examples to this: Jenkins & Hudson, Illumos & Solaris, LibreSSL & OpenSSL & BoringSSL, LibreOffice & OpenOffice, Spongy Castle & Bouncy Castle, and Webkit & KHTML to name a few.

A fork need not necessarily be 1:1, bug for bug, compatible.

We discussed this here: https://github.com/orgs/openbao/discussions/55 and here: https://github.com/orgs/openbao/discussions/64 -- you're welcome to give feedback there and contribute to the success of the project. :-)

But as noted here: https://developer.hashicorp.com/vault/docs/configuration/sto... -- upstream only supports the Raft backend. The other backends may have issues and don't see many commits as upstream has not delegated maintenance to external community members. Frequently, commentators (both employees and community members) suggest moving away from custom storage backends to Raft.

A storage migration only impacts one small category of users -- the operator -- but remains transparent to the consumers of secrets (whether humans or applications). This only occurs once. Yes, it requires planning. Yes, it is a lot of work to execute successfully. But it is also an approach upstream uses e.g., in FIPS 140-2 migrations: https://developer.hashicorp.com/vault/docs/enterprise/fips/f... -- as we get time, we'd like to make this type of cross-instance migration more automated if we can.

But our goal is to remain API compatible, so the vast majority of use cases require no changes to operate with the forked code. And we wish to remain as drop-in compatible with consumers using Raft as we can. So yes, I think OpenBao can still be called a fork of Vault. And IMO, even a 1:1 bug compatible fork is still a separate product, and that isn't necessarily a bad thing. :-)

OpenTofu has much the same approach, where they don't guarantee a 1:1 drop-in, bug-for-bug fork of upstream, but instead gives themselves some room to make changes for the best of their community: https://opentofu.org/docs/language/v1-compatibility-promises...

I think that every project needs to find their own balance, and this is what the OpenBao community has chosen. :-)

My 2c, views my own. But feel free to contact me via email if you have additional technical concerns to discuss.

comment 2y ago · link · parent

Maintainability and feature development mostly.

I have a few improvements I'd have liked to have see upstream, but couldn't land due to the vast storage plugin base. You're left writing to the lowest common denominator of 20 storage engines which isn't maintainable when HashiCorp only supports Raft and Consul.

Take paginated lists which I've proposed as a PR. If your backend engine of choice doesn't support efficient pagination aligning with the designated semantics, you're stuck implementing it from scratch. Now do that with transactional storage, which is another upstream requested feature... And so forth.

Additionally, the current contributor base is too small to support much more. Personally, I'd like to see Postgres as the only external storage engine. But I don't presently feel we have enough maintainers to justify multiple storage engines. Raft is easiest to support as it is what upstream is actively developing. It also eases migration for upstream-aligned users.

My 2c. But happy to take suggestions and contributions!

Edit to add: ideally I'd have liked to add an external storage plugin interface, but this would be a bit of a perf hit over native support and wouldn't be a stable target (as I'd like to see some of these things land).

comment 2y ago · link · parent

Per https://github.com/orgs/openbao/discussions/147#discussionco... the Alpha is slated for end of the month. No word on GA date yet.

comment 2y ago · link · parent

Thank you for the RFE! Looking at the X-Forwarded-For handling might be good, I wasn't able to add tests for that easily, though maybe the existing test could be used as a template if you get time. I think we depend on nginx or Caddy elsewhere, but the pkiext tests might also serve as a good reference. :-)

comment 2y ago · link · parent

Happy to answer technical questions about OpenBao as people have, though some might be best directed at the Technical Steering Committee, which I do not represent. :-)

comment 2y ago · link · parent

Kyber Slash (and Kyber Slash II) is a recent one in a very modern, PQC finalist algorithm that is missing from the list if you're looking to expand! This was caused by an integer division by a known constant (KYBER_Q = 3329) under a sensitive numerator, with some optimizing compilers not emitting a regular idiv instruction.

https://kyberslash.cr.yp.to/faq.html

comment 2y ago · link · parent

I agree.

I think what OP is talking about is change in the (for rebuilders) source distribution availability, e.g., https://www.redhat.com/en/blog/furthering-evolution-centos-s... -- but as a later blog post points out (https://www.redhat.com/en/blog/red-hats-commitment-open-sour...), the source is still available in a different location, though perhaps at a slightly different point in the release cycle: forward looking to RHEL next.

My response is in that context, that even if one were to consider the removal of those source locations somehow a "license change" (and I agree with you, it is not), nearly everyone working on RHEL would still be an OSI developer, for reasons pointed out by Mike.

Which is a very good thing, and as a former Red Hatter, thank you for helping to keep that possible Richard!

comment 2y ago · link · parent

Even businesses care about the distinction between OSI-approved and SSPL/BUSL licensed code bases. In the latter, they often cannot host services that use BUSL licensed code which puts risks on the business. Some examples:

Do they need to consult with a lawyer to understand if their particular use case is acceptable?

If not now, then how do they know when that threshold is met?

When the service is offered for revenue?

Or only when offered directly to customers?

What about if theirs is a consulting-structured business e.g., IBM or Collins, where any internally service provided to another team is billed and paid for internal to the company (even though its not paid for by an external customer)?

Can they hire developers to contribute to the code when the upstream is unresponsive to their bugs/features? Or, if they have to integrate with other custom internal infrastructure/tooling? Are they free to remix these tools into larger projects of theirs?

It is possible to separate the moralizing aspects of these licenses and articulate concerns strictly in business cases that make them unsuitable for OSI and thus not "open source" in spirit.

comment 2y ago · link · parent

I don't see how it is irrelevant: you ask if they still count, and the answer is yes, because they contribute rather heavily to OSI-approved code, so they'd count regardless.

The real question is, would we consider MongoDB or my former employer, HashiCorp's products, presently open source projects?

In the latter's case, the answer from the community at large has been to fork (edit: not always successfully), giving a fairly good indication as to the answer...

(Whether this is as a result of the act of relicensing the code base or as a result of the license choice probably cannot be fully understood without parallel universes... I'm sure someone would complain and potentially fork if they had relicensed, e.g., from MPLv2 to AGPLv3--another OSI license, but a more restrictive one--though probably nobody would care enough to fork if they had suggested e.g., MIT instead, because the MIT is more permissive.)

However, developer categorization into OSI/non-OSI buckets is rather meaningless.

What we've by and large found is that Linux businesses (regardless of license model, even fully proprietary) can usually find funding, due to the large number of companies willing to pay for support & contract development on it. Many more businesses have been successful here: vendors like RH, Canonical, SUSE, Oracle, and even Microsoft and AWS, but also many smaller vendors & independent developers who make smaller livings and profits.

What's been harder has been the non-Linux Open Source/Free Software business model.

And that's what needs to be solved, one way or another. Perhaps that's committing up front to a license (if you want to use the BUSL, so be it, but don't expect the community to be happy if you do so after your project becomes successful).

But more likely, its by raising awareness and making sure people at the top of the organization (board members, shareholders) understand the value of OSI licenses and how their companies can benefit from it. And on the flip side, how changing the terms of contracts afterwards can cause problems. :-)

comment 2y ago · link · parent

Even with the changes to RHEL licensing, Red Hat developers are still encouraged to upstream changes before landing them in Fedora (and in turn, before landing them in CentOS stream and ultimately RHEL). Nearly every developer at Red Hat working on RHEL will do work in the public, on OSI-licensed packages upstream, before landing changes in RHEL.

The change to RHEL licenses is not around source availability of the packages themselves, that has not and cannot change by Red Hat's hand. And it is a risk to Red Hat's business to heavily (internally) diverge packages from upstream as it makes future updates harder.

Is it a good move? Many think not. But that doesn't change the vast amount of upstream (OSI-licensed) work that Red Hat directly or indirectly sponsors, past RHEL into their JBoss and OpenShift orgs as well.

comment 2y ago · link · parent

I don't believe Microsoft contributes to this project. There are STIGs available for Windows but presumably any automated hardening by Microsoft is proprietary. Likely a new Powershell automation backend would be necessary. The scanner might work, though.

I think part of the dichotomy comes from the general acceptance of these recommendations. STIGs are only really applicable to the US Govt and perhaps a few select groups that do business with them. Even major banks haven't typically adopted them wholesale (like they have with higher FIPS levels for instance).

The broader security community has largely written it off as security theater. For the most part the amount of data generated by these recommendations (which is hard to prove and identify concrete threats in real time -- at best for postmortem understanding) and the impact to usability is substantial enough that I agree. Though, having met with many authors of STIG and other benchmarks, their intentions are well-meaning.

comment 2y ago · link · parent

There are many projects to automate remediations. One in use by the DoD in this area is OpenSCAP (scanner) and Compliance as Code (benchmark content + automated remediations), lead by Red Hat and contributed to by other Linux vendors.

But, despite having a nice three letter acronym, the DoD is not a homogenous unit and so you're bound to get groups doing different things. :-)

comment 2y ago · link · parent

Note that there may be incompatibilities (as noted in the article) until NIST has published the final revisions. Some specifications are on Round 3 kyber, others are on FIPS 203.

This one will interoperate with Bouncy Castle (both Java and C#) as we both use FIPS 203 draft, but it won't interoperate with OQS simultaneously (three-way interop) as that is still on the Round 3 submission.

See also: https://github.com/bcgit/bc-java/issues/1578

(Disclosure: BC is my employer)

comment 2y ago · link · parent

https://youtu.be/u2Hc5F4hJ60 has that quote and many others!

58.

Peter Schickele, composer and gleeful sire of P.D.Q. Bach, dies at 88(nytimes.com ↗)

124 points · by cipherboy · 2y ago · 23 comments

comment 2y ago · link · parent

Like OpenTofu, this will likely take some time and likely will be a blocking step that prevents other contributions until it is done.
1234567