Giter Club home page Giter Club logo

Comments (9)

 avatar commented on August 10, 2024 1

Actually, in my current work, I actually defined only two functions in the server API:
extractParams and checkSignature, and those functions use the params.version to switch on the right version.

I could possibly also export checkSignatureV4 and checkSignatureV2, as well as the associated extractParams, but not in the first step. I hope to be able to put out the first set of PRs tuesday :)

from arsenal.

jmunoznaranjo avatar jmunoznaranjo commented on August 10, 2024

Looks good 👍 . Maybe you want to consider a different name for prepareVX as it suggests (to me at least) that a signature is being created instead of verified. I suggest extractVX or extractVXParams.

from arsenal.

LaurenSpiegel avatar LaurenSpiegel commented on August 10, 2024

As noted in https://github.com/scality/Arsenal/pull/119/files/3267fd091deac5d00f951bacf278362fca28f86d#r72753763 ,
if the generate4Headers function is really going to be multi-purpose we can't hard code the signedHeaders. Instead the host header and any x-amz- or x-scal- should be included in the signedheaders and the signature.

from arsenal.

rahulreddy avatar rahulreddy commented on August 10, 2024

Piggybacking on @LaurenSpiegel 's comment we should make it generic in the sense it should not set any headers to the request object, it should just return a generic object with the headers that can be set.

from arsenal.

LaurenSpiegel avatar LaurenSpiegel commented on August 10, 2024

To be clear, there are 2 issues that are separate:

  1. My original issue: The signed headers should not be a defined string. It should be created by concatenating host with all of the x-amz and x-scal headers from the request headers.
  2. Rahul's issue -- don't mess with the request object directly.

from arsenal.

 avatar commented on August 10, 2024

@rahulreddy @LaurenSpiegel Should we create a dedicated issue for the generateV4Headers's signed header topic ? Not modifying the request object is already part of my aim for this task.

from arsenal.

LaurenSpiegel avatar LaurenSpiegel commented on August 10, 2024

@DavidPineauScality, I already fixed the signed headers issue so that the encrypted bucket creation tool would work. 18d657b

from arsenal.

 avatar commented on August 10, 2024

Ok perfect, thanks. I guess a huge rebase is waiting for me again...

On Wed, Aug 24, 2016 at 6:22 PM, Lauren Spiegel [email protected]
wrote:

@DavidPineauScality https://github.com/DavidPineauScality, I already
fixed the signed headers issue so that the encrypted bucket creation tool
would work. 18d657b
18d657b


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#102 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANpZZ6UU6s8p33E7nsN7_jCeKfmEb41Yks5qjG_XgaJpZM4I85rs
.

David Pineau
Scality R&D Engineer

http://bit.ly/2aKbaTu

from arsenal.

 avatar commented on August 10, 2024

Following the work done in the associated PR, Only one thing is left remaining to completely wrap up this rework:

Use the new API to remove slowly the doAuth from the relevant components, and then remove the doAuth utility function altogether.

from arsenal.

Related Issues (20)

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.