Skip to content

Setting a number of additional security settings #56

Closed
@asylvest

Description

@asylvest

I've got an environment working properly with boto 2.38 where all the following settings are required (obviously I could have done the stuff in the ~/.boto file each time programmatically instead):

~/.boto file that contains...

ca_certificates_file = /path/to/cert.pem
endpoints_path = /path/to/endpoints.json

[ec2]
use-sigv4 = true

[s3]
use-sigv4 = true

Then when I connect, I need a security token, so I do...

boto.ec2.connect_to_region('regionName', security_token='*')

I'm trying to figure out how to do the equivalent with the C++ SDK. Tackling these one at a time...

  1. ca_certificates_file: I may be just searching on the wrong stuff, but the only reference to CA certificates I can find is in the rds module. Is this supported in the C++ SDK currently for sqs, ec2, and s3?
  2. endpoints_path: Looking at EC2Client::init(), I see that it calls EC2Endpoint::ForRegion() unless config.endpointOverride is populated. While the readme says not to alter the endpoint, it appears that just setting this string with what's in my endpoints.json for this service would do what I want (I do need to override the endpoint). Any reason this wouldn't work?
  3. use-sigv4: This sets Signature Version 4 signing. In AWSAuthSigner, I see an AWSAuthV4Signer class. The EC2Client constructors appear to be using this... will I get Signature Version 4 signing by default then or is there anything else I need to do to enable this?
  4. security_token: Rather than using the default credentials provider chain, it looks like I could construct AWSCredentials myself and pass this in right?
  5. Is there an equivalent of a ~/.boto file for the C++ SDK to set some of these things? If not, doing this programmatically is no big deal.

Thanks for the help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    guidanceQuestion that needs advice or information.help wantedWe are asking the community to submit a PR to resolve this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions