Skip to content
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.

Security, appropriate use cases? #162

Open
sensiblearts opened this issue Apr 10, 2019 · 1 comment
Open

Security, appropriate use cases? #162

sensiblearts opened this issue Apr 10, 2019 · 1 comment
Labels

Comments

@sensiblearts
Copy link

Greetings,
Is this considered secure enough to let a random customer have a editor access? Or is the use case more of internal employee?

I have not yet looked at the code; is it protected from SQL injection or other attacks?

Thanks,
David

@jamonholmgren
Copy link
Member

Hey @sensiblearts, I appreciate your patience! I didn't see this until now.

The use case that we've used it for is internal employee. However, in theory it should be secure enough for a random customer to have access.

In any event, you are able to verify what they're posting before we write it to the server.

plug :ensure_authorized! when not action in [:show_file]

Check that out. It's pretty simple code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants