Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation failure #85

Closed
ThomasLachaux opened this issue Nov 7, 2022 · 0 comments
Closed

Installation failure #85

ThomasLachaux opened this issue Nov 7, 2022 · 0 comments

Comments

@ThomasLachaux
Copy link

Problem: The YATAS --install crashes on download AWS plugin.

Debug Logs :

2022/11/07 15:52:57 [DEBUG] Mkdir plugin dir: /Users/thomas/.yatas.d/plugins/github.com/StanGirard/yatas-aws/latest
GOGOGOGOG StanGirard yatas-aws latest
GOGOGOGOG StanGirard yatas-aws latest
2022/11/07 15:52:57 [DEBUG] Request to https://api.github.com/repos/StanGirard/yatas-aws/releases/tags/latest
2022/11/07 15:53:00 [DEBUG] asset found: checksums.txt
2022/11/07 15:53:00 [DEBUG] asset found: yatas-aws_darwin_amd64.zip
2022/11/07 15:53:00 [DEBUG] asset found: yatas-aws_darwin_arm64.zip
2022/11/07 15:53:00 [DEBUG] asset found: yatas-aws_linux_386.zip
2022/11/07 15:53:00 [DEBUG] asset found: yatas-aws_linux_amd64.zip
2022/11/07 15:53:00 [DEBUG] asset found: yatas-aws_linux_arm.zip
2022/11/07 15:53:00 [DEBUG] asset found: yatas-aws_linux_arm64.zip
2022/11/07 15:53:00 [DEBUG] asset found: yatas-aws_windows_386.zip
2022/11/07 15:53:00 [DEBUG] asset found: yatas-aws_windows_amd64.zip
2022/11/07 15:53:00 [DEBUG] Download checksums.txt
2022/11/07 15:53:00 [DEBUG] Request to https://api.github.com/repos/StanGirard/yatas-aws/releases/assets/80782091
/var/folders/vj/xghtc_2n7m9bt492dgtzp0d80000gn/T/yatas-tmp-3634564388
&{[] {0x14000308300} <nil> <nil>}
2022/11/07 15:53:01 [DEBUG] Downloaded to /var/folders/vj/xghtc_2n7m9bt492dgtzp0d80000gn/T/yatas-tmp-3634564388
2022/11/07 15:53:01 [DEBUG] Download yatas-aws_darwin_arm64.zip
2022/11/07 15:53:01 [DEBUG] Request to https://api.github.com/repos/StanGirard/yatas-aws/releases/assets/80782085
/var/folders/vj/xghtc_2n7m9bt492dgtzp0d80000gn/T/yatas-tmp-4100168039
&{[] {0x140001c5080} <nil> <nil>}
2022/11/07 15:53:02 [DEBUG] Downloaded to /var/folders/vj/xghtc_2n7m9bt492dgtzp0d80000gn/T/yatas-tmp-4100168039
failed to extract binary from yatas-aws_darwin_arm64.zip: zip: not a valid zip file

.yatas.yml

plugins:
  - name: "aws"
    enabled: true
    source: "github.com/StanGirard/yatas-aws"
    version: "latest"
    description: "Check for AWS good practices"
    exclude:
     # - AWS_S3_001
    include:
     # - "AWS_VPC_004"
     # - "AWS_VPC_003"

ignore:
  - id: "AWS_VPC_004"
    regex: true
    values:
      - "VPC Flow Logs are not enabled on vpc-888.*"
  - id: "AWS_VPC_003"
    regex: false
    values:
      - "VPC has only one gateway on vpc-08ffec87e034a8953"

pluginsConfiguration:
  - pluginName: aws
    accounts:
      - profile: "my-awesome-profile"
        sso: false
        region: "eu-west-3"
        name: "yatas"

It may be due to old links that point to @StanGirard profile instead of Padok profile.

By the way, after two tries, the --install command gets rate limited.
Logs on the third try.

2022/11/07 15:56:23 [DEBUG] Mkdir plugin dir: /Users/thomas/.yatas.d/plugins/github.com/StanGirard/yatas-aws/latest
GOGOGOGOG StanGirard yatas-aws latest
GOGOGOGOG StanGirard yatas-aws latest
2022/11/07 15:56:23 [DEBUG] Request to https://api.github.com/repos/StanGirard/yatas-aws/releases/tags/latest
failed to fetch GitHub releases: GET https://api.github.com/repos/StanGirard/yatas-aws/releases/latest: 403 API rate limit exceeded for 195.135.98.90. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.) [rate reset in 39m15s]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants