Better HN
topnewbestaskshowjobs
Log inSign up

devit

4,235 karma · joined Sep 10, 2015 (11y ago) · 1,525 submissions

Submissions

comment 11y ago · link · parent

How is server push implemented in current nginx?

Can nginx itself automatically parse HTML/CSS and send required resources?

Is there a mechanism for the proxied application to specify additional resources? (for JavaScript use)

comment 11y ago · link · parent

Does the gaming version really have much of a market, considering that the PlayStation 4, XBox One and PC have far better hardware and game library, and that one can already run Android games on their tables/smartphone?

comment 11y ago · link · parent

It seems this system uses your scheme, except that instead of getting the key from administrator input, it computes it from the first K passwords it gets using a secret sharing scheme.

The advantage is that the administrator doesn't need to manually intervene, the disadvantage is that you can't verify passwords (in a way that is more secure than just verifying hashes) until you get at least K correct login attempts.

If the goal is only to defend against SQL injection, a much simpler solution is to just put the key outside the database, for instance in the configuration or source of the application.

comment 11y ago · link · parent

This doesn't seem very effective at what it's trying to do. Once you create the page, what then?

It should be a service that mails all other contributors in the commit log something like this: "Mr. <insert name> introduced a CATASTROPHIC security bug right here! Look at that! <insert code> <insert insults> Are all his contributions hidden landmines that might jeopardize the project at any time? Clearly they need to be checked! <insert list of all his other commits>"

Maybe "git shame" would be more appropriate too.

And yeah, you should probably not do that if it's a company project or a noncritical open source project.

comment 11y ago · link · parent

Aren't these services still wildly overpriced?

At $0.0125/GB/month, that means it costs $75 for 6TB per month.

But a 6TB hard drive costs less than $300, which means that assuming the data is stored on 3 hard drives for redundancy, they break even in less than a year.

However, hard drives seems to last at least 3-5 years on average, so this service seems to be priced at least 3-5 times as much as it costs to Amazon.

And there is even a $0.01/GB charge for retrieval on top.

There are other costs, but they should be relatively small at scale.

Am I missing something? If not, why doesn't anybody compete with Amazon and provide more reasonable pricing?

comment 11y ago · link · parent

Do spam detection on the local machine, although unfortunately it will performs worse.

comment 11y ago · link · parent

"Communicating" doesn't solve deadlocks.

Thread 1 sends message A to thread 2 and waits for a response.

As part of processing message A, thread 2 sends message B to thread 1 and waits for a response... forever, since thread 1 is blocked waiting for thread 2...

comment 11y ago · link · parent

If you have anonymity, you can trivially turn it into pseudonymity by signing all messages with the same public key (which is what Satoshi Nakamoto did...).

Distributing pirated content and child pornography is perfectly doable with just pseudonymity.

comment 11y ago · link · parent

The solution to the excessive API change problem is to force whoever changes the API to fix all the consumers himself before the change is accepted.

The Linux kernel generally uses this policy for internal APIs for example.

comment 11y ago · link · parent

Surely you know that anyone can access the binary code of your first-party applications (using a jailbroken iPhone and a rooted Android device), decompile it (using jd-gui, the Hex-Rays ARM decompiler, etc.) and arbitrarily use the APIs they expose, right?

comment 11y ago · link · parent

In PostgreSQL, you can set the SERIALIZABLE isolation level for the whole database, put a retry loop around all database transactions and completely stop worrying about concurrency issues.

I think all database applications should be written like this at least until performance starts being an issue.

comment 11y ago · link · parent

This is really important work, hopefully it is completed as soon as possible.

It basically allows multiple reputable people to independently build the code and sign a statement that a given source code hash produces a given binary hash (and that the source code hash is the correct one for a given package), and have the presence of at least a certain amount of these signatures be verified on package installation.

This means that it will no longer be possible to backdoor Debian without changing source code by compromising the main build infrastructure.

comment 11y ago · link · parent

It's interesting that it says that "Warning: Requires Postgres 9.5. You WILL lose sync if you run against an earlier version. YOU HAVE BEEN WARNED."

Which PostgreSQL features new in 9.5 are being used that cause that? Or are earlier versions somehow buggy?

