{"id":18110468,"url":"https://github.com/strd6/s3_policy","last_synced_at":"2025-04-06T07:44:16.779Z","repository":{"id":18278035,"uuid":"21443339","full_name":"STRd6/s3_policy","owner":"STRd6","description":"Generate a signed S3 policy document for namespaced clientside uploads.","archived":false,"fork":false,"pushed_at":"2018-12-14T08:33:27.000Z","size":152,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T23:44:30.641Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/STRd6.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-02T23:14:42.000Z","updated_at":"2023-06-19T00:34:32.000Z","dependencies_parsed_at":"2022-09-02T18:01:00.543Z","dependency_job_id":null,"html_url":"https://github.com/STRd6/s3_policy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/STRd6%2Fs3_policy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/STRd6%2Fs3_policy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/STRd6%2Fs3_policy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/STRd6%2Fs3_policy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/STRd6","download_url":"https://codeload.github.com/STRd6/s3_policy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247451614,"owners_count":20940946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-01T00:09:32.661Z","updated_at":"2025-04-06T07:44:16.763Z","avatar_url":"https://github.com/STRd6.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# S3Policy\n\nGenerate a signed S3 policy document for namespaced clientside uploads.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 's3_policy'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install s3_policy\n\n## Usage\n\n```ruby\nrequire 's3_policy'\n\npolicy = S3Policy.generate_policy_document(\n  bucket: \"my_awesome_bucket\",\n  namespace: \"users/#{user_id}/\"\n)\n\nsignature = S3Policy.sign_document(policy, aws_secret_key)\n\n# Give this to the client\n{\n  aws_access_key_id: aws_access_key_id,\n  policy: policy,\n  signature: signature\n}\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrd6%2Fs3_policy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrd6%2Fs3_policy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrd6%2Fs3_policy/lists"}