wizacha / AwsSignatureMiddleware

Kind of connector to use AWS Elasticsearch Service with elastic/elasticsearch-php client
MIT License
24 stars 7 forks source link

Issues w/ Signature at AWS ES 7.1 #9

Open mosheka opened 4 years ago

mosheka commented 4 years ago

When we upgraded our ES cluster to 7.1 We started to receive errors, although nothing changed (except for the upgraded cluster and elasticsearch package in composer)

Any idea?

The error: Fatal error: Uncaught Elasticsearch\Common\Exceptions\Forbidden403Exception: {"message":"The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details."} in /code/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php:578 Our compose config:

~/$ sudo vi composer.json
{
    "require": {
        "laravel/lumen-framework": "v5.2.*",
        "vlucas/phpdotenv": "~1.0",
        "monolog/monolog": "v1.*",
        "elasticsearch/elasticsearch": "7.0",
        "catfan/medoo": "v1.6.*",
        "guzzlehttp/guzzle": "v6.3.*",
        "phpmailer/phpmailer": "v6.*",
        "aws/aws-sdk-php": "^3.109",
        "wizacha/aws-signature-middleware": "^0.1.2"
    },
    "autoload": {
        "psr-4": {
            "Traits\\": "traits/"
        }
    }
}
vdechenaux commented 4 years ago

Hi, the initial members of the team don't have access anymore to this repo :/ ( I was part of them )

Maybe you can use the fork here : https://github.com/wizacha/AwsSignatureMiddleware/pull/8#issuecomment-522950549

sagarjainubuy commented 4 years ago

string(68) "{"message":"The security token included in the request is invalid."}"