Giter Club home page Giter Club logo

Comments (2)

ozataman avatar ozataman commented on July 18, 2024

This would also make it easier to read creds from custom config files, which is commonplace, say if you're working with a snap web app.

On Aug 3, 2014, at 12:55 PM, Joey Hess [email protected] wrote:

My program already stores AWS credentials in its own way, so I need a way to get from ByteString -> ByteString -> Credentials

It's certainly possible to write that in my program, but then I have to worry about the v4SigningKeys and iamToken fields, which seem like implementation details that could change. And one of them, being an IORef, I'm wary of constructing on my own, since making an IORef that's empty when it should be full can lead to problems, for example.

So, I suggest providing in aws:

genCredentials :: ByteString -> ByteString -> IO Credentials

Using that might also simplify the implementation of loadCredentials*


Reply to this email directly or view it on GitHub.

from aws.

aristidb avatar aristidb commented on July 18, 2024

You're lucky that I didn't tell you to make a pull request and just went ahead and implemented it. :P

from aws.

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.