Skip to content

AWS Neptune IAM authentication #152

@copumpkin

Description

@copumpkin

I'm looking into using this package with AWS Neptune and its IAM Authentication feature. Based on their sample code and asking around, my understanding is that for this to work, I'd need to use sigv4 to sign the initial WebSocket connection request.

It seems like the place I'd need to hook into is

let (client, _) = { connect_async_with_tls_connector(url, tls::connector(&opts)).await? };
, to pass an extra authentication header to tungstenite when it opens the websocket connection.

Does that all sound reasonable? It doesn't seem like the interface is flexible enough today for me to inject that in, since I'd need a Request rather than the Url that code currently passes in. I'd be happy to make a PR to add an optional feature for this if someone can confirm I'm looking in the right places.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions