{"id":34903034,"url":"https://github.com/willnet/active-storage-s3-behavior-verification-application","last_synced_at":"2026-03-16T12:35:32.095Z","repository":{"id":314135252,"uuid":"1048147225","full_name":"willnet/active-storage-s3-behavior-verification-application","owner":"willnet","description":null,"archived":false,"fork":false,"pushed_at":"2025-10-10T09:29:02.000Z","size":96,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-10T16:40:00.137Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willnet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-01T02:14:13.000Z","updated_at":"2025-09-01T02:14:32.000Z","dependencies_parsed_at":"2025-09-10T21:09:15.427Z","dependency_job_id":"7c52dab9-ad24-413a-8b0a-f14f13cf44d2","html_url":"https://github.com/willnet/active-storage-s3-behavior-verification-application","commit_stats":null,"previous_names":["willnet/active-storage-s3-behavior-verification-application"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/willnet/active-storage-s3-behavior-verification-application","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willnet%2Factive-storage-s3-behavior-verification-application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willnet%2Factive-storage-s3-behavior-verification-application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willnet%2Factive-storage-s3-behavior-verification-application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willnet%2Factive-storage-s3-behavior-verification-application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willnet","download_url":"https://codeload.github.com/willnet/active-storage-s3-behavior-verification-application/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willnet%2Factive-storage-s3-behavior-verification-application/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28050773,"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","status":"online","status_checked_at":"2025-12-26T02:00:06.189Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-12-26T09:06:12.909Z","updated_at":"2025-12-26T09:06:14.372Z","avatar_url":"https://github.com/willnet.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ActiveStorage S3 Behavior Verification Application\n\nThis application is a sample for verifying ActiveStorage's behavior with S3.\nIt specifically allows you to test signed URL behavior in public-read buckets and their expiration behavior.\n\n## Setup\n\n### 1. Start MinIO\n\n```bash\n# Start MinIO container (public-read bucket \"test-bucket\" will be created automatically)\ndocker compose up -d\n```\n\n### 2. Start the Application\n\n```bash\nbin/setup\n```\n\n### 3. Access in Browser\n\nAccess http://localhost:3000\n\n## Verifiable Behaviors\n\n### 1. File Upload\n- You can upload files from the top page\n- Files are stored in MinIO's public-read bucket using ActiveStorage\n\n### 2. URL Behavior Verification\n\nOn each file's detail page, you can verify three types of URLs:\n\n#### Regular Signed URL (Default)\n```\nhttp://localhost:9000/test-bucket/variants/xxx?X-Amz-Algorithm=...\u0026X-Amz-Expires=300\u0026...\n```\n- ActiveStorage's default behavior\n- Expires in 5 minutes (300 seconds)\n- Always accessible within the expiration time\n\n#### Expiring Signed URL (Expires in 1 second)\n```\nhttp://localhost:9000/test-bucket/variants/xxx?X-Amz-Algorithm=...\u0026X-Amz-Expires=1\u0026...\n```\n- URL generated with expires_in: 1.second\n- Returns 403 Forbidden when accessed after 1 second\n\n#### Public URL (Without query parameters)\n```\nhttp://localhost:9000/test-bucket/variants/xxx\n```\n- URL with query parameters removed from signed URL\n- Accessible via this URL because the bucket is public-read\n\n## Experiment Procedure\n\n1. Upload a file\n2. Access the file's detail page\n3. Click each URL to verify behavior:\n   - **Signed URL**: Can access normally (200 OK)\n   - **Expiring URL**: Can access immediately, but returns 403 Forbidden after a few seconds\n   - **Public URL**: Always accessible (200 OK, because bucket is public-read)\n\n## Verifiable ActiveStorage Behaviors\n\n### Default Behavior\n- ActiveStorage always generates signed URLs and redirects\n- Expired signed URLs return 403 Forbidden\n\n### Special Behavior in Public-read Buckets\n- Even when signed URLs expire, you can access with 200 OK by removing query parameters\n- This is because the bucket is set to public-read\n\n## Technical Details\n\n### MinIO Configuration\n- Ports: 9000 (API), 9001 (Console)\n- Admin panel: http://localhost:9001 (minioadmin / minioadmin)\n- Bucket: test-bucket (public-read)\n\n### ActiveStorage Configuration\n- Storage service: minio (config/storage.yml)\n- Endpoint: http://localhost:9000\n- force_path_style: true (for MinIO compatibility)\n\n## Troubleshooting\n\n### If MinIO won't start\n```bash\n# Stop and remove containers, then restart\ndocker compose down\ndocker compose up -d\n```\n\n### If ActiveStorage errors occur\n- Verify MinIO is running properly\n- Verify bucket is created (can be checked in MinIO Console)\n- Verify credentials configuration is correct","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillnet%2Factive-storage-s3-behavior-verification-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillnet%2Factive-storage-s3-behavior-verification-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillnet%2Factive-storage-s3-behavior-verification-application/lists"}