Skip to content

fix for downloading policy-templete zip #371

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

Merged
merged 2 commits into from
Sep 8, 2023

Conversation

Prateeknandle
Copy link
Contributor

@Prateeknandle Prateeknandle commented Sep 8, 2023

removed grab package dependency for downloading policy-template zip file.
grab.Get gives error server returned 403 Forbidden

using net/http package instead.
for ref - https://accuknox.slack.com/archives/C0229TD83RA/p1694106383879899

Copy link
Member

@daemon1024 daemon1024 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we fallback to using local zip if somehow the new zip download/extraction fails?

@Prateeknandle
Copy link
Contributor Author

@daemon1024 where should we store the zip?

@daemon1024
Copy link
Member

@Prateeknandle I meant that

if _, err := DownloadAndUnzipRelease(); err != nil {

in this line, let's not return error but just log a Warning and continue recommend with old templates

@daemon1024 daemon1024 merged commit 2fc04d2 into kubearmor:main Sep 8, 2023
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

Successfully merging this pull request may close these issues.

2 participants