-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
Enhancement: provide scripts in a machine-readable way #126
Comments
@brootware make binaries pls |
Hi @bardiarajabi , any reason for considering binaries ? |
@brootware Its hard for some people for compiling on windows. |
oh there are no compilation process involved though @bardiarajabi . The CLI is just a simple power-shell script on windows that wraps the batch commands from privacy.sexy web app. The user can just invoke the cli just like this without compiling or building.
You can check it out the project here. https://github.com/brootware/privacy-sexy-lite |
@brootware Oh yes true. |
Hi @brootware, what a great initiative! This is very useful, I'd want to use it myself. I'm ready to work with you to get rid of the manual work. This is important before gaining recognition because it would allow us to keep scripts updated and therefore as secure as possible. How about renaming this issue to something like "provide scripts in a machine-readable way? The challenge here is that building a REST API would require a back-end. But privacy.sexy is completely serverless. This is to not pay more money for keeping a back-end. The way privacy.sexy GUI works is that it parses these collection files on client and compiles them to generate the final scripts. Everything is done the client-side. You can read more about compilation here. To provide you the compiled scripts we need to compile the scripts independently of the UI. I have some ideas around this but they all require mass-refactoring that I cannot complete in a short time. I will think more about this and come back. P.S.: @bardiarajabi I also think binary distributions in future iterations would be pretty nice, especially on Windows. But this we should probably discuss in that repository. |
Thank you @undergroundwires . Definitely agreed with you on keeping privacy.sexy server less to keep the costs to a minimum. Will be looking through the compilation process of the scripts and brainstorm some ideas around this too and come back. |
I think the easiest way would be to create a JSON file ( ImplementationCreation of The challenge with this is that Webpack plugins only support JavaScript meanwhile script parsing/compilation is written in TypeScript. We need to expose this TypeScript code to JavaScript (of Webpack) but we cannot do simple Changes needed to achieve this:
This pre-compilation would make initial loading of GUI faster and give you two options:
A trade-off between more control vs simplicity. Here I tried to visualize it: Looking forward to your feedback. |
Thank you for the detailed explanation of the implementation @undergroundwires . I really appreciate how it's mimicking an endpoint to be called by clients. As I'm a bit rusty with web frameworks please bear with me as I try to recap this. If I understand correctly, From a quick glance at the two options, No.2 sounds like a better approach personally as I'd like to make sure all the scripts are in sync with the web app. A few questions on this though.
From the visualization above, I'm assuming there will be refactoring involved in |
I agree with underwires but specifically recommend also releasing the app on a reliable registry with your published images on say https://artifacthub.io/ and they can install the software to run wherever they like with with "docker/podman run -it imagename" and pass in any arguments via CLI flags making the app machine readable that was requested above in one go. |
Update: I work actively on this and very close to remove all the blockers. My goal is to release this on |
Hi @undergroundwires , sure I'm looking to refactor some parts of the scripts and test out which I will only be able to do it after I could get the machine readable endpoint. Until then please hold off on the shout-out first :) |
Problem description
Hello, thank you for the amazing tool. I've been using these scripts on my devices and sandbox machines with a cli-app version I made with standard recommendations. Currently I'm manually looking at the scripts and putting them into functions.
As you can tell, this is quite manual, error prone and time intensive.
Proposed solution
I'm just wondering if there is some for of API endpoint I could query to update the scripts.
Alternatives considered
Manually copy pasta scripts.
Additional information
https://github.com/brootware/privacy-sexy-lite
The text was updated successfully, but these errors were encountered: