-
Notifications
You must be signed in to change notification settings - Fork 564
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
Securise app version and upgrade validate_app #1171
Conversation
The failed check is an unvolontary proof of concept of the new validation 😄 |
Thanks for the PR! It was a bit too scary to look at and it took some time for me to fully review this.
I believe you're referring to version, not cap_app_name, right? While I see value in this, I think this becomes a maintenance hurdle moving forward. One simple case for example is that there are cases where there are multiple versions in the same One Click App. You can only validate one of them, which one?
You're just checking for the variable to exist, not the actual version on dockerhub, right?
Again, this is just relying on the existence of the word "tag" and some other words... I don't see this as the right way to do this. Overall, this seems like it is targeting the right goal, but the implementation is not ideal. |
How did you plan on doing this? |
exactly
it is the main caprover app version
With standardize the name of the caproverappVersion
With a script who are fetching the docker image and check if latest have the same hash (or date) than the default version |
and I will try to integrate this change too |
First of all, thank you for your contribution! 😄
Hi,
I tried to standardize the
$$cap_app_name
to check and to fix all the fixed versions without variables and with fixed values.I added three checks on validate app :
I also use a
for of
instead of thevar i
for performance purpose.To finish I would later create a new command to know which packages are deprecated and from how long
I think this PR is more readable commit by commit.
I hope this could help
Regards
npm ci && npm run validate_apps && npm run formatter
(If failling run the prettier:npm run formatter-write
)