Commit graph

11 commits

Author SHA1 Message Date
Oldřich Jedlička
7a42a6eaec luci-app-fwknopd: Show QR codes for custom configuration.
* Addsed /etc/fwknop/access.conf parsing to show QR codes.

Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
2020-10-31 09:41:19 +01:00
Oldřich Jedlička
e24415ac12 luci-app-fwknopd: Client-side rendering and improvements/fixes.
* Use client-side rendering.
 * Asynchronous QR code generation and on-the-fly updates.
 * Added button to generate keys.
 * Added keys validation (empty, __CHANGEME__ and CHANGEME values are not
   valid).
 * Added SOURCE option non-empty validation (SOURCE is mandatory field).
 * Added network and DESTINATION options.
 * Use checkboxes for Y/N options instead of text fields.
 * Fix the qrencode tool, which currently has only `--inline` option, not
   `-I`. Use `--inline` instead.
 * Improve configuration handling by removing the key type from the config
   file. The key type is deduced from the actual values (normal/base64).
 * Provide migration script (clean-up of stale keytype/hkeytype values in
   config).
 * Fixed usage of translations.

Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
2020-10-31 09:40:38 +01:00
Jo-Philipp Wich
8f34e105c0 treewide: add ACL annotations to menu entries
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-17 12:40:31 +02:00
Jo-Philipp Wich
43e872871a treewide: stage ACL rules for legacy applications
Fixes: #3866
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-10 23:21:35 +02:00
Jo-Philipp Wich
625abbfdbe treewide: convert simple Lua controllers to declarative JSON
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-02-05 16:52:58 +01:00
Jonathan Bennett
cfbeca728e luci-app-fwknop: add inline option to qrencode usage
The qrencode update in the packages repo includes a patch that
adds the --inline option.  We use that option to generate a
proper inline SVG image.
Signed-off-by: Jonathan Bennett <JBennett@Incomsystems.biz>
2017-10-16 12:29:31 -05:00
Jonathan Bennett
9be2b76096 luci-app-fwknopd: add the -q option to UCI
Thanks to spacezorro on Github for suggesting this.  The quiet tag suppresses the error messages if no key is present.
2017-10-15 22:21:05 -05:00
Jonathan Bennett
e52a4b5cea luci-app-fwknopd: Prep for libqrencode update
An update for libqrencode requires that we explicitly ask for an SVG output.  This continues to work properly with the old version.  Making the change here before updating the libqrencode package.

Signed-off-by: Jonathan Bennett <JBennett@Incomsystems.biz>
2017-10-15 22:12:18 -05:00
Jonathan Bennett
085fb17a11 Luci-app-fwknopd: add quotation marks to squash error
In some cases, the missing quotation marks can cause error messages.  Although harmless, adding the quotation marks for correctness.

Signed-off-by: Jonathan Bennett <JBennett@Incomsystems.biz>
2017-10-15 21:33:15 -05:00
Jonathan Bennett
846bdf4d80 [luci-app-fwknopd] Remove usage of dynamic tag.
Also adds NAT-DNS as a default setting, and enables a QR-code per access.conf entry
Signed-off-by: Jonathan Bennett <JBennett@incomsystems.biz>
2017-01-09 01:55:19 -06:00
Jonathan Bennett
4ccb221f6d luci-app-fwknopd: Add qr code support
Signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
2015-05-20 13:02:11 -05:00