-
Posts
1,364 -
Joined
-
Last visited
-
Days Won
49
Everything posted by flydev
-
Missed your question, and the answer is not necessarily. In our case, we use asymmetric file encryption and the lib run his seals operations on a resource implementing StreamInterface (PSR-7). Just to say that, without going into deep details, the methods read the file from a stream block by block, with a defined buffer size, and a minimum shortest cypher text of 100 bytes, then run the cipher algo (XChaCha20) on the blocks till the EOF. This mean that your file should have the same size. The encrypted file could have 100 bytes more than the source. You can try to run in the terminal `du -b source_file` and `du -b encrypted_file` to compare them. By curiosity, you can also test it with openssl by running : `openssl enc -d -chacha20 -K YOUR_PUBLIC_KEY -iv 0123456789abcdef0123456789abcdef -in SOURCE.zip > ENCRYPTED.zip` (the difference between Chacha20 and XChacha20 is the last use an extended nonce, the result should be same size).
-
Yes sorry, I edited my post after posting it. Yes ok, that's what I had in mind. Actually, with Halite, it shouldn't be possible. The only solution I have in mind after I read the C library yesterday, is the need to write another wrapper to be able to set max execution time limit in the process. This is what I meant on my previous post > As I have no control over the stream (Halite seal encryption use chunks on stream when using the File class)...
-
Hi @adrian hope you are fine and thanks for testing. Oh common! ? I introduced it when testing the ui and pushed as is - corrected. On your second post, we can see that everything look ok to use it. Can you tell me if you are on a DigitalOcean solution or maybe an AWS one ? Anyway, the cause of #3 is due to the max_execution_time limit. Can you tell me which options you use in Duplicator settings (cron, local, google) ? I will test with GoogleDrive right now to see what happen, I have not tested it with the encryption enabled. In local mode only, you should not hit the limit (but that's depend your server type), as the php-cli is by default not supposed to be interfered by this settings, only if set some where, and that's the reason we call cron.php from the task scheduler or from the terminal. As I have no control over the stream (Halite seal encryption use chunks on stream when using the File class), it will hit this limit on nearly each managed host (at least I think). #2 There will be an options available to keep the zip or not. By default it will be deleted if encryption is enabled. I could make a settings available to adjust this, but again, we need to see from where the value is set. I bet it's the google mode. If not, I will try to find in you hosting provider documentation if there is a limit set on the php-cli. Checking and listening to your answer about this.
-
Then I must say that the bad performances was due to my machine and/or setup (caddy/php-fpm, thats is quite bad and sad on Windows). On the Windows Server, performance are ? ! A backup of a setup of 2.11GB, once compressed, 801MB, the whole process took 107sec ✅ ?? encryption: 2.5sec decryption: 3.5sec Not bad ?
-
Yes, but was the whole process, encrypting the 687MB and decrypting it. Encrypting took nearly 1h48. On my side, it's not usable as I have some databases of 7GB or even 11GB, and a custom tool handle it, but of course, it's only available on private server where we have the hand on it. I will launch this afternoon a test on a Windows Server with Xeon CPU and 32GB of RAM, let's see.. The issue of processing time will be tackled, but only on a private server. Anyway, having a huge database or file size on a shared server should not be too frequent (I have no stats to look at..). Do not take care of performance info given on this post, see ?
-
Incoming update of Duplicator v1.5 --- Encryption is being implemented, if you want to give a try, the feature is available on the branch feature-encryption : - https://github.com/flydev-fr/Duplicator/tree/feature-encryption More infos and Instructions can be found by reading or running the script generate-keys.php on a terminal. --- I shared infos with Steve, I also want to share it with you : => Test on a Package of 687MB on PHP8.1 Do not take care of performance info given on this post, see ?
-
? How to provide solutions to the community for free forever working on ProcessWire ? ? Apply to the following job, do physical activity to prevent hypertension and improve mental health ?
-
There are not so many, it's only the vars of the pw-theme that need to be done. For the native dark theme (inverse), you can try it by adding `uk-dark` to the body, but will also see that there are some hardcoded value (like the background with #fff) in the pw theme. Will make a example, with a simple script, we can automate the vars declaration ? stay tuned. Example :?
-
From mobile, but try that: on the bottom of your less variables, write: :root { —rf-primary: @rf-primary; } Then save and refresh, you can now from your CSS module just call like : .rock-textfield { color: var(—rf-primary); } You will see exposed var in the devtool too. And then we will be able to use ‘inverse’ color without overriding everything. ?
-
From nowhere, but that's the missing part, I will push a fork of the official AdminThemeUikit so you can try it. The `pw-theme` should expose by default a `:root { --text-color; --bg-color; etc. }` to be used in CSS files shipped with our modules. I Will do that. Nahh ?
-
I agree, It was just an (good) idea thrown as is. And yes, about my "SCSS thing", I had in mind the LESS file, sorry (I am not a UIKit guy but a Tailwind node js/scss guy). I am not talking about asking devs to take care of the dark style, but using already existing LESS vars from the official theme, then when installing and using a new theme, it should fit smoothly without the need of writing hardcoded value. It could be the case for old modules optionally, but like you, I like standardized things. I also did myself the contrary of what we are talking here in most my modules, and then modified Duplicator's style in this way. I have more time theses days, I will self brainstorm and throw some suggestions.
-
Thanks for the reply, I was going to push and see if the modules dir was grabbing the version. Reverting it ? To Ryan: please let’s the modules dir taking care of the field `version` of the package.json file, if present. And just sayin, it will also be a time saver for some profiles using npm at the same time ?
-
@bernhard as I am now using this admin theme on every setup, I had in mind that we could publish a scss file which should be used by every module’s developers. We will be using, eg., `var(—text-color-primary)` etc when writing module styles related code. I am quite sure you already suggested something related somewhere in the forum, maybe you already put some « rock » code available ? The next step should be to put a sentence about this process on the official module dev doc and a pinned thread here on the forum. It should make things more standarized and easy to adapt/overwrite. I needed again to write some more `.moduleClass .domThing !important;` to get some modules working with the dark style, like the toolbar button of EasyMDE… ⏳
-
Just read the thread, and posting an idea to give future readers a solution I used on a setup in the past. You can mitigate this "existing issue on every frameworks" by automating the whole things by writing a dedicated script which will change the admin url to a random generated string once called (could be a SHA hash, or whatever). Then you create a scheduled task that is calling this script with delay you want. When the script is called, it change the admin url to the new generated random string and make a call to a webhook, which on my case, was known by a self-made Telegram bot. When I was in need to log-in, I asked the bot on Telegram the current admin url ?
-
Hey, thats great, going to look at this while drinking the coffee. I remember I was using a variable in Duplicator to get the last version number updated automatically but it wasn’t updated/grabbed on the module’s directory. I think it was a constant, not a variable. Anyway, I try it this morning as I will update some modules, and there is also something that could interest some of you. There is a tool which write commits and keep a sort of standard for it, using OpenAI GPT3 model. => https://github.com/shanginn/git-aicommit. thanks @bernhard
-
@Flashmaster82 what is the issue ?
-
@JamesKnepper type those keywords « External database » in the following tool : https://cse.google.com/cse?cx=014789015761400632609:fxrf0rj4wr4
-
Something block response form POST and GET call
flydev replied to Marco Ro's topic in Getting Started
I dont get it Marco, did you manage the server or its an hosting plan ? Because as we said, as we can send requests on 80 and 443, there is no firewall blocking it. One thing you could ask them or check on the logs, is if your ip get blocked somewhere, they have antiddos mesures and you might had a bad loop throwing requests during a small period, thats just a idea.. -
Short answer from mobile, yes. Welcome ?
-
Something block response form POST and GET call
flydev replied to Marco Ro's topic in Getting Started
@Marco Ro get and post also works from here, at least we receive http answer code, like @BrendonKoz Also, FYI if it help, GET request on HTTP get redirected to /auth from the js code (window.location.href = "/auth/") and the same request on HTTPS is forbidden. On a VPS or private server, you have to adjust the firewall from the OVH dashboard. If it's an hosting plan, then you have nothing to do. https://docs.ovh.com/it/dedicated/firewall-network/#prerequisiti -
@protro thanks ? If you have already your site content, you have two simple solutions: A. Using Duplicator: build a package remove all files and folders from the package2.zip and keep only the .sql.zip inside upload the installer.php file and the modified package2.zip on the root directory navigate to https://yoursite.com/installer.php and follow the instructions The modified package2.zip file content ? B. Using ProcessDatabaseBackups install the module upload or select a db file restore it ⚠️ As always, make a backup of everything before proceeding
-
I will add a new answer once I have made some tests, comments are welcome. https://github.com/flydev-fr/Duplicator/issues/37
-
AdminThemeUIkit admin styles from multiple less files
flydev replied to gornycreative's topic in General Support
Just my two cents here, I vote to extend the module's developer doc and/or a note in the coding style guide. That's maybe the role of the community to (help) write it and send it as proposal to @ryan by filling a github issue for an eventual revision.