HEagle18

updated

9 years ago

H

HEagle18

41 Posts

0

6861

September 1st, 2017 12:00

How to configure Swift protocol with ECS

Can any one please give a step by step with technical reasons how to configure Swift Protocol with ECS.

Same also with S3 protocol

Thanks in advance

  • benschumacher

    1 Rookie

    •

    75 Posts

    3792

    0

    Posted October 3rd, 2017 08:00

    What I'm saying is that if you want to provide Create, Read, Update, Delete access to your data path in ECS via Active Directory, you can use the secret key self-service feature via the management API.  This is specific to S3 and not going to work if you're using Swift.  When I say data path I mean S3, Swift, Atmos, CAS protocols.  When I say management API I mean using the ECS management API (https://my_ecs_ip:4443) within which provides the secret key self-service methods.  The work flow would be:

    1.) AD user authenticates into ECS management API (https://my_ecs_ip:4443/login).

    2.) Using the token obtained above, call the secret key self-service API to get/generate an S3 secret key (https://my_ecs_ip:4443/object/secret-keys).

    3.) Log out of the management API to discard token.

    4.) Using the secret key obtained in step 2, perform CRUD operations via S3.

    At this point, if you still have questions, I suggest we jump on a quick WebEx to discuss further.

    Thanks,

    Ben

  • 3632

    1

    Posted September 5th, 2017 04:00

  • benschumacher

    1 Rookie

    •

    75 Posts

    2658

    1

    Posted September 5th, 2017 07:00

    Hi,

    Can you please take a look at this community post?Getting Started with ECS SDKs

    Depending on the language and SDK you're using, the configurtion/setup will vary.  This should at least get you started with making some basic calls into the ECS object store.  Please post back if you have further questions or issues.

    Ben

  • HEagle18

    41 Posts

    2657

    0

    Posted September 5th, 2017 09:00

    Thanks, Can we use ECS without depending on any SDK or third party tool like Cyberduck?

    For example the ports open for Swift Protocol is 9024 and 9025 right. Just using a browser and AD authentication on a windows client is it possible??? SDK mostly is for developers is it not???

  • HEagle18

    41 Posts

    3631

    0

    Posted September 5th, 2017 09:00

    Thanks, but this one is using Cyberduck which is a free ware third party tool. We need to achieve this in enterprise level

    I was looking for, like  If I have a Windows client using Swift Protocol how can I access the NameSpace-->Buckets on ECS Object storage. If we need to depend Cyberduck or Openstack for every thing with a token validation. it is disastrous for an enterprise environment.

  • benschumacher

    1 Rookie

    •

    75 Posts

    3631

    1

    Posted September 6th, 2017 06:00

    No, using Cyberduck should only be for testing.  You can use any HTTP client that's capable of submitting/receiving requests/responses.  The SDKs are useful because they've already been written and tested to perform all the REST interactions available through the various protocols (Swift, S3, Atmos, CAS).  Whatever client you use, you need to conform to the API spec.  I don't know of any way to use a straight browser to work with the APIs.  When using S3, every request needs to be signed using a secret key and this would be difficult to do in a browser.  A couple suggestions might be to try straight curl for Swift and s3curl for S3.  Those two CLI tools work very well for simple object storage interactions.

    Amazon S3 Authentication Tool for Curl : Sample Code & Libraries : Amazon Web Services

    For Swift, here's a couple examples on how to use straight curl commands (swauth).

    $ export SWIFT_ENDPOINT=http://10.4.0.102:9024

    -SWAUTH

    $ curl -I -s -H "X-Auth-User: bob" -H "X-Auth-Key:Password1" $SWIFT_ENDPOINT/auth/v1.0


    -SET SWIFT TOKEN FROM RESPONSE HEADERS ABOVE

    $ export SWIFT_TOKEN=58e86072ad2d41f792f80cfc5af23bd8


    -GET CONTAINER

    $ curl -I -s -H "X-Auth-Token: $SWIFT_TOKEN" -H "Accept:application/json" $SWIFT_ENDPOINT/v1/namespace1/group1

  • HEagle18

    41 Posts

    3631

    0

    Posted September 6th, 2017 08:00

    Ben,

    Thanks for your reply, more clear now, but our case is this.

    We would like a service account setup that has access to a Swift Object Storage Name space Optimally this namespace would have approximately 25GB of storage allocated so we can experiment with uploading some larger scientific files that are produced by the Basic Science research cores.

    The service account needs full authorization to create/delete Swift containers (i.e. buckets) in this namespace. Once configured, we need account details and the APIs base endpoint URL We will be accessing these sandbox APIs using the Swift python CLI, as well as other scripting/language stacks, such as bash, Ruby, etc...

  • HEagle18

    41 Posts

    3631

    0

    Posted September 7th, 2017 06:00

    Nope we are using AD authentication with Swift Protocol -- No Openstack used here so no question of Keystone right.

    Please clarify

  • HEagle18

    41 Posts

    1931

    0

    Posted September 11th, 2017 13:00

    David, /  Ben,

    Can you share some Curl statements if you are using AD authentication instead of keystone with the same above setup

  • HEagle18

    41 Posts

    1237

    0

    Posted September 12th, 2017 06:00

    David,

    Thanks, We are using AD credentials to login to the Linux client with a RDP gateway server. No keystone Auth is used. Almost the Swiftstack setup you mentioned in your email.

    Can you  help with some Curl statements please. I mean to connect and then to create a folder, and also put a file on that folder and delete the file and folder. (on Swift-ECS-Linux client)