Compare commits

..

No commits in common. "c8" and "imports/c8-beta/awscli-1.14.50-5.el8" have entirely different histories.

5 changed files with 34 additions and 745 deletions

View File

@ -1,2 +1,2 @@
b3c2011ba2b91491c9effbea37cced7b1d30cee2 SOURCES/awscli-1.23.2.tar.gz 8d6dde3c848339b438e71be80b4f0d6e583a3624 SOURCES/awscli-1.14.50.tar.gz
7310d6ddf680c524ad6b16f673a77a9defb5766e SOURCES/colorama-0.3.7.tar.gz 7310d6ddf680c524ad6b16f673a77a9defb5766e SOURCES/colorama-0.3.7.tar.gz

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
SOURCES/awscli-1.23.2.tar.gz SOURCES/awscli-1.14.50.tar.gz
SOURCES/colorama-0.3.7.tar.gz SOURCES/colorama-0.3.7.tar.gz

View File

@ -1,720 +0,0 @@
diff --color -uNr a/awscli/alias.py b/awscli/alias.py
--- a/awscli/alias.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/alias.py 2022-05-18 14:15:22.645692302 +0200
@@ -15,6 +15,8 @@
import shlex
import subprocess
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.configloader import raw_config_parse
from awscli.compat import compat_shell_quote
diff --color -uNr a/awscli/argprocess.py b/awscli/argprocess.py
--- a/awscli/argprocess.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/argprocess.py 2022-05-18 15:05:05.051719241 +0200
@@ -15,6 +15,8 @@
import logging
from awscli.compat import six
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.compat import OrderedDict, json
from awscli import SCALAR_TYPES, COMPLEX_TYPES
diff --color -uNr a/awscli/arguments.py b/awscli/arguments.py
--- a/awscli/arguments.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/arguments.py 2022-05-18 15:05:58.609003196 +0200
@@ -38,6 +38,8 @@
"""
import logging
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore import xform_name
from botocore.hooks import first_non_none_response
diff --color -uNr a/awscli/bcdoc/docstringparser.py b/awscli/bcdoc/docstringparser.py
--- a/awscli/bcdoc/docstringparser.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/bcdoc/docstringparser.py 2022-05-18 15:05:52.052968430 +0200
@@ -10,6 +10,8 @@
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.compat import six
diff --color -uNr a/awscli/bcdoc/restdoc.py b/awscli/bcdoc/restdoc.py
--- a/awscli/bcdoc/restdoc.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/bcdoc/restdoc.py 2022-05-18 15:05:43.172921339 +0200
@@ -12,7 +12,10 @@
# language governing permissions and limitations under the License.
import logging
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.compat import OrderedDict
+
from awscli.bcdoc.docstringparser import DocStringParser
from awscli.bcdoc.style import ReSTStyle
diff --color -uNr a/awscli/clidocs.py b/awscli/clidocs.py
--- a/awscli/clidocs.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/clidocs.py 2022-05-18 15:05:32.701865825 +0200
@@ -12,6 +12,9 @@
# language governing permissions and limitations under the License.
import logging
import os
+
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore import xform_name
from botocore.model import StringShape
from botocore.utils import is_json_value_header
diff --color -uNr a/awscli/clidriver.py b/awscli/clidriver.py
--- a/awscli/clidriver.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/clidriver.py 2022-05-18 15:04:57.775680666 +0200
@@ -14,6 +14,7 @@
import signal
import logging
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
import botocore.session
from botocore import __version__ as botocore_version
from botocore.hooks import HierarchicalEmitter
diff --color -uNr a/awscli/compat.py b/awscli/compat.py
--- a/awscli/compat.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/compat.py 2022-05-18 15:06:11.402071034 +0200
@@ -20,6 +20,7 @@
import signal
import contextlib
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.compat import six
#import botocore.compat
diff --color -uNr a/awscli/customizations/assumerole.py b/awscli/customizations/assumerole.py
--- a/awscli/customizations/assumerole.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/assumerole.py 2022-05-18 15:00:35.635290775 +0200
@@ -1,6 +1,8 @@
import os
import logging
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.exceptions import ProfileNotFound
from botocore.credentials import JSONFileCache
diff --color -uNr a/awscli/customizations/awslambda.py b/awscli/customizations/awslambda.py
--- a/awscli/customizations/awslambda.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/awslambda.py 2022-05-18 15:01:16.698508494 +0200
@@ -14,6 +14,8 @@
import copy
from contextlib import closing
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.vendored import six
from awscli.arguments import CustomArgument, CLIArgument
diff --color -uNr a/awscli/customizations/cloudformation/artifact_exporter.py b/awscli/customizations/cloudformation/artifact_exporter.py
--- a/awscli/customizations/cloudformation/artifact_exporter.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/cloudformation/artifact_exporter.py 2022-05-18 14:48:47.570545896 +0200
@@ -19,6 +19,9 @@
import uuid
import shutil
from awscli.compat import six
+
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.utils import set_value_from_jmespath
from awscli.compat import urlparse
diff --color -uNr a/awscli/customizations/cloudformation/deployer.py b/awscli/customizations/cloudformation/deployer.py
--- a/awscli/customizations/cloudformation/deployer.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/cloudformation/deployer.py 2022-05-18 14:48:59.107606518 +0200
@@ -14,6 +14,7 @@
import sys
import time
import logging
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
import botocore
import collections
diff --color -uNr a/awscli/customizations/cloudformation/deploy.py b/awscli/customizations/cloudformation/deploy.py
--- a/awscli/customizations/cloudformation/deploy.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/cloudformation/deploy.py 2022-05-18 14:49:08.967658328 +0200
@@ -15,6 +15,7 @@
import sys
import logging
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.client import Config
from awscli.customizations.cloudformation import exceptions
diff --color -uNr a/awscli/customizations/cloudformation/package.py b/awscli/customizations/cloudformation/package.py
--- a/awscli/customizations/cloudformation/package.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/cloudformation/package.py 2022-05-18 14:49:19.649714460 +0200
@@ -17,6 +17,7 @@
import json
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.client import Config
from awscli.customizations.cloudformation.artifact_exporter import Template
diff --color -uNr a/awscli/customizations/cloudformation/yamlhelper.py b/awscli/customizations/cloudformation/yamlhelper.py
--- a/awscli/customizations/cloudformation/yamlhelper.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/cloudformation/yamlhelper.py 2022-05-18 14:23:38.371279936 +0200
@@ -10,6 +10,8 @@
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.compat import json
from botocore.compat import OrderedDict
diff --color -uNr a/awscli/customizations/cloudfront.py b/awscli/customizations/cloudfront.py
--- a/awscli/customizations/cloudfront.py 2022-05-18 15:11:13.004672889 +0200
+++ b/awscli/customizations/cloudfront.py 2022-05-18 14:52:36.034747887 +0200
@@ -17,6 +17,8 @@
from cryptography.hazmat.primitives import serialization, hashes
from cryptography.hazmat.primitives.asymmetric import padding
from cryptography.hazmat.backends import default_backend
+
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.utils import parse_to_aware_datetime
from botocore.signers import CloudFrontSigner
diff --color -uNr a/awscli/customizations/cloudsearch.py b/awscli/customizations/cloudsearch.py
--- a/awscli/customizations/cloudsearch.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/cloudsearch.py 2022-05-18 15:02:25.305872231 +0200
@@ -14,6 +14,9 @@
import logging
from awscli.customizations.flatten import FlattenArguments, SEP
+
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.compat import OrderedDict
LOG = logging.getLogger(__name__)
diff --color -uNr a/awscli/customizations/cloudtrail/subscribe.py b/awscli/customizations/cloudtrail/subscribe.py
--- a/awscli/customizations/cloudtrail/subscribe.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/cloudtrail/subscribe.py 2022-05-18 14:57:31.205312927 +0200
@@ -17,6 +17,7 @@
from .utils import get_account_id
from awscli.customizations.commands import BasicCommand
from awscli.customizations.utils import s3_bucket_exists
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.exceptions import ClientError
diff --color -uNr a/awscli/customizations/cloudtrail/validation.py b/awscli/customizations/cloudtrail/validation.py
--- a/awscli/customizations/cloudtrail/validation.py 2022-05-18 15:11:13.005672894 +0200
+++ b/awscli/customizations/cloudtrail/validation.py 2022-05-18 14:57:49.441409616 +0200
@@ -30,6 +30,7 @@
from awscli.customizations.cloudtrail.utils import get_trail_by_arn, \
get_account_id_from_arn
from awscli.customizations.commands import BasicCommand
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.exceptions import ClientError
from awscli.schema import ParameterRequiredError
diff --color -uNr a/awscli/customizations/codeartifact/login.py b/awscli/customizations/codeartifact/login.py
--- a/awscli/customizations/codeartifact/login.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/codeartifact/login.py 2022-05-18 15:01:49.458682184 +0200
@@ -8,6 +8,8 @@
from datetime import datetime
from dateutil.tz import tzutc
from dateutil.relativedelta import relativedelta
+
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.utils import parse_timestamp
from awscli.compat import is_windows, urlparse, RawConfigParser, StringIO
diff --color -uNr a/awscli/customizations/codecommit.py b/awscli/customizations/codecommit.py
--- a/awscli/customizations/codecommit.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/codecommit.py 2022-05-18 14:52:27.556702937 +0200
@@ -18,6 +18,7 @@
import fileinput
import datetime
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.auth import SigV4Auth
from botocore.awsrequest import AWSRequest
from botocore.compat import urlsplit
diff --color -uNr a/awscli/customizations/codedeploy/deregister.py b/awscli/customizations/codedeploy/deregister.py
--- a/awscli/customizations/codedeploy/deregister.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/codedeploy/deregister.py 2022-05-18 15:00:28.775254402 +0200
@@ -13,6 +13,7 @@
import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.exceptions import ClientError
from awscli.customizations.commands import BasicCommand
diff --color -uNr a/awscli/customizations/codedeploy/push.py b/awscli/customizations/codedeploy/push.py
--- a/awscli/customizations/codedeploy/push.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/codedeploy/push.py 2022-05-18 14:58:14.529542632 +0200
@@ -18,6 +18,7 @@
import contextlib
from datetime import datetime
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.exceptions import ClientError
from awscli.compat import six
diff --color -uNr a/awscli/customizations/commands.py b/awscli/customizations/commands.py
--- a/awscli/customizations/commands.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/commands.py 2022-05-18 14:54:12.117257346 +0200
@@ -1,6 +1,8 @@
import logging
import os
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore import model
from botocore.compat import OrderedDict
from botocore.validate import validate_parameters
diff --color -uNr a/awscli/customizations/configure/addmodel.py b/awscli/customizations/configure/addmodel.py
--- a/awscli/customizations/configure/addmodel.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/configure/addmodel.py 2022-05-18 14:53:57.092177678 +0200
@@ -13,6 +13,8 @@
import json
import os
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.model import ServiceModel
from awscli.customizations.commands import BasicCommand
diff --color -uNr a/awscli/customizations/configure/configure.py b/awscli/customizations/configure/configure.py
--- a/awscli/customizations/configure/configure.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/configure/configure.py 2022-05-18 14:53:50.435142381 +0200
@@ -13,6 +13,8 @@
import os
import logging
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.exceptions import ProfileNotFound
from awscli.compat import compat_input
diff --color -uNr a/awscli/customizations/configure/__init__.py b/awscli/customizations/configure/__init__.py
--- a/awscli/customizations/configure/__init__.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/configure/__init__.py 2022-05-18 14:54:04.464216768 +0200
@@ -11,6 +11,9 @@
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
import string
+
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.vendored.six.moves import shlex_quote
NOT_SET = '<not set>'
diff --color -uNr a/awscli/customizations/datapipeline/createdefaultroles.py b/awscli/customizations/datapipeline/createdefaultroles.py
--- a/awscli/customizations/datapipeline/createdefaultroles.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/datapipeline/createdefaultroles.py 2022-05-18 15:01:32.776593738 +0200
@@ -25,6 +25,9 @@
from awscli.customizations.commands import BasicCommand
from awscli.customizations.datapipeline.translator \
import display_response, dict_to_string, get_region
+
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.exceptions import ClientError
LOG = logging.getLogger(__name__)
diff --color -uNr a/awscli/customizations/ec2/addcount.py b/awscli/customizations/ec2/addcount.py
--- a/awscli/customizations/ec2/addcount.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/ec2/addcount.py 2022-05-18 14:49:53.982894864 +0200
@@ -12,6 +12,8 @@
# language governing permissions and limitations under the License.
import logging
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore import model
from awscli.arguments import BaseCLIArgument
diff --color -uNr a/awscli/customizations/ec2/decryptpassword.py b/awscli/customizations/ec2/decryptpassword.py
--- a/awscli/customizations/ec2/decryptpassword.py 2022-05-18 15:11:13.005672894 +0200
+++ b/awscli/customizations/ec2/decryptpassword.py 2022-05-18 14:49:38.231812104 +0200
@@ -18,6 +18,8 @@
from cryptography.hazmat.primitives.asymmetric import padding
from awscli.compat import six
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore import model
from awscli.arguments import BaseCLIArgument
diff --color -uNr a/awscli/customizations/ecs/deploy.py b/awscli/customizations/ecs/deploy.py
--- a/awscli/customizations/ecs/deploy.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/ecs/deploy.py 2022-05-18 14:52:56.062854064 +0200
@@ -16,6 +16,7 @@
import os
import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore import compat, config
from botocore.exceptions import ClientError
from awscli.compat import compat_open
diff --color -uNr a/awscli/customizations/eks/get_token.py b/awscli/customizations/eks/get_token.py
--- a/awscli/customizations/eks/get_token.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/eks/get_token.py 2022-05-18 15:04:44.775611742 +0200
@@ -11,7 +11,11 @@
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
import base64
+
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
import botocore
+
import json
from datetime import datetime, timedelta
diff --color -uNr a/awscli/customizations/eks/kubeconfig.py b/awscli/customizations/eks/kubeconfig.py
--- a/awscli/customizations/eks/kubeconfig.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/eks/kubeconfig.py 2022-05-18 15:02:57.357042199 +0200
@@ -15,6 +15,9 @@
import yaml
import logging
import errno
+
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.compat import OrderedDict
from awscli.customizations.eks.exceptions import EKSError
diff --color -uNr a/awscli/customizations/eks/ordered_yaml.py b/awscli/customizations/eks/ordered_yaml.py
--- a/awscli/customizations/eks/ordered_yaml.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/eks/ordered_yaml.py 2022-05-18 15:03:07.700097040 +0200
@@ -12,6 +12,9 @@
# language governing permissions and limitations under the License.
import yaml
+
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.compat import OrderedDict
diff --color -uNr a/awscli/customizations/eks/update_kubeconfig.py b/awscli/customizations/eks/update_kubeconfig.py
--- a/awscli/customizations/eks/update_kubeconfig.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/eks/update_kubeconfig.py 2022-05-18 15:02:33.627916357 +0200
@@ -14,6 +14,8 @@
import os
import logging
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.compat import OrderedDict
from awscli.customizations.commands import BasicCommand
diff --color -uNr a/awscli/customizations/emr/createcluster.py b/awscli/customizations/emr/createcluster.py
--- a/awscli/customizations/emr/createcluster.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/emr/createcluster.py 2022-05-18 14:50:20.302033141 +0200
@@ -27,6 +27,9 @@
from awscli.customizations.emr.command import Command
from awscli.customizations.emr.constants import EC2_ROLE_NAME
from awscli.customizations.emr.constants import EMR_ROLE_NAME
+
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.compat import json
diff --color -uNr a/awscli/customizations/emr/createdefaultroles.py b/awscli/customizations/emr/createdefaultroles.py
--- a/awscli/customizations/emr/createdefaultroles.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/emr/createdefaultroles.py 2022-05-18 14:51:39.802450842 +0200
@@ -13,6 +13,9 @@
import logging
import re
+
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
import botocore.exceptions
import botocore.session
from botocore import xform_name
diff --color -uNr a/awscli/customizations/emr/describecluster.py b/awscli/customizations/emr/describecluster.py
--- a/awscli/customizations/emr/describecluster.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/emr/describecluster.py 2022-05-18 14:51:06.268274647 +0200
@@ -16,6 +16,9 @@
from awscli.customizations.emr import emrutils
from awscli.customizations.emr import helptext
from awscli.customizations.emr.command import Command
+
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.exceptions import NoCredentialsError
diff --color -uNr a/awscli/customizations/emr/emrfsutils.py b/awscli/customizations/emr/emrfsutils.py
--- a/awscli/customizations/emr/emrfsutils.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/emr/emrfsutils.py 2022-05-18 14:50:56.051220965 +0200
@@ -14,6 +14,9 @@
from awscli.customizations.emr import constants
from awscli.customizations.emr import emrutils
from awscli.customizations.emr import exceptions
+
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.compat import OrderedDict
diff --color -uNr a/awscli/customizations/emr/emrutils.py b/awscli/customizations/emr/emrutils.py
--- a/awscli/customizations/emr/emrutils.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/emr/emrutils.py 2022-05-18 14:51:30.094399834 +0200
@@ -19,6 +19,9 @@
from awscli.clidriver import CLIOperationCaller
from awscli.customizations.emr import constants
from awscli.customizations.emr import exceptions
+
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.exceptions import WaiterError, NoCredentialsError
from botocore import xform_name
diff --color -uNr a/awscli/customizations/emr/sshutils.py b/awscli/customizations/emr/sshutils.py
--- a/awscli/customizations/emr/sshutils.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/emr/sshutils.py 2022-05-18 14:51:18.184337257 +0200
@@ -16,6 +16,9 @@
from awscli.customizations.emr import exceptions
from awscli.customizations.emr import emrutils
from awscli.customizations.emr import constants
+
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.exceptions import WaiterError
LOG = logging.getLogger(__name__)
diff --color -uNr a/awscli/customizations/generatecliskeleton.py b/awscli/customizations/generatecliskeleton.py
--- a/awscli/customizations/generatecliskeleton.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/generatecliskeleton.py 2022-05-18 15:01:09.940472663 +0200
@@ -13,6 +13,7 @@
import json
import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore import xform_name
from botocore.stub import Stubber
from botocore.utils import ArgumentGenerator
diff --color -uNr a/awscli/customizations/globalargs.py b/awscli/customizations/globalargs.py
--- a/awscli/customizations/globalargs.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/globalargs.py 2022-05-18 14:53:15.719958294 +0200
@@ -13,6 +13,7 @@
import sys
import os
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.client import Config
from botocore.endpoint import DEFAULT_TIMEOUT
from botocore.handlers import disable_signing
diff --color -uNr a/awscli/customizations/history/db.py b/awscli/customizations/history/db.py
--- a/awscli/customizations/history/db.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/history/db.py 2022-05-18 14:57:15.844231482 +0200
@@ -18,6 +18,8 @@
import logging
from awscli.compat import collections_abc
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.history import BaseHistoryHandler
from awscli.compat import sqlite3
diff --color -uNr a/awscli/customizations/history/__init__.py b/awscli/customizations/history/__init__.py
--- a/awscli/customizations/history/__init__.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/history/__init__.py 2022-05-18 14:57:23.122270071 +0200
@@ -14,6 +14,7 @@
import sys
import logging
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.history import get_global_history_recorder
from botocore.exceptions import ProfileNotFound
diff --color -uNr a/awscli/customizations/opsworks.py b/awscli/customizations/opsworks.py
--- a/awscli/customizations/opsworks.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/opsworks.py 2022-05-18 14:58:01.524473681 +0200
@@ -22,6 +22,8 @@
import tempfile
import textwrap
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.exceptions import ClientError
from awscli.compat import shlex_quote, urlopen, ensure_text_type
diff --color -uNr a/awscli/customizations/paginate.py b/awscli/customizations/paginate.py
--- a/awscli/customizations/paginate.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/paginate.py 2022-05-18 14:57:07.660188087 +0200
@@ -26,6 +26,8 @@
import logging
from functools import partial
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore import xform_name
from botocore.exceptions import DataNotFoundError, PaginationError
from botocore import model
diff --color -uNr a/awscli/customizations/s3/filegenerator.py b/awscli/customizations/s3/filegenerator.py
--- a/awscli/customizations/s3/filegenerator.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/s3/filegenerator.py 2022-05-18 15:01:03.797440093 +0200
@@ -16,6 +16,8 @@
from dateutil.parser import parse
from dateutil.tz import tzlocal
+
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.exceptions import ClientError
from awscli.customizations.s3.utils import find_bucket_key, get_file_stat
diff --color -uNr a/awscli/customizations/s3/subcommands.py b/awscli/customizations/s3/subcommands.py
--- a/awscli/customizations/s3/subcommands.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/s3/subcommands.py 2022-05-18 15:00:50.120367577 +0200
@@ -14,6 +14,7 @@
import logging
import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.client import Config
from dateutil.parser import parse
from dateutil.tz import tzlocal
diff --color -uNr a/awscli/customizations/s3uploader.py b/awscli/customizations/s3uploader.py
--- a/awscli/customizations/s3uploader.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/s3uploader.py 2022-05-18 15:00:42.217325673 +0200
@@ -17,6 +17,7 @@
import os
import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
import botocore
import botocore.exceptions
from s3transfer.manager import TransferManager
diff --color -uNr a/awscli/customizations/scalarparse.py b/awscli/customizations/scalarparse.py
--- a/awscli/customizations/scalarparse.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/scalarparse.py 2022-05-18 14:55:04.471534925 +0200
@@ -27,6 +27,8 @@
in the future.
"""
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.utils import parse_timestamp
from botocore.exceptions import ProfileNotFound
diff --color -uNr a/awscli/customizations/servicecatalog/generateproduct.py b/awscli/customizations/servicecatalog/generateproduct.py
--- a/awscli/customizations/servicecatalog/generateproduct.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/servicecatalog/generateproduct.py 2022-05-18 14:52:05.845587829 +0200
@@ -16,6 +16,8 @@
from awscli.customizations.servicecatalog import helptext
from awscli.customizations.servicecatalog.generatebase \
import GenerateBaseCommand
+
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.compat import json
diff --color -uNr a/awscli/customizations/servicecatalog/generateprovisioningartifact.py b/awscli/customizations/servicecatalog/generateprovisioningartifact.py
--- a/awscli/customizations/servicecatalog/generateprovisioningartifact.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/servicecatalog/generateprovisioningartifact.py 2022-05-18 14:52:14.589634188 +0200
@@ -16,6 +16,8 @@
from awscli.customizations.servicecatalog import helptext
from awscli.customizations.servicecatalog.generatebase \
import GenerateBaseCommand
+
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.compat import json
diff --color -uNr a/awscli/customizations/streamingoutputarg.py b/awscli/customizations/streamingoutputarg.py
--- a/awscli/customizations/streamingoutputarg.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/streamingoutputarg.py 2022-05-18 14:55:30.712674053 +0200
@@ -10,6 +10,8 @@
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.model import Shape
from awscli.arguments import BaseCLIArgument
diff --color -uNr a/awscli/customizations/utils.py b/awscli/customizations/utils.py
--- a/awscli/customizations/utils.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/utils.py 2022-05-18 14:55:17.170602253 +0200
@@ -17,6 +17,7 @@
import copy
import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.exceptions import ClientError
diff --color -uNr a/awscli/customizations/waiters.py b/awscli/customizations/waiters.py
--- a/awscli/customizations/waiters.py 2022-04-27 20:06:58.000000000 +0200
+++ b/awscli/customizations/waiters.py 2022-05-18 14:53:22.822995963 +0200
@@ -10,6 +10,8 @@
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore import xform_name
from botocore.exceptions import DataNotFoundError
diff --color -uNr a/awscli/formatter.py b/awscli/formatter.py
--- a/awscli/formatter.py 2022-04-27 20:07:02.000000000 +0200
+++ b/awscli/formatter.py 2022-05-18 14:23:26.704218495 +0200
@@ -12,6 +12,8 @@
# language governing permissions and limitations under the License.
import logging
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.compat import json
from botocore.utils import set_value_from_jmespath
diff --color -uNr a/awscli/paramfile.py b/awscli/paramfile.py
--- a/awscli/paramfile.py 2022-04-27 20:07:02.000000000 +0200
+++ b/awscli/paramfile.py 2022-05-18 15:04:51.330646496 +0200
@@ -14,6 +14,8 @@
import os
import copy
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.awsrequest import AWSRequest
from botocore.httpsession import URLLib3Session
from botocore.exceptions import ProfileNotFound
diff --color -uNr a/awscli/plugin.py b/awscli/plugin.py
--- a/awscli/plugin.py 2022-04-27 20:07:02.000000000 +0200
+++ b/awscli/plugin.py 2022-05-18 15:06:18.780110157 +0200
@@ -12,6 +12,8 @@
# language governing permissions and limitations under the License.
import logging
+import sys
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.hooks import HierarchicalEmitter
log = logging.getLogger('awscli.plugin')
diff --color -uNr a/awscli/testutils.py b/awscli/testutils.py
--- a/awscli/testutils.py 2022-04-27 20:07:02.000000000 +0200
+++ b/awscli/testutils.py 2022-05-18 14:15:04.600600462 +0200
@@ -39,6 +39,7 @@
from awscli.compat import six
+sys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')
from botocore.session import Session
from botocore.exceptions import ClientError
from botocore.exceptions import WaiterError

