File tree Expand file tree Collapse file tree 3 files changed +24
-1
lines changed
src/mxmake/topics/applications Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 1.1.0 (unreleased)
4+
5+ - Feature: Add target ` zope-adduser ` to create an emergency user.
6+
37## 1.0 (2025-02-11)
48
59- Chore: Add release workflow.
Original file line number Diff line number Diff line change 11[project ]
22name = " mxmake"
33description = " Generates a Python project-specific Makefile by using an extensible library of configurable Makefile snippets."
4- version = " 1.0 "
4+ version = " 1.1.0.dev0 "
55keywords = [" development" , " deployment" , " make" ]
66authors = [
77 {name = " MX Stack Developers" , email = " dev@bluedynamics.com" }
Original file line number Diff line number Diff line change 3737# :[setting.ZOPE_SCRIPTNAME]
3838# :description = script to run
3939# :
40+ # :[target.zope-adduser]
41+ # :description = Adds an [emergency user](https://zope.readthedocs.io/en/latest/zopebook/Security.html#zope-emergency-user) to Zope.
42+ # : This is an user with the Manager role created in the Zope application roots user folder!
43+ # : This is not meant to do user management, but to get access to a Zope site if all other passwords are gone.
44+ # : The user name must not exist already in the application roots user folder.
45+ # : ZOPE_USER_NAME and ZOPE_USER_PASSWORD should not be set in the Makefile, but passed in as environment variables.
46+ # : Example: `make ZOPE_USER_NAME=emergency ZOPE_USER_PASSWORD=verysecret adduser`
47+ # :
48+ # :[setting.ZOPE_USER_NAME]
49+ # :description = user name to create
50+ # :
51+ # :[setting.ZOPE_USER_PASSWORD]
52+ # :description = user name to create
53+ # :
4054# :[target.zope-dirty]
4155# :description = Touches the configuration file to force a rebuild of the Zope instance.
4256# :
@@ -85,6 +99,11 @@ zope-runscript: $(ZOPE_RUN_TARGET)
8599 @echo " Run Zope/Plone Console Script $( ZOPE_SCRIPTNAME) in $( ZOPE_INSTANCE_FOLDER) "
86100 @zconsole run " $( ZOPE_INSTANCE_FOLDER) /etc/zope.conf" $(ZOPE_SCRIPTNAME )
87101
102+ .PHONY : zope-adduser
103+ zope-adduser : $(ZOPE_RUN_TARGET )
104+ @echo " Run Zope addzopeuser to create an emergency user '$( ZOPE_USER_NAME) ' with role 'Manager'"
105+ @addzopeuser -c " $( ZOPE_INSTANCE_FOLDER) /etc/zope.conf" $(ZOPE_USER_NAME ) $(ZOPE_USER_PASSWORD )
106+
88107.PHONY : zope-dirty
89108zope-dirty :
90109 @touch ${ZOPE_CONFIGURATION_FILE}
You can’t perform that action at this time.
0 commit comments