Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Anthony
    @doubleshot
    Hey @anomalizer
    Arvind Jayaprakash
    @anomalizer
    @doubleshot Hello anthony
    David Lin
    @lindavid1028
    Hey guyes,
    Can you please let me know how to install this ngx_aws_auth module?
    Arvind Jayaprakash
    @anomalizer
    @lindavid1028 nginx modules need to be compiled along with the main project. Do you compile nginx from source or use a pre-packaged version?
    Graham Hargreaves
    @grahamhar
    @anomalizer any chance you could help me with a question on using this module with regions?
    Graham Hargreaves
    @grahamhar
    aws_endpoint s3.eu-west-2.amazonaws.com; aws_signing_key <redacted>; aws_key_scope 20171106/eu-west-2/s3/aws4_request; aws_access_key <redacted>; location / { aws_sign; proxy_pass http://<redacted>.s3.eu-west-2.amazonaws.com; }
    Dumitru
    @kurai7hikari_twitter
    Hi, guys
    can you tell me where I can get the aws_acces_key required in the config? I'm a bit confused about what key is required.
    Graham Hargreaves
    @grahamhar
    You need access keys for the IAM user which has permission to access the S3 bucket
    Dumitru
    @kurai7hikari_twitter
    does that mean I cannot use a role?
    Graham Hargreaves
    @grahamhar
    I don’t think so
    Dumitru
    @kurai7hikari_twitter
    :(
    Lahari
    @laharikommi_twitter
    Hi guys, I configured 'aws_sign' in my server block and my request was rejected since conf->enabled was still 0. I figured out it's because the conf->enabled value from srv block is not merged with the location block
    Is there any reason behind not merging only this variable in the configuration struct?
    I see all other fields like access_key, scope are being merged to inherit from previous configuration
    aarati-K
    @aarati-K
    Hey @anomalizer. I have created the following nginx config file
    events { }
    
    http {
      server {
        listen 80;
        server_name www.domain.com;
    
        aws_access_key "AKIAJXI6TBS3WIVC2TRA";
        aws_signing_key "dYaS24Xi8Na2TCu7+/ru0dzXEm+UCrkofN3NO27YbfI=";
        aws_key_scope "20190502/ap-southeast-2/s3/aws4_request";
        aws_s3_bucket "small-values";
    
        location / {
          aws_sign;
          proxy_pass https://small-values.s3.amazonaws.com;
        }
      }
    }
    When I make calls to the server using boto-3 library, I get this error: botocore.exceptions.ClientError: An error occurred (NotImplemented) when calling the GetObject operation: A header you provided implies functionality that is not implemented
    Is there an expected format for making requests to the server?
    aarati-K
    @aarati-K
    Okay, looks like the expected request format is something as follows:
    import requests
    r = requests.get("http://localhost:80/key_name")
    print(r.status_code)
    muhammad-fahad2068
    @muhammad-fahad2068
    Hi team
    any one available here, I am trying to use nginx_aws_auth
    but unable to make this module
    can anyone pls share the steps on how to make it?
    Arvind Jayaprakash
    @anomalizer
    @muhammad-fahad2068 , the makefile on the master branch contains all of the build steps