Live data from Hacker News

Ask HN: Is there an immutable and decentralized database out there?

news.ycombinator.com

1–10 of 16 posts

Ask HN: Is there an immutable and decentralized database out there?

#1
Hi Guys,

I am in need of a database that is decentralised and would allow one or more privileged users perform only INSERT and READ operations. This means data stored in it would be replicated across all nodes and are immutable. Immutable in the sense that the principal cannot delete or edit a record even though it is the reason the database exists. Anyone can join the network, but only one or more privileged users can perform operations.

The reason I need this is because I am looking for non-blockchain based model for achieving data integrity and ensuring that a centralized entity cannot mutate data secretly.

Do you think this is feasible? Are there any existing open source solutions out there?

Re: Ask HN: Is there an immutable and decentralized database out there?

#3

Any distributed database with support for User roles/access will fulfill your requirements.

The distributed databases I have looked into have a user who grants roles/access to every other user. This means someone has to be trusted with full privileges. A solution where the access/role is baked into the software could be ideal.

Re: Ask HN: Is there an immutable and decentralized database out there?

#4
post #3

Any distributed database with support for User roles/access will fulfill your requirements.

The distributed databases I have looked into have a user who grants roles/access to every other user. This means someone has to be trusted with full privileges. A solution where the access/role is baked into the software could be ideal.

You want the database to be its own admin?

Re: Ask HN: Is there an immutable and decentralized database out there?

#5
I believe you're describing what is typically referred to as an "append only" datastore.

The biggest-name in the game is Google BigQuery. From their docs:

"BigQuery tables are append-only. The query language does not currently support either updating or deleting data. In order to update or delete data, you must delete the table, then recreate the table with new data. Alternatively, you could write a query that modifies the data and specify a new results table."

There are others databases, like Datomic, which are less popular. Typical use-cases are usually log-storage, so search around for databases meant for logging, and I'm sure you'll find a lot more.

Re: Ask HN: Is there an immutable and decentralized database out there?

#8
post #3

Earlier quoted context omitted.

The distributed databases I have looked into have a user who grants roles/access to every other user. This means someone has to be trusted with full privileges. A solution where the access/role is baked into the software could be ideal.

You want the database to be its own admin?

Actually, I want no admin.

Maybe this might sound a little crazy, I am trying to build a system where arbitrary number of persons maintain nodes (I don't even need to know these persons) that have my data. The software managing my data should only allow me append and read from it.

This kind of database makes it impossible for me to alter data once appended.

Re: Ask HN: Is there an immutable and decentralized database out there?

#9

I believe you're describing what is typically referred to as an "append only" datastore. The biggest-name in the game is Google BigQuery. From their docs: "BigQuery tables are append-only. The query language does not currently support either updating or deleting data. In order to update or delete data, you must delete the table, then recreate the table with new data. Alternatively, you could write a query that modifi…

Thanks for your suggestion. The fact that data written to BigQuery can still be modified is not so great for my case. I want to be able to make data immutable forever. Nobody should be able to modify or delete it. Malicious alterations should not affect other nodes holding replicated data.

Re: Ask HN: Is there an immutable and decentralized database out there?

#10
post #7

IPFS, with a chain of objects, signed with one of a set of whitelisted keys. You'd need a bit of logic on each node to pull the latest objects (maybe using IPNS).

IPFS looks quite interesting. I will study it more to see whether it would play an important part in solving my problem. It appears there isn't an exact open source solution out there.
Post reply on HN