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

EKS : Could not fetch EKS configuration: 'resource' #1677

Open
LleeTossel opened this issue Nov 5, 2024 · 2 comments
Open

EKS : Could not fetch EKS configuration: 'resource' #1677

LleeTossel opened this issue Nov 5, 2024 · 2 comments
Labels
bug Something isn't working potential Unconfirmed issue

Comments

@LleeTossel
Copy link

Describe the bug

When using ScoutSuite to audit an EKS cluster, the following error occurs.

  • Console Output:
2024-11-05 11:08:11 localhost.localdomain scout[171226] INFO Fetching resources for the EKS service
'resources'
2024-11-05 11:08:12 localhost.localdomain scout[171226] ERROR services.py L56: Could not fetch EKS configuration: 'resources'
Traceback (most recent call last):
  File "/home/lleetossel/work/git/ScoutSuite/testenv/ScoutSuite/providers/base/services.py", line 56, in _fetch
    await service_config.fetch_all(**method_args)
  File "/home/lleetossel/work/git/ScoutSuite/testenv/ScoutSuite/providers/kubernetes/resources/base.py", line 47, in fetch_all
    self[f'{child_name}_{version}_count'] = len(data[version]['resources'])
                                                ~~~~~~~~~~~~~^^^^^^^^^^^^^
KeyError: 'resources'

This was tested on multiple clusters all with the same result.

Python version 3.13

To Reproduce

  • This is the CLI command used:
python3 ./scout.py kubernetes --no-browser --report-dir ./report/kubernetes --cluster-provider eks --max-rate 10 --debug
  • The role used had full access to all EKS actions for the cluster.
@LleeTossel LleeTossel added bug Something isn't working potential Unconfirmed issue labels Nov 5, 2024
@liyun-li
Copy link
Contributor

liyun-li commented Nov 12, 2024

k8s made quite a few changes to its api and i will need to fix it. stay tuned! (it's gonna be a slow fix from our end so PRs are appreciated)

@liyun-li
Copy link
Contributor

in the meantime try running the tool without -c eks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working potential Unconfirmed issue
Projects
None yet
Development

No branches or pull requests

2 participants