110 karma · joined Jun 27, 2015 (11y ago) · 39 submissions
comment 11mo ago · link · parent
htvend is a tool to help you capture any internet dependencies needed in order to perform a task.
It builds a manifest of internet assets needed, which you can check-in with your project.
The idea being that this serves as an upstream package lock file for any asset type, and that you can re-use this to rebuild your application if the upstream assets are removed, or if you are without internet connectivity.
Has an experimental GitHub action to integrate within your GitHub build, archiving assets to S3.
comment 1y ago · link · parent
comment 1y ago · link · parent
The intent was to support basic build systems accessing package eco-systems that tend to always serve the same response for the same URL.
Docker registries do this reasonably well, as do Maven repos.
It wasn't intended to be a full on proper archiving proxy (and I'll admit I hadn't heard that term - I'll look into it and see what else exists in that space).
The main use-case I had in mind for this is private projects, that are developed on workstations which have internet access, but are deployed to other environments using CI/CD systems with less network access. If both systems have access to a common blob store, then that can be populated with htvend build on a workstation and replayed at build time with htvend offline.
For that, there's no need to capture additional request information, as the focus wasn't to support getting a manifest file and being able to reliably re-download all the blobs from internet (and often those responses may have changed in the interim). And for the same reason, would expect to only need to one response per URL, per assets.json file.
Does that make sense?
4.
Show HN: Htvend, a tool to capture internet dependencies(github.com ↗)
3 points · by aeijdenberg · 1y ago · 2 comments
comment 1y ago · link · parent
func foo() (retErr error) {
f, err := os.Create("out.txt")
if err != nil {
return fmt.Errorf("error opening file: %w", err)
}
defer func() {
err := f.Close()
if err != nil && retErr == nil {
retErr = fmt.Errorf("error closing file: %w", err)
}
}()
_, err = f.Write([]byte("hello world!"))
return err
}comment 7y ago · link · parent
Our team managed to screw-up some pretty major DNS due to a valid terraform plan that looked OK, but in reality then deleted a bunch of records, before failing (for some reason I can't remember) before it could create new ones.
And of course, we forgot that although we had shortened TTL on our records, the TTL on the parent records that I think get hit when no records are found were much longer, so we had a real bad afternoon. :)
comment 7y ago · link · parent
To calculate ground speed (as required for navigation and fuel planning) you need true airspeed (not indicated) as well as wind direction and speed.
See some discussion here: https://www.quora.com/In-aviation-what-is-the-difference-bet...
8.
DTA warns blockchain is still a solution looking for a problem(itnews.com.au ↗)
2 points · by aeijdenberg · 7y ago · discuss
comment 8y ago · link · parent
There are ways to work around this, for example objecthash[0] describes a small modification that prepends the input data with 32 bytes of random data before hashing in order to prevent this.
comment 9y ago · link · parent
One "trend", or rather bad habit that I've noticed a lot in discussion with other developers recently, and this doc also falls into, is that there seems to more focus on "input sanitisation" rather than "output escaping".
Regardless of what's been done to input, if the result is that you have a string that you need to embed into another string, then you need to know how to escape that appropriately for the context in which it's being used. Whether the data is user generated, or taken from your database, always assume that it's trying to break your app, and always escape it on output.
comment 9y ago · link · parent
The trick is to be confident that you're getting the same hash as everyone else - and that's what requiring a proof that it be added to a CT logs gives you some level of assurance about.
comment 9y ago · link · parent
[0] https://security.googleblog.com/2015/09/improved-digital-cer... [1] http://searchsecurity.techtarget.com/news/450411573/Certific... [2]
comment 9y ago · link · parent
If FF is already doing any log inclusion proofs for certificates, then I think including one more (for the FF release itself) would be pretty much line noise.
I think an interesting question arises as to how well with the CT logs themselves would scale to handle the same kinds of certificates for all binaries, if this ends up taking off as a good idea in general. They've had to handle quite an explosion in X509 certificates over the past year or two due to Let's Encrypt. Some of Google's logs now show more than 80,000,000 certificates [0] in there - IIRC 2 years ago it was a low single digit million.
comment 9y ago · link · parent
In that manner they can piggy-back on top of the CT ecosystem (including existing logs, including existing search / monitoring tools, and presumably gossip if/when that's solved).
This seems like a really cool hack! The state of binary software distribution is really pretty scary when you think about it - techniques like this have the potential to restore a lot of confidence.
comment 9y ago · link · parent
It describes a consistent way to hash an object without defining a new format.
comment 9y ago · link · parent
comment 9y ago · link · parent
For the example above, this might be fine, but most examples that I see using this kind of thing are things like:
"select * from foo where id = '%s'" or "<input type='hidden' name='foo' value='%s'/>" or "rm -rf /path/to/customer/%s"
I tend to think that in general appending strings is more often than not quite a dangerous operation, and it behooves the caller to need to have a long think about exactly how the strings being substituted in need to be escaped - as it's pretty rare that they don't need to be.
comment 9y ago · link · parent
If so, wouldn't it be quite plausible that an owner of a Galaxy Note 7, who had previously used tethering elsewhere (with that SSID), would then accidentally broadcast that SSID when using their Windows laptop on the flight, even though the Galaxy Note is not there?
[0] https://www.techdirt.com/blog/wireless/articles/20101011/031...
comment 10y ago · link · parent
When a laptop vendor is building the device that's being shipped, I don't think it's practical for a browser vendor to be able to expect to win that arms race.
comment 10y ago · link · parent
For example, in the case of certificate transparency, that the CAs aren't mis-issuing certificates, and further that the logs aren't conspiring to hide entries (such as via split views).
comment 10y ago · link · parent
You can still get the benefits of verifiability, append-only, detect misbehavior etc without it. See for example Certificate Transparency (RFC6962) for a standard that implements those properties using similar Merkle Tree constructions.
Disclaimer, I have a startup that generalizes the same Verifiable Logs (and also allows for Verifiable Maps): https://www.continusec.com/
comment 10y ago · link · parent
I recently launched Continusec, which provides hosted Verifiable Data Structures. These are verifiable logs and verifiable maps based on the same principles as Google's Certificate Transparency logs, generalized for any use, wrapped up in a hosted cloud service. You might of them as "S3 meets blockchain".
Would appreciate any feedback from the HN community.
29.
Show HN: Verifiable Data Structures(continusec.com ↗)
2 points · by aeijdenberg · 10y ago · 1 comment
comment 10y ago · link · parent