{"_id":"@hs-web-team/serverless-resource-policy","_rev":"160-852f2a84cbf4bb9b1915d2cdcbe535e8","name":"@hs-web-team/serverless-resource-policy","dist-tags":{"latest":"1.1.6"},"versions":{"1.1.4":{"name":"@hs-web-team/serverless-resource-policy","version":"1.1.4","keywords":["serverless","resource-policy","resourcepolicy","ip","cidr","whitelist"],"author":{"name":"HubSpot Web Team"},"license":"MIT","_id":"@hs-web-team/serverless-resource-policy@1.1.4","maintainers":[{"name":"tstelmach","email":"tstelmach@hubspot.com"},{"name":"nckelly","email":"nckelly@hubspot.com"},{"name":"mokoli","email":"mokoli@hubspot.com"},{"name":"mhewitt","email":"morganlhewitt@gmail.com"},{"name":"mdstaff","email":"matthew.staff@gmail.com"},{"name":"tcollinshubspot","email":"tcollins@hubspot.com"},{"name":"dshamis","email":"dshamis@hubspot.com"},{"name":"eshaw","email":"eshaw@hubspot.com"},{"name":"dmooney","email":"dmooney@hubspot.com"},{"name":"kebrahim","email":"kebrahim@hubspot.com"},{"name":"lopchannorie","email":"nhori.lopchantamang@gmail.com"},{"name":"pwilver","email":"pwilver@hubspot.com"},{"name":"tswyter","email":"tswyter@hubspot.com"},{"name":"smcelhinney_hubs","email":"smcelhinney@hubspot.com"}],"homepage":"https://github.com/HubSpotWebTeam/serverless-resource-policy#readme","bugs":{"url":"https://github.com/HubSpotWebTeam/serverless-resource-policy/issues"},"dist":{"shasum":"6472b37ea1431f52bae90991738fd6280f365916","tarball":"https://registry.npmjs.org/@hs-web-team/serverless-resource-policy/-/serverless-resource-policy-1.1.4.tgz","fileCount":4,"integrity":"sha512-1Vojm2B7NOvWi2FsYLwuv79dIH2og2S8OGk5JSK38s2pDCjZohtZ9Uo5h/XgYFTCar9YOV1Z/lHIC6Z4Wuy8ZQ==","signatures":[{"sig":"MEUCIECMaLh6Woy5t49Ye8+b5PNA2SQTHAUWtSk5n/rudvhoAiEAqGls9PS4rR3YyYEIG7IT+ReCZRoUlQ+5yfiXwyuxGS4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5678,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcDpSoCRA9TVsSAnZWagAAdKYP/0R0XdOLjhNFpTjeUmKN\n6pw5oR+X9RWqi1kbaagwfdeHoXy+W+haAq4zg3GXM46YMKe75OjSrK06HOZy\nH80fBMzC4JUtURfrX/LQ5+d5QmWRlVWUqsX6dcga/vkUnH2uFZaCdhias96A\ngdK5eoPQRVU37cqEzwCTmlnenUSX82UlVcEpB04LJNWewylO8bqfBvJ+/nTz\n8AKqiNoxutHp9j/3KtfUX6Frd7QqOtc1rwnkEKqy1cAR5xJ/CDGLFuHLmmlZ\nnOiMUXE0jOcJZuA27Djt8CCULnrathqdiBzizN9D/P/A/uHL5oUGilfv4Osr\nucE3AIWgoEimOG1/hF0ys9iHe8o5wdg/jN+W0kdy9j3e+y2jdaz8TvewgbIf\nwwjgQ/XF36dgSCNKKZW2Zi/M/Rx1BTEBcTHeSFqIEY54YNSpzeM9NvKJfmN4\nyiU1EBLT5w3myMscbid85nezXD3hICK8WHjjf9kTDA9z1Nm5U+8AGKIhZ5d8\ngA/IQFyM/HzIF8dV9T+9t/JCAS0nNCm2fnc8GH74TYA0zJ0w0gcL2DNmvpBj\nZMFVii1B/fx2pCFOeLOabRYxAQhoeT2VDfYlcKNijodEAxZa7K5B3ocm25HP\nKP/tLDtQJur5kXrUMd23GRkTJX4H6I5o+K4UNuKsciAZLPqfBSx2GoRpE9vz\nl0dC\r\n=aLJ9\r\n-----END PGP SIGNATURE-----\r\n"},"test":"echo 'Ordinarily, tests should be here' && exit 0","gitHead":"ba66e8268b7936fdf1e5296c3b5daf681241a52c","_npmUser":{"name":"eshaw","email":"eshaw@hubspot.com"},"deprecated":"Deprecated; use https://www.npmjs.com/package/serverless-resource-policy instead","repository":{"url":"git+https://github.com/HubSpotWebTeam/serverless-resource-policy.git","type":"git"},"_npmVersion":"6.4.1","description":"Creates a whitelist for IP or CIDR addresses for a serverless application, using serverless resource policies","directories":{},"_nodeVersion":"8.9.4","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/serverless-resource-policy_1.1.4_1544459431744_0.531552243826245","host":"s3://npm-registry-packages"}},"1.1.5":{"name":"@hs-web-team/serverless-resource-policy","version":"1.1.5","keywords":["serverless","resource-policy","resourcepolicy","ip","cidr","whitelist"],"author":{"name":"HubSpot Web Team"},"license":"MIT","_id":"@hs-web-team/serverless-resource-policy@1.1.5","maintainers":[{"name":"dmooney","email":"dmooney@hubspot.com"},{"name":"dshamis","email":"dshamis@hubspot.com"},{"name":"eshaw","email":"eshaw@hubspot.com"},{"name":"kebrahim","email":"kebrahim@hubspot.com"},{"name":"lopchannorie","email":"nhori.lopchantamang@gmail.com"},{"name":"mdstaff","email":"matthew.staff@gmail.com"},{"name":"mhewitt","email":"morganlhewitt@gmail.com"},{"name":"mokoli","email":"mokoli@hubspot.com"},{"name":"nckelly","email":"nckelly@hubspot.com"},{"name":"pwilver","email":"pwilver@hubspot.com"},{"name":"smcelhinney_hubs","email":"smcelhinney@hubspot.com"},{"name":"tcollinshubspot","email":"tcollins@hubspot.com"},{"name":"tstelmach","email":"tstelmach@hubspot.com"},{"name":"tswyter","email":"tswyter@hubspot.com"}],"homepage":"https://github.com/HubSpotWebTeam/serverless-resource-policy#readme","bugs":{"url":"https://github.com/HubSpotWebTeam/serverless-resource-policy/issues"},"dist":{"shasum":"9e4d4bf843872c66f03cd31755d537f393ab2444","tarball":"https://registry.npmjs.org/@hs-web-team/serverless-resource-policy/-/serverless-resource-policy-1.1.5.tgz","fileCount":4,"integrity":"sha512-CbV555OSBlOn0fe50OuqUzHtfKhuVb9k4sym/kg8/vAmgO7fviRsnBjN5Krwu50H/+UJXUSp4SoXlTKcZswfog==","signatures":[{"sig":"MEUCIBI8D01WPZetz/HC4WZIavPjlhx5KpQurUsNIUa1TUq8AiEAyBYKvtl+3T6fgWco2Yhp3cfJe0gctRQ+3WpkMVubWwU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5756,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcDpYQCRA9TVsSAnZWagAAzl4QAIHPkGk4D5/Y7LM+Tj69\nSr5nGcqINDDbFYttPpIcBhSaObO5Ezs92Oup/ug+EJbtAdgbZ4jk2Xu7T1nF\nPf7KFsYrtOT2eCi8e4ZmjBDYLonL4T2j5Bzmufa5gmohPE35ZeCgvgJZqOxX\ng9QfJcLlXGvKL+4943eJc6lQ8mCv2FhszStv8LSloQCgbrRLAqVETaeIiLiP\noiz6fA2KiP1MRgIA3dHfzttNBbVcAMJAgDz+t3zF9F34esUHmNiyTjcazAIR\nXRRw/1dh9Th6kxTE4b0SCZx3LDu1oFlHKbf3gbdE6Sh0wjktkSDT45+r91Rb\n5x5+lo+EXAtmcSChCTRKKD4lzxMT71mrM92KbZAcavxlBl8BOgisHOBc9OW4\nzwETKxD3C26rhlc9kjROC6aLldXAodWNODoYDbnqO/XNIWAr4rbkPJgl6U5+\nwlvp6bAVjQ4ioVNIs/+yyTrsSmIwLzIzxmr5iTmir5x3EEUS2jzEtytXVNdn\n8MMnVLL0IwZThTNUmJyiajagJ/TbpxfN5CBr1bbxuDU7sbmswewkbCZU2An3\nScLAkPkEwfylvcnB0gOva3M1yexf8ynnT7IexZmbDWTAqm9uAW7pIewxdoa3\nT5vZS+4AZUeg5EGSg+n6DDhMCB3wgJBzRTNBEuLZkWYpi1qZJuFakhknVCes\niFgn\r\n=GNvv\r\n-----END PGP SIGNATURE-----\r\n"},"test":"echo 'Ordinarily, tests should be here' && exit 0","gitHead":"03a00764b026f528cf22572aab928d9324220be6","_npmUser":{"name":"eshaw","email":"eshaw@hubspot.com"},"deprecated":"Deprecated; use https://www.npmjs.com/package/serverless-resource-policy instead","repository":{"url":"git+https://github.com/HubSpotWebTeam/serverless-resource-policy.git","type":"git"},"_npmVersion":"6.4.1","description":"Creates a whitelist for IP or CIDR addresses for a serverless application, using serverless resource policies","directories":{},"_nodeVersion":"8.9.4","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/serverless-resource-policy_1.1.5_1544459791980_0.8918927861534136","host":"s3://npm-registry-packages"}},"1.1.6":{"name":"@hs-web-team/serverless-resource-policy","version":"1.1.6","keywords":["serverless","resource-policy","resourcepolicy","ip","cidr","whitelist"],"author":{"name":"HubSpot Web Team"},"license":"MIT","_id":"@hs-web-team/serverless-resource-policy@1.1.6","maintainers":[{"name":"dmooney","email":"dmooney@hubspot.com"},{"name":"dshamis","email":"dshamis@hubspot.com"},{"name":"eshaw","email":"eshaw@hubspot.com"},{"name":"kebrahim","email":"kebrahim@hubspot.com"},{"name":"lopchannorie","email":"nhori.lopchantamang@gmail.com"},{"name":"mdstaff","email":"matthew.staff@gmail.com"},{"name":"mhewitt","email":"morganlhewitt@gmail.com"},{"name":"mokoli","email":"mokoli@hubspot.com"},{"name":"nckelly","email":"nckelly@hubspot.com"},{"name":"pwilver","email":"pwilver@hubspot.com"},{"name":"smcelhinney_hubs","email":"smcelhinney@hubspot.com"},{"name":"tcollinshubspot","email":"tcollins@hubspot.com"},{"name":"tstelmach","email":"tstelmach@hubspot.com"},{"name":"tswyter","email":"tswyter@hubspot.com"}],"homepage":"https://github.com/HubSpotWebTeam/serverless-resource-policy#readme","bugs":{"url":"https://github.com/HubSpotWebTeam/serverless-resource-policy/issues"},"dist":{"shasum":"53cee136aab3a3cf67804799d89824541c41138c","tarball":"https://registry.npmjs.org/@hs-web-team/serverless-resource-policy/-/serverless-resource-policy-1.1.6.tgz","fileCount":4,"integrity":"sha512-ckOCmj04JuwhmUzrDoDB5jDtfgt0xQP5d3jKEIucp29fCvZekxal8yJjOiSAwopz43nS6eN4dLeQBcIJOq/Ccg==","signatures":[{"sig":"MEQCIElxERGjIS+6pZuxn2vRgvLWeiEfFYxeaiGIjCCLcHi4AiAF207c4uwTE2e9iaRAMv1R0UnPmoiOf1CzvpmDZqPPmg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcDphqCRA9TVsSAnZWagAA8SQP/0a8r/M771L1RV1TuaxN\nkYX8zXvALfyPx7n3DaLzQa/oQGE3C/d/f1ktqJdA7jqXCE7fHNcFMI+oVzx6\nnPucoc+kx8hCvJmOo3jluAztgS8EKLOh4iFj0/RNr1BA5l3kF8fvZ2Bp27gK\nmuv9Bz2aRJUtZBd8nYG76VlAepApGU2wEK5QDIbftjm+tBpJrEA1ZwLrqK+i\nb4VaBVNPq01i0EtQ30iwgFnVu0lq6GNXNPf6QgNSMQ+cO2T7DnICPUopJfuE\nIVXqPF6kyAJM4HlOv5qcz26hVbUmParGthkidSMGKoABuGFodabMZvREsblQ\n+03ZALOhLyr6URYeljelilO4EcETIMBX/wLLOkRdYe1ua9aCBR20wByXkG2g\npOPDzsbx7j0nD/4EJIfaWayQfZsgoKqp/3Ni9wCX2+wkOoVqrAZMXyJoBOHO\n9r+jIFE247fA+x/lOnlXC2N9WQDVqFWXTQ9kJMDK5wWpg2plPjpv1dMTIr3d\n1eYbibvwwyjkoT+2w7Ul8NgAyI3QW2mvD0XlgM5J0trhQV5Fqs0kg3kRr6Pd\nZcY+78j3fHX5RbWaCWsczUfvzkpBG514Etw3jYYW8dXPwH0lxdA+GHCo504x\nNhvUCnAnztChirZhxJV0tdYGDvKUJkX/FAwO+aOR32dHcEUtyDhjRnNNlNsV\ngChm\r\n=rYD6\r\n-----END PGP SIGNATURE-----\r\n"},"test":"echo 'Ordinarily, tests should be here' && exit 0","gitHead":"d9e272733fd640dc51b1ea8097e7d46a7c41f79f","_npmUser":{"name":"eshaw","email":"eshaw@hubspot.com"},"deprecated":"Deprecated; use https://www.npmjs.com/package/serverless-resource-policy instead","repository":{"url":"git+https://github.com/HubSpotWebTeam/serverless-resource-policy.git","type":"git"},"_npmVersion":"6.4.1","description":"Creates a whitelist for IP or CIDR addresses for a serverless application, using serverless resource policies","directories":{},"_nodeVersion":"8.9.4","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/serverless-resource-policy_1.1.6_1544460393878_0.545968219438318","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-12-10T16:30:31.628Z","modified":"2026-09-14T09:00:42.597Z","1.1.4":"2018-12-10T16:30:31.865Z","1.1.5":"2018-12-10T16:36:32.117Z","1.1.6":"2018-12-10T16:46:33.981Z"},"bugs":{"url":"https://github.com/HubSpotWebTeam/serverless-resource-policy/issues"},"author":{"name":"HubSpot Web Team"},"license":"MIT","homepage":"https://github.com/HubSpotWebTeam/serverless-resource-policy#readme","keywords":["serverless","resource-policy","resourcepolicy","ip","cidr","whitelist"],"repository":{"url":"git+https://github.com/HubSpotWebTeam/serverless-resource-policy.git","type":"git"},"description":"Creates a whitelist for IP or CIDR addresses for a serverless application, using serverless resource policies","maintainers":[{"email":"morganlhewitt@gmail.com","name":"mhewitt"},{"email":"rymccarty@hubspot.com","name":"rymccarty"},{"email":"dmooney@hubspot.com","name":"dmooney"},{"email":"lshearer@hubspot.com","name":"leahshearer"},{"email":"jcalleja@hubspot.com","name":"jcalleja-hubspot"},{"email":"nhori.lopchantamang@gmail.com","name":"lopchannorie"},{"email":"kemartinez@hubspot.com","name":"kelvinmr"},{"email":"rraj@hubspot.com","name":"rraj_hubspot"},{"email":"pwilver@hubspot.com","name":"pwilver"},{"email":"dding@hubspot.com","name":"dding"},{"email":"tstelmach@hubspot.com","name":"tstelmach"},{"email":"cfrisoli@hubspot.com","name":"hs_cfrisoli"},{"email":"priedle@hubspot.com","name":"priedle"},{"email":"amichelini@hubspot.com","name":"amichelini"},{"email":"lbergin@hubspot.com","name":"lbergin"},{"email":"nhodgkiss@hubspot.com","name":"nhodgkiss447"},{"email":"tshubhammanikrao@hubspot.com","name":"tshubhammanikrao"},{"email":"agallo+2@hubspot.com","name":"annagallo-hs"},{"email":"lhampson@hubspot.com","name":"lhampson"},{"email":"jcutler@hubspot.com","name":"cutlah"},{"email":"gwilliams@hubspot.com","name":"gwilliamshubspot"},{"email":"cprince@hubspot.com","name":"cprince"},{"email":"aulfich@hubspot.com","name":"aulfich-hs"},{"email":"syuwono@hubspot.com","name":"samson.yuwono"},{"email":"vitran@hubspot.com","name":"vickytran"},{"email":"deoliveira@hubspot.com","name":"denishubspot"},{"email":"markelly@hubspot.com","name":"markelly-hs"},{"email":"sgoldenson@hubspot.com","name":"sgoldenson"},{"email":"mndhlovu@hubspot.com","name":"mndhlovu"},{"email":"snigam@hubspot.com","name":"snigam"},{"email":"androdriguez@hubspot.com","name":"andresllinasr"},{"email":"cheffernan@hubspot.com","name":"conor_heffernan"},{"email":"kimccarthy@hubspot.com","name":"kimccarthy"},{"email":"shealy@hubspot.com","name":"stevehealy"},{"email":"adiazcometa@hubspot.com","name":"adiazcometa"},{"email":"sasharma@hubspot.com","name":"sasharma"},{"email":"cayre@hubspot.com","name":"cayre"},{"email":"shari@hubspot.com","name":"siva_h"},{"email":"mahad@hubspot.com","name":"mahad2"},{"email":"ahiremath@hubspot.com","name":"ahiremath"},{"email":"cwilliford@hubspot.com","name":"cwilliford_hubspot"},{"email":"cmalone@hubspot.com","name":"conormalone"},{"email":"nmansurov@hubspot.com","name":"nmansurov"},{"email":"cfritz@hubspot.com","name":"cfritz"},{"email":"hzahra@hubspot.com","name":"hzahra"},{"email":"mbegyn@hubspot.com","name":"mbegyn"},{"email":"mlamacchia@hubspot.com","name":"mlamacchia"},{"email":"raurdaneta@hubspot.com","name":"raul_urdaneta_hs"},{"email":"msanchez@hubspot.com","name":"mariana.sanchez.s"},{"email":"damartinez@hubspot.com","name":"damartinez"},{"email":"ralo@hubspot.com","name":"ralo_alo"},{"email":"awilks@hubspot.com","name":"awilks"},{"email":"lcifuentes@hubspot.com","name":"leocifnpm"},{"email":"mvalencia@hubspot.com","name":"mvalenciahubspot"},{"email":"neking@HubSpot.com","name":"hsneking"},{"email":"avincent@hubspot.com","name":"avincent-hubspot"},{"email":"cleibert@hubspot.com","name":"cleibert-hs"},{"email":"esalvi@hubspot.com","name":"ericsalvi"},{"email":"anpatil@hubspot.com","name":"anpatil"},{"email":"digarcia@hubspot.com","name":"digarciahs"},{"email":"dashdown@hubspot.com","name":"dashdown"},{"email":"tbiondollo@hubspot.com","name":"timbiondollo"},{"email":"scastro@hubspot.com","name":"scastro_h"},{"email":"kvelasquez@hubspot.com","name":"valentinavelasquez"},{"email":"jwestcott@hubspot.com","name":"jhubspot"},{"email":"jcasanova@hubspot.com","name":"jpcasanova"},{"email":"gimineo@hubspot.com","name":"gimineo"},{"email":"kaortiz@hubspot.com","name":"kaortiz"},{"email":"pgarbrecht@hubspot.com","name":"pgarbrecht"},{"email":"alaporte@hubspot.com","name":"hsdevrel"},{"email":"aswebster@hubspot.com","name":"aswebster"},{"email":"dramon@hubspot.com","name":"dramon"},{"email":"jmclaren@hubspot.com","name":"jmclaren"},{"email":"jbuitrago@hubspot.com","name":"julianabuitrago"}],"readme":"> **Warning:** _This package is in development. Please use [this package](https://www.npmjs.com/package/serverless-resource-policy) for now._\n\n# Serverless Resource Policy\n\nCreates a whitelist for IP or CIDR addresses accessing a serverless application, using serverless resource policies. This enables you to allow requests only from the IP or CIDR addresses you specify.\n\n## Private and Public Stages\n\nCIDR and IP addresses are whitelisted by stages.\n\n- `privateStages`: Private to whitelisted CIDR and IP addresses. In the example below, our `dev` and `staging` stages are `privateStages`, so only those CIDR and IP addresses can access `dev` and `staging`.\n- `publicStages`: No whitelisting necessary. These stages are public to all CIDR and IP addresses.\n\n## How to Use\n\n1. Install in your serverless application: `npm install --save @hs-web-team/serverless-resource-policy`\n2. In your `serverless.yml` file, add the `@hs-web-team/serverless-resource-plugin`, for example:\n   ```\n   plugins:\n   - @hs-web-team/serverless-resource-policy\n   ```\n3. Within the `provider` block, add a `stage` variable:\n   ```\n   provider:\n     stage: ${opt:stage, 'dev'}\n   ```\n4. Within a `custom` block, add:\n   ```\n   custom:\n     @hs-web-team/serverless-resource-policy:\n       stage: ${self:provider.stage}\n       privateStages:\n         - dev\n         - staging\n       publicStages:\n         - production\n       netblocks:\n         - 123.45.67.890/30\n         - 987.65.432.109\n   ```\n\n> The `netblocks` object will contain the list of whitelisted IPs.\n\n### Full Example\n\n```\n# serverless.yml\n\nservice: my-service-name\n\nplugins:\n  - @hs-web-team/serverless-resource-policy\n\nprovider:\n  stage: ${opt:stage, 'dev'}\n\ncustom:\n  @hs-web-team/serverless-resource-policy:\n    stage: ${self:provider.stage}\n    privateStages:\n      - dev\n      - staging\n    publicStages:\n      - production\n    netblocks:\n      - 123.45.67.890/30\n      - 987.65.432.109\n```\n\n# Contributing\n\nCurrently maintained by the lovely folks on HubSpot's Web Team, but we need your help. Please feel free to submit pull requests to add new functionality.\n","readmeFilename":"README.md"}