This Rails API project provides secure file-sharing capabilities, implementing various security measures to ensure data integrity and user privacy.
The API includes an endpoint POST /upload for securely uploading files. The implementation incorporates checks to prevent unauthorized access, ensuring that only authenticated users can upload files.
All input data undergoes rigorous validation to prevent injection attacks, including but not limited to SQL injection. By validating input data, the API mitigates the risk of malicious exploitation of vulnerabilities.
Sensitive data storage and transmission, such as passwords or uploaded files, are encrypted to safeguard against unauthorized access. Encryption mechanisms are employed to protect the confidentiality and integrity of sensitive information.
Comprehensive unit tests have been written to validate the functionality and security measures implemented throughout the project. These tests cover the entire codebase, ensuring robustness and reliability.
- Clone the Repository:
git clone https://github.com/mystificator/file-share.git cd file-share - Install Dependencies:
bundle install
- Database Setup:
rails db:create rails db:migrate
- Start the Server:
rails server
To run the unit tests, use the following command:
bundle exec rspecContributions are welcome! Please feel free to submit issues or pull requests to enhance the security and functionality of the API.