View File

@ -1,6 +1,6 @@
diff -uNr a/awscli/customizations/cloudfront.py b/awscli/customizations/cloudfront.py diff -uNr a/awscli/customizations/cloudfront.py b/awscli/customizations/cloudfront.py
--- a/awscli/customizations/cloudfront.py 2017-08-12 01:39:00.000000000 +0200 --- a/awscli/customizations/cloudfront.py 2018-03-01 21:17:11.000000000 +0100
+++ b/awscli/customizations/cloudfront.py 2018-01-05 09:40:09.445445687 +0100 +++ b/awscli/customizations/cloudfront.py 2018-06-28 09:11:54.560750789 +0200
@@ -14,7 +14,9 @@ @@ -14,7 +14,9 @@
import time import time
import random import random
@ -12,22 +12,28 @@ diff -uNr a/awscli/customizations/cloudfront.py b/awscli/customizations/cloudfro
from botocore.utils import parse_to_aware_datetime from botocore.utils import parse_to_aware_datetime
from botocore.signers import CloudFrontSigner from botocore.signers import CloudFrontSigner
@@ -254,7 +256,10 @@ @@ -254,7 +256,16 @@
class RSASigner(object): class RSASigner(object):
def __init__(self, private_key): def __init__(self, private_key):
- self.priv_key = rsa.PrivateKey.load_pkcs1(private_key.encode('utf8')) - self.priv_key = rsa.PrivateKey.load_pkcs1(private_key.encode('utf8'))
+ try:
+ self.priv_key = serialization.load_pem_private_key( + self.priv_key = serialization.load_pem_private_key(
+ private_key.encode('utf8'), password=None, + private_key.encode('utf8'), password=None,
+ backend=default_backend()) + backend=default_backend())
+ except ValueError:
+ self.priv_key = ''
def sign(self, message): def sign(self, message):
- return rsa.sign(message, self.priv_key, 'SHA-1') - return rsa.sign(message, self.priv_key, 'SHA-1')
+ try:
+ return self.priv_key.sign( + return self.priv_key.sign(
+ message, padding.PKCS1v15(), hashes.SHA1()) + message, padding.PKCS1v15(), hashes.SHA1())
+ except AttributeError:
+ return b''
diff -uNr a/awscli/customizations/cloudtrail/validation.py b/awscli/customizations/cloudtrail/validation.py diff -uNr a/awscli/customizations/cloudtrail/validation.py b/awscli/customizations/cloudtrail/validation.py
--- a/awscli/customizations/cloudtrail/validation.py 2017-08-12 01:39:00.000000000 +0200 --- a/awscli/customizations/cloudtrail/validation.py 2018-03-01 21:17:11.000000000 +0100
+++ b/awscli/customizations/cloudtrail/validation.py 2018-01-04 17:04:38.869212582 +0100 +++ b/awscli/customizations/cloudtrail/validation.py 2018-06-28 09:11:54.559750804 +0200
@@ -22,8 +22,10 @@ @@ -22,8 +22,10 @@
from datetime import datetime, timedelta from datetime import datetime, timedelta
from dateutil import tz, parser from dateutil import tz, parser
@ -69,8 +75,8 @@ diff -uNr a/awscli/customizations/cloudtrail/validation.py b/awscli/customizatio
def _create_string_to_sign(self, digest_data, inflated_digest): def _create_string_to_sign(self, digest_data, inflated_digest):
diff -uNr a/awscli/customizations/ec2/decryptpassword.py b/awscli/customizations/ec2/decryptpassword.py diff -uNr a/awscli/customizations/ec2/decryptpassword.py b/awscli/customizations/ec2/decryptpassword.py
--- a/awscli/customizations/ec2/decryptpassword.py 2017-08-12 01:39:00.000000000 +0200 --- a/awscli/customizations/ec2/decryptpassword.py 2018-03-01 21:17:11.000000000 +0100
+++ b/awscli/customizations/ec2/decryptpassword.py 2018-01-04 16:24:42.565140244 +0100 +++ b/awscli/customizations/ec2/decryptpassword.py 2018-06-28 09:11:54.559750804 +0200
@@ -13,7 +13,9 @@ @@ -13,7 +13,9 @@
import logging import logging
import os import os
@ -96,3 +102,14 @@ diff -uNr a/awscli/customizations/ec2/decryptpassword.py b/awscli/customizations
logger.debug(parsed) logger.debug(parsed)
parsed['PasswordData'] = value.decode('utf-8') parsed['PasswordData'] = value.decode('utf-8')
logger.debug(parsed) logger.debug(parsed)
diff -uNr a/requirements.txt b/requirements.txt
--- a/requirements.txt 2018-03-01 21:17:11.000000000 +0100
+++ b/requirements.txt 2018-06-28 09:11:54.560750789 +0200
@@ -9,6 +9,6 @@
nose==1.3.0
colorama>=0.2.5,<=0.3.7
mock==1.3.0
-rsa>=3.1.2,<=3.5.0
+cryptography==2.0.3
wheel==0.24.0
PyYAML>=3.10,<=3.12