comment 11y ago · link · parent

That's wrong: PNG uses a predictor that potentially depends on the previous row

https://en.wikipedia.org/wiki/Portable_Network_Graphics#Filt...

comment 11y ago · link · parent

There are more ways in GraphQL to create huge result sets than that though.

For example, a query like "user {moviesWatchedByUser {usersWhoWatchedMovie {moviesWatchedByUser {usersWhoWatchedMovie ..." is allowed by GraphQL and will generate output with size exponential in the input size.

You can also do "{a1: expensiveOperation, a2: expensiveOperation, a3: expensiveOperation, ..." and trigger expensiveOperation an arbitrary number of times (for each item in the list you apply that to).

By using a sequence of fragments that include the next fragment more than once, it looks like you can trigger expensiveOperation an exponential number of times.

It's not clear if there is a way to prevent all this without severely impacting usabilty (by warping the schema design and adding GraphQL limits to handle this) or reliability (by enforcing hardcoded low resource usage limits).

comment 11y ago · link · parent

It's interesting that Falcon Heavy costs 1.5x as much as Falcon 9, but carries 4x the payload.

Why doesn't SpaceX offer the Falcon Heavy exclusively and launch multiple payloads per launch, thus more than halving costs?

Are there payload volume or orbit separation limitations or is the pricing info not complete?

comment 11y ago · link · parent

I think "ObjectQL" or "NestedRPC" might be more appropriate: it's an IDL and protocol for a nested RPC facility for object-oriented systems.

You start with a root query object and then call a bunch of methods on it of the client's choice and put the results in a dictionary.

Then you do that recursively on the resulting objects until you have data consisting of nested dictionaries and lists containing only primitives, which is finally serialized as JSON and returned.

comment 11y ago · link · parent

How do GraphQL implementations avoid denial of service?

In other words, what stops anyone from easily disabling a website by making a few parallel extremely complex GraphQL requests that consume all CPU and I/O, and perhaps result in holding some locks for a very long time?

In normal APIs you can make sure most endpoints are cheap to run, and throttle, secure or otherwise control the ones that must be expensive, but that doesn't work if you expose a flexible layer like GraphQL (or SQL).

comment 11y ago · link · parent

I interpreted "you must prove control over both the server and the key used in the existing certificate" as meaning that if a Let's Encrypt certificate for the domain has been created in the past, you need to own its key (presumably proved by signing something with it) to get another one.

Is that wrong?

Waiting for certificates to expire could mean waiting for years, unless they have auto-renewing very short-lived certificates (but then you have the same problem for the authentication used to automatically get those certificates).

comment 11y ago · link · parent

For thesu not restricted to Python, the ImageMagick convert tool is probably the quickest way to get something like this working.

comment 11y ago · link · parent

What happens if the user loses the key?

What happens if a certificate is requested, the domain is sold to a new owner and the new owner tries to request a certificate, but doesn't have access to the keys for the old one?

Also, how can the new owner revoke all certificates delivered to previous owners?

comment 11y ago · link · parent

I have found that wireless is not as good as it seems because you can't have efficient wireless power at the moment or batteries that last decades.

So you don't have the cable anymore but now your devices randomly stop working until you change the batteries and if you run out of charged batteries it's really annoying.

Proving that it is secure and avoiding interference are also problems that are currently impratical to solve.

comment 11y ago · link · parent

The weakest spot against targeted attacks is probably the fact that a 0-day in your browser compromises everything.

comment 11y ago · link · parent

It seems dubious that there is a real vulnerability here.

The authors talk a lot about how you can get everything if you compromise the client machine, but of course if you compromise the client you can compromise everything.

Just install a keylogger to get all typed passwords, send the decrypted hard drive image over the network and run it in a VM proxying network traffic via the compromised machine, no need for any targeted attack.

The fact that they focus on that rather than on an actual interesting attack makes me believe that there is no real vulnerability whatsoever.

"We also found how it is possible to abuse account recovery to ultimately obtain the encryption key for the vault" is really scary, but if it were accurate they would be talking solely about that, so maybe it's just a phishing attack.

1
4748495051