S3Sync.net

General Category => Feature Requests => Topic started by: Charlie on February 22, 2007, 07:52:27 AM



Title: --no-ssl
Post by: Charlie on February 22, 2007, 07:52:27 AM
Hi

Would it be possible to make a --no-ssl option

currently when a new version of s3sync arrives I change line 37 s3try.rb from
                if $S3syncOptions['--ssl'] and $SSL_CERT_DIR
to
                if $SSL_CERT_DIR or $S3syncOptions['--ssl']

so that if I have $SSL_CERT_DIR defined s3cmd and s3sync default to ssl connections. Thus a
                if $SSL_CERT_DIR and not $S3syncOptions['--no-ssl']
would be a (for me) nice feature if things default to secure.

regards
  charlie


Title: Re: --no-ssl
Post by: ferrix on February 22, 2007, 01:30:45 PM
What you're asking for is to reverse the way the system behaves, so that your way will become the default?  I don't understand why don't you juse use -s instead of changing the code?


Title: Re: --no-ssl
Post by: Charlie on February 22, 2007, 04:20:58 PM
I don't understand why don't you juse use -s instead of changing the code?

maybe I titled my post/request badly

I felt that when I defined SSL_CERT_DIR I was already telling s3* to use SSL and that the -s is thus redundant. I would prefer that once I set SSL_CERT_DIR all my s3 requests default to secure without further intervention.

regards
  charlie


Title: Re: --no-ssl
Post by: ferrix on February 22, 2007, 08:16:16 PM
I understand what you mean, however I would like to maintain the distinction between environment variables for general invariant configuration information, and options for instructions for the current command invocation.

For example, it's very possible that despite having the SSL env variable set, someone might want to do some non-ssl S3 transfers.

Thanks for the suggestion  :)