lacework / extensible-reporting

A command line tool for generating Lacework Reports
12 stars 4 forks source link

after migrating to new RBAC, getting auth failure #71

Open samibegg-lw opened 1 year ago

samibegg-lw commented 1 year ago

when running the .py to generate csa report, after migrating the tenant to new RBAC

./generate_csa_report.py --author samibegg --customer fticonsulting

i get the error:

2022-11-10 11:53:52 laceworksdk.http_session[38211] WARNING Lacework's v1 APIs are scheduled to be deprecated and will not allow usage of after December 2022. Traceback (most recent call last): File "/Users/samibegg/Downloads/extensible-reporting-main/./generate_csa_report.py", line 87, in main() File "/Users/samibegg/Downloads/extensible-reporting-main/./generate_csa_report.py", line 84, in main report.generate_report(_shared(), report_save_path=report_save_path, use_cached_data=args.use_cached_data) File "/Users/samibegg/Downloads/extensible-reporting-main/reports/jinja2/csa_report.py", line 21, in generate_report compliance_data = gather_compliance_data(_shared, lw_provider) File "/Users/samibegg/Downloads/extensible-reporting-main/reports/jinja2/csa_report.py", line 110, in gather_compliance_data integrations = lw_provider.integrations() File "/Users/samibegg/Downloads/extensible-reporting-main/providers/lacework/integrations.py", line 8, in integrations integrations = lw().integrations.get_all()['data'] File "/opt/homebrew/lib/python3.9/site-packages/laceworksdk/api/v1/integrations.py", line 101, in get_all return self.get() File "/opt/homebrew/lib/python3.9/site-packages/laceworksdk/api/v1/integrations.py", line 88, in get response = self._session.get(api_uri) File "/opt/homebrew/lib/python3.9/site-packages/laceworksdk/http_session.py", line 297, in get response = self._request("GET", uri, params=params, **kwargs) File "/opt/homebrew/lib/python3.9/site-packages/laceworksdk/http_session.py", line 256, in _request self._check_response_code(response, DEFAULT_SUCCESS_RESPONSE_CODES) File "/opt/homebrew/lib/python3.9/site-packages/laceworksdk/http_session.py", line 123, in _check_response_code raise ApiError(response) laceworksdk.exceptions.ApiError: [403] Forbidden - User not authorized.