View File

@ -12,8 +12,8 @@
%global colorama_dir %{bundled_lib_dir}/colorama %global colorama_dir %{bundled_lib_dir}/colorama
Name: awscli Name: awscli
Version: 1.23.2 Version: 1.14.50
Release: 1%{?dist} Release: 5%{?dist}
Summary: Universal Command Line Environment for AWS Summary: Universal Command Line Environment for AWS
License: ASL 2.0 and MIT License: ASL 2.0 and MIT
@ -21,13 +21,11 @@ URL: http://aws.amazon.com/cli
Source0: https://pypi.io/packages/source/a/%{name}/%{name}-%{version}.tar.gz Source0: https://pypi.io/packages/source/a/%{name}/%{name}-%{version}.tar.gz
Source1: colorama-%{colorama_version}.tar.gz Source1: colorama-%{colorama_version}.tar.gz
Patch0: python-rsa-to-cryptography.patch Patch0: python-rsa-to-cryptography.patch
Patch1: bundled-python-botocore.patch
BuildArch: noarch BuildArch: noarch
%if %{with python3} %if %{with python3}
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
Requires: python3-botocore = %{botocore_version} Requires: python3-botocore = %{botocore_version}
Requires: fence-agents-aws
# python-colorama bundle # python-colorama bundle
#Requires: python3-colorama >= 0.2.5 #Requires: python3-colorama >= 0.2.5
Provides: bundled(python3-colorama) = %{colorama_version} Provides: bundled(python3-colorama) = %{colorama_version}
@ -64,7 +62,6 @@ command line interface to Amazon Web Services.
%prep %prep
%setup -q -n %{name}-%{version} %setup -q -n %{name}-%{version}
%patch0 -p1 %patch0 -p1
%patch1 -p1
rm -rf %{name}.egg-info rm -rf %{name}.egg-info
@ -82,7 +79,7 @@ popd
# python-colorama: append bundled-directory to search path # python-colorama: append bundled-directory to search path
sed -i "/^import colorama/isys.path.insert(0, '/usr/lib/%{name}/bundled')" awscli/customizations/history/show.py awscli/table.py sed -i "/^import colorama/isys.path.insert(0, '/usr/lib/%{name}/bundled')" awscli/customizations/history/show.py awscli/table.py
# python-jmespath: append bundled-directory to search path # python-jmespath: append bundled-directory to search path
sed -i "/^import jmespath/iimport sys\nsys.path.insert(0, '/usr/lib/fence-agents/bundled/aws')" awscli/customizations/arguments.py sed -i "/^import jmespath/iimport sys\nsys.path.insert(0, '/usr/lib/%{name}/bundled')" awscli/customizations/arguments.py
%build %build
%if %{with python3} %if %{with python3}
@ -142,11 +139,6 @@ popd
/usr/lib/%{name}/bundled /usr/lib/%{name}/bundled
%changelog %changelog
* Wed May 18 2022 Oyvind Albrigtsen <oalbrigt@redhat.com> - 1.23.2-1
- Rebase to 1.23.2 to support IMDSv2
Resolves: rhbz#2079941
* Tue Nov 20 2018 Oyvind Albrigtsen <oalbrigt@redhat.com> - 1.14.50-5 * Tue Nov 20 2018 Oyvind Albrigtsen <oalbrigt@redhat.com> - 1.14.50-5
- bundled python-colorama - bundled python-colorama