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

comment 2y ago · link · parent

Right, sorry, I wasn't implying that the community should or could add PKCS#11 support, just stating that while TPM support is nominally lacking from Vault Enterprise documentation, it is achievable today via PKCS#11 bridge. :-)

comment 2y ago · link · parent

I don't think this is a valid take. Some, like myself, have left over this issue. Many discussions happened in private for various obvious reasons.

But your reasoning at the end was not my understanding.

That said, I have nothing but respect for my former colleagues there. Some of the best engineers have I worked with are still at Hashicorp. :-)

Disclaimer: Views my own, not that of any past, present, or future employer.

comment 2y ago · link · parent

\o do you mind opening issues for these topics for discussion?

https://github.com/openbao/openbao/issues/new

TPM seal could be addressed with the PKCS#11 TPM bridge (which requires Vault Enterprise). But I'm curious what blocking queries are, as I've not heard of them before...

Elaboration on the pain points of plugin lifecycle would definitely be useful :-)

comment 2y ago · link · parent

> Yeah, alright then.

As far as I'm aware, Scalr is not directly participating in or precipitating the fork at this time [0]. This was started by groups working on OpenHorizon and EdgeX Foundary (two Linux Foundation projects under the LF Edge umbrella) which both use Vault internally and are offered by other organizations commercially. This made them incompatible with the BUSL (for both open source and commercial variants) which necessitated the fork.

[0]: https://wiki.lfedge.org/display/OH/OpenBao+%28Hashicorp+Vaul...

comment 2y ago · link · parent

It is in FIPS 186-5 which is a very recent standard. Likely the underlying implementation has not undergone recertification to include it, as NIST has quite the backlog for FIPS certifications.

See: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf and https://csrc.nist.gov/projects/cryptographic-module-validati...

comment 3y ago · link · parent

Chrome 119.0.6045.163 (Official Build) (64-bit) on Android 14 worked for me, but Firefox Nightly Mobile 122.0a1 didn't. I've built other apps with Tone JS that work fine in Firefox (outside of a few pops as the complexity increases) but I've not looked for error messages.

comment 3y ago · link · parent

Perhaps a more apt term would be freeware.

The BUSL is not OSI approved and places restrictions around usage, in an effort to sell some product or service off of a project and prohibit competition. It is not free as in beer either, if you hit such usage.

The source is available (hence source available being another terminology) but even Hashicorp has dropped "open source" from nearly every relevant page in understanding that their products no longer have an open source core (see instead "Vault Community" or "Terraform Community").

The general consensus is that no, the BUSL is not OSS as OSI has not blessed it as such: https://opensource.org/licenses/

comment 3y ago · link · parent

If anyone does start an open Vault fork, I'd be interested in contributing as I get time.

Edit to add: https://github.com/hashicorp/vault/graphs/contributors?from=...

comment 3y ago · link · parent

Note for whatever it is worth that the Homebrew-owned version rebuilds these from source -- https://github.com/Homebrew/homebrew-core/pull/139538/files#.... This is also typical in the Linux packaging ecosystem, but typically involving packaging dependencies explicitly too, which is likely why Vault &co never landed in a distro's package set prior to the license change.

The Hashicorp variants copy the release builds: https://github.com/hashicorp/homebrew-tap/blob/master/Formul...

comment 3y ago · link · parent

Nomad, along with the rest of Hashicorp's flagship products, transitioned to the BUSL-1.1: https://github.com/hashicorp/nomad/blob/main/LICENSE

comment 4y ago · link · parent

This isn't fair to the OP.

> > That is, take some data and manipulate it until it has the same MD5 as a different piece of data.

> Second sentence is false - that's called a preimage attack.

It's actually rather poorly specified description of either, tbh. I don't think this is a charitable read of the sentence.

Formally, a second preimage game has one party (the adversary to your algorithm) generate some data and and a second party (your algorithm) generate some other different data, with a hash that matches that of the unmodified data chosen by the first party.

A collision attack lets your algorithm choose both pieces of data, and the adversary simply verifies the hashes match.

Most collision attacks, going back to Wang's original attack on md5, generate a random string and manipulate it until certain preconditions hold and hope that its pair's hash matches, and otherwise try again until one matches. (Where pair is defined as some inversion under the constraint system -- usually the same block with certain bits flipped).

