Secure database-driven applications on Neocities
1–10 of 15 posts
Re: Secure database-driven applications on Neocities
#2Has anything changed other than developer's comfort with connecting directly from the browser to the backend? Mobile apps are common, and single page applications are accepted. In my experience moving to a simpler stack is good for security.
Re: Secure database-driven applications on Neocities
#3If there's a key that can create users and arbitrary records, and the key is stored in plaintext in your browser code, what's to keep an enterprising user from using your FaunaDB instance as their own data store if they copy-paste the key into their own scripts?
Does FaunaDB protect against a resource usage attack where the client key is used to (maliciously) create millions or billions of new users, costing $$$$?
Re: Secure database-driven applications on Neocities
#4What is the point in having database access with secrets available to the end-user and how is that secure?
Re: Secure database-driven applications on Neocities
#5What is the security model here? I see the word "secure", but no discussion of threat models or what this security provides. If there's a key that can create users and arbitrary records, and the key is stored in plaintext in your browser code, what's to keep an enterprising user from using your FaunaDB instance as their own data store if they copy-paste the key into their own scripts? Does FaunaDB protect against a r…
Re: Secure database-driven applications on Neocities
#6What is the security model here? I see the word "secure", but no discussion of threat models or what this security provides. If there's a key that can create users and arbitrary records, and the key is stored in plaintext in your browser code, what's to keep an enterprising user from using your FaunaDB instance as their own data store if they copy-paste the key into their own scripts? Does FaunaDB protect against a r…
Dunno. They have a white paper, but it's not available unless you provide an email.
Re: Secure database-driven applications on Neocities
#7What is the security model here? I see the word "secure", but no discussion of threat models or what this security provides. If there's a key that can create users and arbitrary records, and the key is stored in plaintext in your browser code, what's to keep an enterprising user from using your FaunaDB instance as their own data store if they copy-paste the key into their own scripts? Does FaunaDB protect against a r…
The use case we're illustrating here is support for the early stages of experimental apps. In the case of a successful app needing to patch this vulnerability in realtime, the sensible thing to do may be to put the user creation function behind a Lambda-like endpoint or a smart proxy that can apply non-application logic to manage resource attacks.
You can learn about the object-level security model here: https://fauna.com/documentation/security
Re: Secure database-driven applications on Neocities
#8{secret:"fnACW7G2d0ACAeiItklGS3QR-FW3sjHK3zwP1kus"} What is the point in having database access with secrets available to the end-user and how is that secure?
Many signup forms don't even have the equivalent of the first secret. It's purpose is more as a client identifier than a genuine secret. If a malicious client were to grab that published secret, the web service author could rotate keys and put a new secret in the HTML, and rate limit the attacked secret.
Re: Secure database-driven applications on Neocities
#9Edit: neat database service as well
Re: Secure database-driven applications on Neocities
#10Holy shit Kyle, that is a HUGE about face for you!