do you happen to know how to "reset" the mechanism...
# docker
j
do you happen to know how to "reset" the mechanism that sets the admin password from
password.txt
? since my container image build-time warmup needs to query the admin (with a temporary password) but then needs a different password at container run-time, i've had trouble getting it to pick up that runtime admin password. IIRC, once lucee does the
password.txt
thing, it won't do it again.
b
@jamiejackson Did you try just removing the password attributes from the XML config files?
I'm fairly sure Lucee just looks for the password file if there is none set in the XML.
Keeping in mind, there is a server XML file and a web XML file for every web context
j
i'm pretty sure i was blanking out the temporary password in the xml after the build-time warmup. maybe i should peruse the lucee code to see what conditions trigger it to look for the
password.txt
b
Well, you can try that-- or try my suggestion 😉
Which is to fully remove those attributes in the XML (not just setting them to empty strings/blanks)
I'm 90% sure that's all you need to do
I say that because adding those attributes is essentially all that CFConfig does!
j
Keeping in mind, there is a server XML file and a web XML file for every web context
right, that might be what i missed. i probably missed the server one.
i couldn't get this to work 100% but i'm simplifying things so that i don't need to query the lucee admin at build time. that keeps me from having to _re_set a password later on; instead, i do it just once, at run-time (the usual place to do it, once).
s
@jamiejackson do you use commandbox? dotenv lets you put the admin password in there and it works every time
b
No, he's not 😉
☝️ 1
j
one day, i might
s
only thing I can think of is to replace lucee-server.xml with one that has blank hspw and salt but you'd have to restart the server etc as well
j
yeah, i did that. and not just blank, but the attribute(s) need to be absent, not just blank values, due to a (reported) bug.
j
I had a run around to doing this and was editing hte wrong lucee-server.xml to delete the an existing password on a new spin up.