But that description sounds awfully like the original vague description. :-)

Edit to add: the OP is misinformed about preimage attacks being easy, outside of specific scenarios like rainbow tables and the like. For the general case of arbitrary hashes it is hard.

comment 4y ago · link · parent

IBM has done this as well.

comment 4y ago · link · parent

Wouldn't that just be because OP's comment appeared on the article, which was posted ~1h ago, and the Google result link is to the article, not the comment directly, hence has the earlier timestamp?

comment 4y ago · link · parent

Does this impact most distros? I'd imagine Python and PHP's native crypto bindings would be replaced with OpenSSL which should have assembly variants of SHA-3.

comment 4y ago · link · parent

Copyright claims are a form of content moderation, by preventing reuse of content that others own.

But it can still be weaponized to prevent legitimate resubmissions of parallel works, that can potentially deplatform legitimate users, depending on the reviewer and the clarity of the rebuttal.

comment 4y ago · link · parent

The poster isn't claiming that this is a valid DMCA suit. Nearly everyone who is at a mildly decent level and has posted their own recordings of classical musical to YouTube have received these claims _in their Copyright section_. YouTube itself prefixes this with some lengthy disclaimer about how this isn't the DMCA process but that they reserve the right to kick you off their site based on fraudulent matches made by their algorithms.

They are absolutely completely and utterly bullshit. Nobody with half an ear for music will mistake my playing of Bach's G Minor Sonata with Arthur Grumiaux (too many out of tune notes :-D). But yet, YouTube still manages to match this to my playing, probably because they have never heard it before now (I recorded it mere minutes before).

So no, it isn't a valid claim, but this algorithm trained on certain examples of work, manages to make bad classifications with potentially devastating ramifications for the creator (I'm not a monetized YouTube artist, but if this triggered a complete lockout of my Google account(s), this likely end Very Badly).

I think it's a very relevant comparison to the GP's examples.

comment 4y ago · link · parent

I believe 384 has the same problem: most CAs use RSA-2048/SHA-256 signatures and very few do 2048/384 (which this certificate is doing), especially on demand (ACME has no parameter to control hash function selection by the requester for instance)

SHA384 with P-384 is much more common (and tested elsewhere on the site); what is unique about this one is using a larger hash with RSA keys.

Like some of the other certs, it requires partnerships with CAs willing to bend their process a little for the sake of publicly available test infra.

comment 4y ago · link · parent

Yeah there's a GitHub repo behind this and there's comments from past times it has expired. Essentially it requires a public CA to issue an EV cert for them, which is hard to maintain and rotate. I think Mozilla and DigiCert worked on this iirc.

comment 4y ago · link · parent

https://developers.redhat.com/blog/2021/04/16/broadening-com...

Red Hat seems to have a =3

comment 4y ago · link · parent

The middle of the list had a media disclosure without any auth via the image API.

That would mean running a publicly accessible instance would be ill advised if you can about the privacy of what you host. Plex on the other hand somewhat encourages publicly accessible instances, so you can listen/watch while not at home.

