Giter VIP home page Giter VIP logo

net-amazon-s3-policy's Introduction

Net-Amazon-S3-Policy version 0.1.3

Net::Amazon::S3::Policy gives you an object-oriented interface to man‐
age policies for Amazon S3 HTTP POST uploads.

Amazon S3 relies upon either a REST interface (see Net::Amazon::S3) or
a SOAP one; as an added service, it is possible to give access to the
upload of resources using HTTP POSTs that do not involve using any of
these two interfaces, but a single HTML FORM. The rules you have to
follow are explained in the Amazon S3 Developer Guide.

More or less, it boils down to the following:

·   if the target bucket is not writeable by the anonymous group,
   you’ll need to set an access policy;

·   almost every field in the HTML FORM that will be used to build up
   the HTTP POST message by the browser needs to be included into a
   policy, and the policy has to be sent along within the HTTP POST

·   together with the policy, also the bucket owner’s AWS ID (the pub‐
   lic one) has to be sent, together with a digital signature of the
   policy that has to be created using the bucket owner’s AWS secret
   key.

This module lets you manage the build-up of a policy document, provid‐
ing you with tools to get the Base64 encoding of the resulting JSON
policy document, and to calculate the Base64 encoding of the signature.
See "Example" for a complete example of how to do this.

In addition to policy synthesis, the module is also capable of parsing
some policy (base64-encoded or not, but in JSON format). This shouldn’t
be a need in general... possibly for debug reasons.

AVAILABILITY

You can either grab the module from CPAN, or see what's going on at
http://repo.or.cz/w/Net-Amazon-S3-Policy.git


INSTALLATION

To install this module, run the following commands:

	perl Makefile.PL
	make
	make test
	make install

Alternatively, to install with Module::Build, you can use the following commands:

	perl Build.PL
	./Build
	./Build test
	./Build install


DEPENDENCIES

version and JSON.

COPYRIGHT AND LICENCE

Copyright (C) 2008, Flavio Poletti

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.

net-amazon-s3-policy's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.