Shobu UMEMURA
8fc518dba8
Fix username validation regex to correctly recognize hyphen (-)
...
This pull request corrects the regular expression used for username validation to correctly recognize hyphens (-).
Changes Made:
Changed the regex pattern from ^([a-zA-Z0-9_.-@])+$ to ^([a-zA-Z0-9_.\-@])+$.
Reason for Change:
In the previous regex, the hyphen (-) within the character class was interpreted as a range operator, not as a literal character. This caused usernames with hyphens to be incorrectly marked as invalid.
By escaping the hyphen (\-), the regex now correctly recognizes it as a literal character. This ensures that usernames containing hyphens are validated properly.
Points of Verification:
Confirmed that usernames containing hyphens are now correctly recognized and pass the validation.
Verified that other characters (letters, numbers, underscores, dots, and at signs) are still being properly validated.
2024-09-28 17:57:02 +09:00
Sprait
c83c581e21
fix revoke user ( #243 )
...
* fix reuse argument multiple times
* replace whitespace with tab
2023-09-12 11:05:28 +03:00
Sprait
4981dcb919
Multi-platform build ( #234 )
...
* add multi-platform build
2023-09-04 19:24:13 +03:00
Sprait
dbc48ef3f1
Merge pull request #92 from strnk/master
...
listen.base-url parameter to support reverse-proxy setups
2023-08-22 13:40:46 +03:00
Vitaliy Snurnitsin
9024405232
Force update user list for kubernetes.secrets backend
...
Signed-off-by: Vitaliy Snurnitsin <vitaliy.snurnitsin@flant.com>
2023-04-27 15:18:29 +03:00
Christophe Huriaux
dfe2f3d756
Merge branch 'master' into master
2022-11-02 14:29:22 +01:00
Ilya Sosnovsky
d012141b51
refactoring
2022-08-12 13:52:45 +03:00
Ilya Sosnovsky
67dd4538ad
small refactoring to reduce os.exec calls
2022-08-02 17:19:27 +03:00
Ilya Sosnovsky
a0daf5b4d7
add feature for rotate and delete users; fixes; refactoring
2022-07-21 18:37:34 +03:00
Vitaliy Snurnitsin
47abe3bc1a
Added ability to specify multiple --ovpn.service
2022-04-27 13:45:43 +03:00
Vitaliy Snurnitsin
4b7ef65a66
add storage.backend selection (filesystem or kubernetes.secrets)
2022-03-18 17:36:57 +03:00
Vitaliy Snurnitsin
77adc1108c
openssl binary replaced with golang crypto/x509 library
2022-01-29 03:07:45 +03:00
Vitaliy Snurnitsin
9b1b34d4c4
logs, gofmt
2022-01-29 03:06:35 +03:00
strnk
0ee9be5744
Fix certs and ccd slave download API endpoints
2021-12-07 16:12:57 +01:00
strnk
f73626dd7b
Add configuration parameter for the easyrsa script path
2021-12-07 15:57:31 +01:00
strnk
633ad79d6a
Add base URL configuration to the webserver to support reverse-proxy setups
2021-12-07 15:44:52 +01:00
Ilya Sosnovsky
9873c2cb76
fixed a broken release
2021-11-29 11:34:34 +03:00
Dmitry Shurupov
53e9cb7835
Fixing env vars descriptions and names
2021-10-22 11:35:16 +07:00
Ilya Sosnovsky
ed71ed1537
envvar configuraion; arm build; docs fixes
2021-10-21 13:01:03 +03:00
Ilya Sosnovsky
8db6d93bcb
show client config in log only in verbose mode; actions changes
2021-10-15 07:54:24 +03:00
Ilya Sosnovsky
c1970c26e4
Lowercase protocol for remote from k8s api
2021-10-14 08:11:07 +03:00
Ilya Sosnovsky
77c0fbb778
Prepare for release 1.7.0
2021-10-05 18:09:29 +03:00
Andrii Veklychev
fa9022ee1b
add option to specify custom user template path
2021-07-22 01:44:04 +03:00
Ilya Sosnovsky
edaf13f557
renaming; fixes
2021-03-17 13:44:12 +03:00
Dmitry Shurupov
9629f51e76
Renaming to ovpn-admin
2021-03-17 16:05:37 +07:00
Ilya Sosnovsky
f735051916
small fixes
2021-03-15 11:35:12 +03:00
Ilya Sosnovsky
30bdc3243f
Fix template rendering bug
2021-03-10 18:02:23 +03:00
Ilya Sosnovsky
ece35822c1
Refactoring; docs; embeded frontend; fixes
2021-02-26 15:11:13 +03:00
Ilya Sosnovsky
6d6c35fb9a
bugfix for opvn status date layout
2021-02-20 18:46:30 +03:00
Ilya Sosnovsky
a1c0bb6b4b
Fix docs
2021-02-20 16:40:14 +03:00
Ilya Sosnovsky
3614ab6ba5
Additional password auth; Multiple mgmt interface usgae; Fixes; style changes;
2021-02-20 15:48:41 +03:00
Ilya Sosnovsky
bec0e738d1
Add passwd auth feature; Fixes; Some layout changes
2021-02-15 09:03:38 +03:00
Ilya Sosnovsky
0af5fc3622
Fix server certs expire metrics math
2020-11-27 12:00:03 +03:00
Ilya Sosnovsky
8d82c43fa2
Fix cert expire metrics math
2020-11-27 11:56:42 +03:00
Ilya Sosnovsky
bb257692af
Code refactoring to singleton; Added metrics
2020-11-27 10:23:59 +03:00
Ilya Sosnovsky
7df1ea3a0d
Bug fixes; Small changes for slave UI
2020-11-20 19:11:58 +03:00
Ilya Sosnovsky
bf37066475
Fixed slave server crashed issue if the master is unvailable
2020-11-19 20:08:55 +03:00
Ilya Sosnovsky
9f8098ab03
Addded master-slave mode for openvpn-admin
2020-11-17 20:48:26 +03:00
Ilya Sosnovsky
f3a7f1f869
Added persistence for revoked accounts filter
2020-11-03 19:32:37 +03:00
Ilya Sosnovsky
a65bda0f19
Added user connection verification; Added filter to auto hide revoked certs; Some fixes
2020-11-02 19:30:36 +03:00
Ilya Sosnovsky
6e9a553884
New design; New features
2020-10-29 13:50:19 +03:00
Ilya Sosnovsky
6ce657d587
temp 1
2020-10-15 19:12:31 +03:00
Vitaliy Snurnitsin
9f4c4e2c5c
Initial
2020-05-15 02:13:33 +03:00