Releases: uadmin/uadmin
Releases · uadmin/uadmin
v0.7.0 Catterpiller
Add GetSorted and FilterSorted
v0.6.2 Beetle
Added
- Support for getting static files when runnung
uadmin prepare
from modules instead of source folder uadmin prepare
now accepts a new parameter--src
that allows to overide the default behavior and get the static files from source instead of moduleuadmin prepare
takes go.mod into consideration to decide where to get the static files from. This allows developers to develop multiple applications that uses different version of uAdmin. If you use replace directive inside go.mod, the prepare tool will copy the files from the local folder as instructed in the replace directive.- Two new settings "Logo" and "FavIcon" to customize your application even further.
Changed
- Added
.DS_Store
and.vscode
to .gitignore
Deprecated
Removed
uadmin pubnlish
is removed. It used to be an internal development tool and was cool to have it runnig publicly for a while
Fixed
- dAPI didn't have docs for
method
and fixed some typos - Linting (So much linting)
Security
- The system reads two envirnment variables
UADMIN_USER
andUADMIN_PASS
for new deployments to create admin username and password. If these environment variables do not exist, uAdmin will user "admin" and "admin" for username and password.
v0.6.1 Beetle
Added
- Support for getting static files when runnung
uadmin prepare
from modules instead of source folder uadmin prepare
now accepts a new parameter--src
that allows to overide the default behavior and get the static files from source instead of moduleuadmin prepare
takes go.mod into consideration to decide where to get the static files from. This allows developers to develop multiple applications that uses different version of uAdmin. If you use replace directive inside go.mod, the prepare tool will copy the files from the local folder as instructed in the replace directive.- Two new settings "Logo" and "FavIcon" to customize your application even further.
Changed
- Added
.DS_Store
and.vscode
to .gitignore
Deprecated
Removed
uadmin pubnlish
is removed. It used to be an internal development tool and was cool to have it runnig publicly for a while
Fixed
- dAPI didn't have docs for
method
and fixed some typos - Linting (So much linting)
Security
- The system reads two envirnment variables
UADMIN_USER
andUADMIN_PASS
for new deployments to create admin username and password. If these environment variables do not exist, uAdmin will user "admin" and "admin" for username and password.
v0.6.0 Beetle
Added
- Support for getting static files when runnung
uadmin prepare
from modules instead of source folder uadmin prepare
now accepts a new parameter--src
that allows to overide the default behavior and get the static files from source instead of moduleuadmin prepare
takes go.mod into consideration to decide where to get the static files from. This allows developers to develop multiple applications that uses different version of uAdmin. If you use replace directive inside go.mod, the prepare tool will copy the files from the local folder as instructed in the replace directive.- Two new settings "Logo" and "FavIcon" to customize your application even further.
Changed
- Added
.DS_Store
and.vscode
to .gitignore
Deprecated
Removed
uadmin pubnlish
is removed. It used to be an internal development tool and was cool to have it runnig publicly for a while
Fixed
- dAPI didn't have docs for
method
and fixed some typos - Linting (So much linting)
Security
- The system reads two envirnment variables
UADMIN_USER
andUADMIN_PASS
for new deployments to create admin username and password. If these environment variables do not exist, uAdmin will user "admin" and "admin" for username and password.
v0.5.3 Atlas Moth
Changed
- Drop support for GO version 1.11 and 1.12
Deprecated
Removed
Fixed
- Fixed adding more than 10 items in dAPI
- Fixed saving of language not removing the previous default language
Security
v0.5.2 Atlas Moth
Bug Fixes:
- Added CSRF token to inlines form for deleting
- User was overwritten with old user on logout when using cache sessions
v0.5.1 Atlas Moth
[0.5.1] Atlas Moth - 2020-08-07
Added
Changed
- dAPI function
method
can return a value if the method called has a return. Note: if you have a return, you cannot use$next
to redirect.
Deprecated
Removed
Fixed
- Fixed false possitive SQL Injection in dAPI join.
- Fixed false detection in
customGet
for private fields of type[]struct
as an M2M field. - Typo in uadmin command line tool.
Security
- CSRF protection in dAPI in functions:
add
,edit
,delete
andmethod
. - Tamplate function
CSRF
implemented inuadmin.RenderHTML
anduadmin.RenderHTMLMulti
. It returns anti CSRF token. uadmin.IsAuthenticated
recognizesnouser
sessions. These sessions are for users who are not authenticated in the system. To set a session cookie, userSetSessionCookie
uadmin.SetSessionCookie
receives a pointer to a session and sets the session cookie in a secure way. If you pass anil
to the session, the session will be created as anouser
session which is still a session but gives the user to access as an authenticated user. These sssions can be used to protect against CSRF attacks in case you have a public API.
v0.5.0 Atlas Moth
We are happy to announce the release of version 0.5.0 under the code name "Atlas Moth"
Change Log
[0.5.0] Atlas Moth - 2020-08-02
Added
- PreQuery and PostQuery handler for dAPI
method
command in dAPI to run model's methods- Windows support for syslog
$preload
in dAPI- RenderHTMLMulti to render nested templates
$choices
in schema command in dAPI to preload FK and M2M choices- Support for golang Modules
- Added search in dAPI using
$q
- Reset button for ABTest
- Added delete functionality for file and image from UI and dAPI
- dAPI schema now translates the model based on your language cookie
- dAPI now supports M2M in add and delete functions
$distinct
in dAPI read function
Changed
- Droping support for Golang 1.10
- Changed Excel export library to excelize
- GetDefaultLanguage and GetActiveLanguages are public now
- TranslateSchema is public now
- Model method
GetImageSize() (int, int)
to customize image size
Deprecated
Removed
Fixed
- Fixed bug with dAPI __ filters
- Fixed last insert ID in MySQL
- Fixed dAPI clearing file and image fields
- Fixed a bug with Aggregate column
- HideInDashboard works for existing models
- DashboardMenu changes icon size to 128X128 pixels
Security
- PasswordAttempts and PasswordTimeout settings to protect limit invalid password attempts
- CheckRateLimit limits whole IP instead of IP and port combination
- CSRF protection in UI and dAPI and public function
CheckCSRF
- SQL injection checking in dAPI, export and public function
SQLInjection
- Added AllowedHosts setting to limit the domains/IPs for password reset
- Link fields get
x-scrf-token
added automatically in UI session
cookie uses SameSite=SameSiteStrictMode- Prevent navigation attacks in Theme setting and file upload
0.4.0
[0.4.0] - 2019-07-02
Added
- Implemented request rate limits to protect from DDoS
- Implemented AB/Testing system
- Implemented dAPI which is an API to access model data
- Implemented CacheSessions and CachePermissions for direct in memory access to sessions and permissions
- Implemented a Metrics system using the following function:
SetMetric
,IncrementMetric
,TimeMetric
andNewMetric
- Trail can log to syslog
- HTTP requests can be logged to syslog
- Added
uadmin.Handler(func(http.ResponseWriter, *http.Request)) func(http.ResponseWriter, *http.Request)
to enable syslog for HTTP requests - Add OptimizeSQLQuery mode
- Handle ctrl+F in Home and List view to focus on the search field instead of the native search
- Added
stringer
meta tag - Added two API end points
/api/get_models
and/api/get_fields?m={MODEL_NAME}
Changed
- Changed
Login(*http.Request, string, string) (*User, bool)
toLogin(*http.Request, string, string) (*Session, bool)
- Changed
Login2FA(*http.Request, string, string, string) *User
toLogin2FA(*http.Request, string, string, string) *Session
- Changed
HTMLContext
toRenderHTML
that has support for templates functions - URL filter place holders are capital letters
{USERNAME}
,{USERID}
and{NOW}
- Search is allowed for
list_exclude
fields. - Changed the search API path to
/api/search/
- Make static handler a public function
uadmin.StaticHandler(http.ResponseWriter, *http.Request)
- Added three new level to
Trail
for compatibility with syslog which areCritical
,Alert
andEmergency
- If database doesn't exist for mysql, uAdmin will try to create a new database.
Deprecated
User.HasPermission
will be private starting0.6.0
UserGroup.HasPermission
will be private starting0.6.0
Removed
Fixed
- Fixed image crop modal conflict in list view with delete modal and add it to form and inlines
- Fixed FK in approvals
- Remove required from fields with pending approval
- Support filtering/searching by NULL value for
time.Time
pointer - Fixed filtering by FK
Security
- Restrict access to inlines based on user model permissions
- Search API escapes HTML results
0.2.0
[0.2.0] - 2019-06-20
Added
- Global Variable:
- Settings model which can be used system wide to keep application settings.
- GetSetting function to read settings from the settings model.
- User.GetAccess function can evaluate the user's permission to a model using user level and group level and return a UserPermission instance.
- ErrorHandleFunc: A function that can be passed for handling errors system wide that gets called when Trail is called.
- AllowedIPs: is a list of allowed IPs to access uAdmin interfrace
- BlockedIPs: is a list of blocked IPs from accessing uAdmin interfrace
- RestrictSessionIP: restricts access to the system if the IP of the user changes after login
- RetainMediaVersions: is to allow the system to keep files uploaded even after they are changed
Changed
- Forgot password now sends HTML emails.
- GetString function can return the name of a static list item.
Deprecated
Removed
Fixed
- Bug fix for read only fields for new and edit.
- Model names in dashboard are generated using proper plural function instead of just adding "s"