rusbrown / plsql-utils

Automatically exported from code.google.com/p/plsql-utils
0 stars 0 forks source link

Add HTTPS support to S3 API #25

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Some thoughts on adding https support:

1. 2 variables in amazon_aws_s3_pkg - g_Wallet_path; g_wallet_password - and a 
procedure to set

3. Set the wallet, before making a request. amazon_aws_s3_pkg.make_request:

  if g_wallet_path is not null
  then
    utl_http.set_Wallet(
      path => g_wallet_path
    , password => g_wallet_password);
  end if;  

4. Add variable for https and a procedure to set;

g_use_https BOOLEAN := true;

4.Adjust amazon_aws_s3_pkg.get_url - use variable from 4 to determine.

  l_returnvalue := 
    'http'
    || case when g_use_https then 's' end 
    || '://' 
    || p_bucket_name 
    || '.' 
    || g_aws_host_s3 
    || '/' 
    || p_key;

  return l_returnvalue;

end aws_url;

Original issue reported on code.google.com by trent.sc...@gmail.com on 10 Apr 2014 at 1:49

GoogleCodeExporter commented 8 years ago
I agree completely, and made nearly the exact same changes and tested 
successfully.

Original comment by sspen...@gmail.com on 14 May 2014 at 4:30

GoogleCodeExporter commented 8 years ago

Original comment by thehunge...@gmail.com on 20 May 2014 at 2:39

GoogleCodeExporter commented 8 years ago

Original comment by thehunge...@gmail.com on 21 Jan 2015 at 9:33