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

Updater Action does not work since a few months #186

Open
lucaippi opened this issue Aug 9, 2024 · 3 comments
Open

Updater Action does not work since a few months #186

lucaippi opened this issue Aug 9, 2024 · 3 comments

Comments

@lucaippi
Copy link

lucaippi commented Aug 9, 2024

I noticed that the updater action does not work since around 9 months
Screenshot 2024-08-09 at 10 25 54
It seems like PhantomJS has issues executing awsconsole.js - tried some things locally, but given I am no expert with node/js I could not find a solution right away. Any idea on how to make this work again?

@smoy
Copy link
Contributor

smoy commented Sep 3, 2024

You can try the suggestion from #184 (comment)

@lucaippi
Copy link
Author

@smoy the issue was not really resolved in the thread you referenced right? @patricksanders mentioned that the updated logic could be updated to something more stable but it was not so far.

I guess there are many options that could be used as datasource for this

curl --header 'Connection: keep-alive' \
     --header 'Pragma: no-cache' \
     --header 'Cache-Control: no-cache' \
     --header 'Accept: */*' \
     --header 'Referer: https://awspolicygen.s3.amazonaws.com/policygen.html' \
     --header 'Accept-Language: en-US,en;q=0.9' \
     --silent \
     --compressed \
     'https://awspolicygen.s3.amazonaws.com/js/policies.js' |
    cut -d= -f2 |
    jq -r '.serviceMap[] | .StringPrefix as $prefix | .Actions[] | "\($prefix):\(.)"' |
    sort |
    uniq

So the issue is still open and what could be challenged is weather the current updater logic should be fixed or replaced

@smoy
Copy link
Contributor

smoy commented Oct 31, 2024

@lucaippi It's not resolved. Since policyuniverse is mostly in maintenance mode, I actually just have my own implementation that converts iam-dataset to the existing policyuniverse format and replace data.json

Hey @smoy, sorry for missing this before. This project is still maintained, though it has not been something we've been able to prioritize. I'm definitely open to changing how the updater works. We come through and fix it occasionally, but it's super brittle and ends up breaking again shortly after.

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