{"id":17034540,"url":"https://github.com/caub/cloudfront-signer","last_synced_at":"2026-05-05T02:33:19.301Z","repository":{"id":57200790,"uuid":"84057292","full_name":"caub/cloudfront-signer","owner":"caub","description":"Sign AWS Cloudfront urls","archived":false,"fork":false,"pushed_at":"2017-08-10T11:27:10.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T12:49:49.581Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/caub.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}},"created_at":"2017-03-06T09:57:03.000Z","updated_at":"2017-04-24T14:57:41.000Z","dependencies_parsed_at":"2022-09-16T15:11:57.330Z","dependency_job_id":null,"html_url":"https://github.com/caub/cloudfront-signer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caub%2Fcloudfront-signer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caub%2Fcloudfront-signer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caub%2Fcloudfront-signer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caub%2Fcloudfront-signer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caub","download_url":"https://codeload.github.com/caub/cloudfront-signer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245026042,"owners_count":20549073,"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-10-14T08:43:54.802Z","updated_at":"2026-05-05T02:33:14.251Z","avatar_url":"https://github.com/caub.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## CloudFront Signer [![Build Status](https://travis-ci.org/caub/cloudfront-signer.svg?branch=master)](https://travis-ci.org/caub/cloudfront-signer)\n\nSign urls with [canned or custom policy](http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-signed-urls.html)\n\n**Notice**: Use aws-sdk library rather, this one was done before I knew about it, and inspired from aws-cloudfront-sign\n\n```js\n// canned:\nconst cfSign = require('cloudfront-signer');\n\nconst expire = Math.floor((Date.now()+86400e3)*0.001); // expire in one day\nconst url = 'http://xyz.cloudfront.net/test/cool?fun=1';\nconst signedUrl = url + '\u0026' + cfSign(url, expire, cfKeypairId, cfPrivateKey)\n```\n\n\n```js\n// custom (allow wildcards):\nconst cfSign = require('cloudfront-signer');\n\nconst expire = Math.floor((Date.now()+86400e3)*0.001); // expire in one day\nconst qs = cfSign('http://xyz.cloudfront.net/test/*', expire, cfKeypairId, cfPrivateKey)\n// valid for 'http://xyz.cloudfront.net/test/test/bar?' + qs\n// valid for 'http://xyz.cloudfront.net/test/test/cool?fun=1\u0026' + qs\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaub%2Fcloudfront-signer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaub%2Fcloudfront-signer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaub%2Fcloudfront-signer/lists"}