(The caveat being, certain plugins disclose media to Plex but arguably that's a first or second party not some rando on the internet scraping stuff)

comment 4y ago · link · parent

Correct; after the newer seeding policies have taken affect, many have punted to the OS/app for seeding. See https://csrc.nist.gov/CSRC/media/projects/cryptographic-modu... -- the entropy input is plaintext via API, but still needs to be from an approved source via 90B I believe, so likely means their Android kernel is also certified or they maintain something like JitterEntropy for that.

The older e.g., 36xx series Google cert predates that requirement iirc, when you could seed from a non-FIPS kernel.

comment 4y ago · link · parent

Every major Linux distro ships FIPS crypto libraries that seed from the Linux kernel; the source is available.

comment 4y ago · link · parent

Sorry, reading NIST is worse than reading tea leaves and I don't actively participate in the IETF TLS mailing lists enough to say any more than the next person :-) Just stating that the process (NIST to enterprise customer) takes time for complete PQC adoption across the entire stack.

comment 4y ago · link · parent

Ah sorry, correct.

comment 4y ago · link · parent

OP does have a point though, especially with DJB's thoughts (and others) on the matter.

https://nitter.net/hashbreaker?lang=en

For FIPS in particular, they've first gotta sunset the traditional algorithms for anyone to strictly need to care (and even then, parallel constructions of PQC+traditional could let other PQC algorithms in -- like the Chrome experiments -- from a FIPS perspective, you can treat the PQC like plaintext). And for them to be useful, adoption needs to occur in the IETF communities (PKIX, TLS, SSH, IKE, ...).

You're probably looking at least 5 years on the adoption window to customers running the lastest updates. NIST's blessing might help some of the IETF conversations that now need to happen. But not listening to DJB, given his track record, likely will anger a subset of IETF contributors and might hinder adoption.

It'll be interesting to see if IETF takes the more conservative approach advocates by DJB or if they continue on with NIST's blessing alone. But I'm just a watcher... :-)

Edit: and for the record, FIPS never mandated Dual EC DRBG but it was still a mistake for NIST to rubber stamp.

comment 4y ago · link · parent

As a fun fact, you can also run:

    $ systemctl --user enable --now podman.socket
    $ export DOCKER_HOST=unix:///run/user/$UID/podman/podman.sock
and get a rootless, Docker-compatible socket. If you're running, e.g., a test suite written against the Go Moby APIs, this will execute the containers with Podman rather than with the system daemon.

comment 4y ago · link · parent

Nah, no op code. You just open a regular connection and then terminate it. This forces the TLS server to auth (as the CLI OpenSSL lacks session resumption tickets).

comment 4y ago · link · parent

In general, we don't actually have enough information to tell this. :-)

Consider the case of an older Android client (not from TFA, but bear with me), using certs from Let's Encrypt: https://letsencrypt.org/certificates/

On an older server install, it could be the server was setup with a manual R3->leaf trust, serving (at the time) both copies of R3. This would've been within TLS spec: https://datatracker.ietf.org/doc/html/rfc8446#section-4.4.2 as you are within rights to omit roots:

> a certificate that specifies a trust anchor MAY be omitted from the chain, provided that supported peers are known to possess any omitted certificates.

Both ISRG Root X1 and DST Root CA X3 are well-known roots, and so might be omitted by an operator.

ACME does its thing, but this (admittedly misconfigured) server only updates the leaf cert.

However, original copy of DST->R3 expires. While we have two intermediates in the served chain, because our client relies on the DST trust root, it can't validate it because the cross-signed ISRG Root X1 is missing. But when browsing to a correctly-configured LE-based server (serving the cross-signed ISRG Root X1), this will prime the intermediate cache and allow validation to succeed.

And from the PoV of the old Android based client, this would look like an intermediate is missing (because it doesn't trust the self-signed ISRG Root X1 but does the cross-signed copy).

My 2c, but its entirely plausible (with public CAs) that this could be the case if one of these installations is out of date.

comment 4y ago · link · parent

This is almost all correct, but note that the new TLSv1.3 CertificateAuthoritiesExtension is optional (MAY): https://datatracker.ietf.org/doc/html/rfc8446#section-4.2.4

comment 4y ago · link · parent

Strictly it isn't true that a leaf cert's validity must be capped by the parent issuer's, but I'm also surprised this worked.

I suspect the intermediate is still valid though.

The PKIX RFC 5280 says: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2....

I'll leave you to parse it, but it notably lacks the requirement that CAs must truncate validity. Let's Encrypt is a great example: https://letsencrypt.org/certificates/ -- DST Root CA X3 -> ISRG Root X1 is a cross-signed root, and DST Root CA X3 expired recently (breaking some validation on Android devices). However, by issuing that cross-signed ISRG root before the DST root expired, Let's Encrypt is still working on older Android devices: https://letsencrypt.org/2020/12/21/extending-android-compati...

In practice though, most chain validation I've looked at (OpenSSL, NSS+pkix, Go) all validate the validity period of the intermediate (relative to now, not of the leaf) and will err if it isn't still valid.

What they don't validate is _root_ validity (since it is ultimately trusted and in the trust store, and is again how the Android support worked).

So typically you'd want to permit longer validity from roots (pending the caveat about supporting CRL/OCSP/... throughout the longer lifetime of any leaf), but truncate validity on leaves issued from intermediates.

1234567