2017 © Pedro Peláez
 

symfony-bundle swift-bundle

Implementation of the OpenStack Swift protocol. Can be used for an object-store.

image

treehouselabs/swift-bundle

Implementation of the OpenStack Swift protocol. Can be used for an object-store.

  • Monday, October 19, 2015
  • by pkruithof
  • Repository
  • 3 Watchers
  • 1 Stars
  • 3,334 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 3 % Grown

The README.md

Implementation of the OpenStack Swift protocol. Can be used for an object-store., (*1)

Build Status Scrutinizer Code Quality Code Coverage, (*2)

Installation

Add dependency:, (*3)

composer require treehouselabs/swift-bundle:~1.0

Enable bundles (the KeystoneBundle is a dependency for this bundle):, (*4)

$bundles[] = new TreeHouse\KeystoneBundle\TreeHouseKeystoneBundle();
$bundles[] = new TreeHouse\SwiftBundle\TreeHouseSwiftBundle();

Configuration

If you haven't done so already, configure the KeystoneBundle. For more information check the [documentation][1] for that bundle. Then add the object store(s) to the Swift configuration., (*5)

# app/config/config.yml
tree_house_keystone:
  user_class: Acme\DemoBundle\Entity\User
  services:
    cdn:
      type: object-store
      endpoint: http://cdn.acme.org/

tree_house_swift:
  stores:
    cdn: tree_house.keystone.service.cdn

Enable the routing:, (*6)

# app/config/routing.yml
cdn:
  resource: @TreeHouseSwiftBundle/Resources/config/routing.yml
  host:     cdn.acme.org

By default, all the routes are secured with the ROLE_USER expression, except for the head_object and get_object route. You can override this expression for each individual route if you want to, or you can set the default expression in the configuration:, (*7)

# app/config/config.yml
tree_house_swift:
  expression: ROLE_CDN_USER

Configure a firewall for the object store if you want to use token-based authentication. The bundle does not do this automatically, you have to configure it yourself. Fortunately it's really easy to do:, (*8)

# app/config/security.yml
security:
  firewalls:
    cdn:
      pattern:   ^/
      host:      cdn.acme.org
      anonymous: true
      stateless: true
      simple_preauth:
        authenticator: tree_house.keystone.token_authenticator

That's it, now all the object-store requests will try to authenticate using a token. By setting the firewall to allow anonymous users we ensure that you don't have to authenticate to request an object (which is kind of the point of an object-store)., (*9)

The Versions

19/10 2015

dev-master

9999999-dev

Implementation of the OpenStack Swift protocol. Can be used for an object-store.

  Sources   Download

MIT

The Requires

 

The Development Requires

cdn openstack swift keystone object-store

28/04 2015

v1.0.0

1.0.0.0

Implementation of the OpenStack Swift protocol. Can be used for an object-store.

  Sources   Download

MIT

The Requires

 

The Development Requires

cdn openstack swift keystone object-store