3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-01 16:39:27 +01:00
Commit Graph

433 Commits

Author SHA1 Message Date
Pragmatic Software
828892726d
doc/Factoids.md: Fix typo 2024-11-07 02:41:07 -08:00
Pragmatic Software
a262139fd2
Factoids: require locked to be exactly 1 to invoke commands with required_caps
This allows us to set `locked` to a value greater than `1` to lock a factoid WITHOUT
allowing invocation of `required_caps` commands. This lets us safely lock a factoid
that has unrestrained `$args` or variables.
2024-11-07 01:45:15 -08:00
Pragmatic Software
9ebc77f4da
Replace preserve_whitespace metadata with condense-whitespace
PBot now preserves whitespace by default. The `preserve_whitespace`
metadata field is now redundant. It has now been replaced with
`condense-whitespace`, which when set to a true value will collapse
adjacent whitespace to a single space.
2024-11-04 00:25:36 -08:00
Pragmatic Software
4345b0a75c
Core/Factoids: update edit-by when factadd -f; add edited to top20 2024-10-23 21:36:21 -07:00
Pragmatic Software
1e668a6012
Update doc/Commands.md and factoids 2024-07-18 16:11:05 -07:00
Pragmatic Software
abbe785911
doc/QuickStart.md: minor tweak to login section 2024-06-23 12:27:56 -07:00
Pragmatic Software
6722fd7f8d
Store user passwords as salted hash digests
This was way overdue. User passwords are no longer stored as cleartext.

When PBot is restarted after applying this commit, all stored passwords will
be converted to salted hash digests.

The `useradd`, `userset` and `my` commands will now hash passwords.

Why did it take me so long to finally get around to hashing passwords
properly, you might ask. The reason why this wasn't done sooner is because
all of my users used hostmask-based `autologin`. The passwords that PBot
randomly generated were ignored and never used.

I do regret that it took me so long to get around to this, for those of you
who might be using custom passwords instead of hostmask-based `autologin`.
2024-06-22 22:38:15 -07:00
Pragmatic Software
0848cfcdd4
doc/VirtualMachine.md: minor tweak to VSOCK section 2024-05-26 17:46:47 -07:00
Pragmatic Software
9ef521309a
pbot-vm: update documentation about how to start PBot VM after reboot 2024-04-10 13:09:58 -07:00
Pragmatic Software
3b36894403
doc/VirtualMachine.md: clarify that VMs can be hosted on remote physical machines 2024-04-10 04:11:24 -07:00
Pragmatic Software
920a4f9712
doc/VirtualMachine.md: Vagrant is no longer experimental 2024-04-10 01:39:21 -07:00
Pragmatic Software
17b69f04ff
pbot-vm: massive refactor
* replace heartbeat with health-check
  * instead of steady stream of newlines every 5s, now awaits input
    and responds with `vmstat` output

* more reliably use host/config/vm-exec.json to get libvirt domain name
  for snapshot-revert, server address, serial ports, vagrant setting, etc

* use iptables/nftables to disable networking
  * added guest/bin/disable-network-[iptables,nftables]
  * added guest/bin/enable-network-[iptables,nftables]

* replace ugly ___OUTPUT___ texts in sh, bash, ksh, zsh languages

* documentation updates and tweaks
2024-04-10 01:21:18 -07:00
Pragmatic Software
24962935fa
applets/urban: sort by thumbs-up by default 2024-04-07 17:18:34 -07:00
Pragmatic Software
a3ab27dbac
pbot-vm: documentation tweaks 2024-04-04 12:23:45 -07:00
Pragmatic Software
2547f035a1
pbot-vm: add experimental Vagrant provisioning 2024-04-04 03:41:58 -07:00
Pragmatic Software
518b51f060
Minor documentation edits 2024-03-31 22:35:43 -07:00
Pragmatic Software
09aed30893
pbot-vm: add PBOTVM_ADDR env var to set address of vm-server 2024-03-31 17:36:36 -07:00
Pragmatic Software
b40955a16e
Add Dockerfile and Docker guide 2024-03-31 15:16:25 -07:00
Pragmatic Software
0829265ef8
pbot-vm: setup-guest auto-detects OS/distro and runs provisioning scripts 2024-03-30 19:41:50 -07:00
Pragmatic Software
f8a739a688
doc/VirtualMachine.md: fix typo 2024-03-27 14:35:21 -07:00
Pragmatic Software
59090b39e7
pbot-vm: update VirtualMachine.md with improved PTY console install instructions and misc tweaks 2024-03-27 14:21:32 -07:00
Pragmatic Software
59b7ee7115
docs: Fix broken link; describe user-capability groups as "roles" 2023-08-19 16:44:26 -07:00
Pragmatic Software
38a0b8705f doc/Commands: add example of nesting pipes and substitutions 2023-05-20 09:39:49 -07:00
Pragmatic Software
bc2b610031 docs/AntiAbuse: update automatic join-flood enforcement section 2023-05-07 15:04:42 -07:00
Pragmatic Software
ef03b6c090 docs/AntiAbuse: update automatic join-flood enforcement section 2023-05-07 14:47:46 -07:00
Pragmatic Software
9b1435c411 doc/Registry: add antiflood.join_flood_channel item to table 2023-05-07 14:35:24 -07:00
Pragmatic Software
62a69c16c3 docs/AntiAbuse: update automatic join-flood enforcement section 2023-05-07 14:31:01 -07:00
Pragmatic Software
620ebe0ecb doc/VirtualMachine: add QEMU instructions 2023-05-07 14:23:27 -07:00
Pragmatic Software
2c36f624b2 docs/AntiAbuse: clarify that #stop-join-flood may be shared 2023-05-07 13:30:17 -07:00
Pragmatic Software
a14f810a78 Update docs 2023-05-07 13:26:31 -07:00
Pragmatic Software
d75cf1d0ad Update docs 2023-05-07 13:22:37 -07:00
Pragmatic Software
e6149cc35c doc/Admin.md: ban/unmute: add examples 2023-05-04 21:18:25 -07:00
Pragmatic Software
db9752c6c0 doc/Admin.md: update ban/mute usage 2023-05-04 21:12:49 -07:00
Pragmatic Software
b04c06f396 Refactor ban/unmute commands 2023-05-04 16:03:24 -07:00
Pragmatic Software
92672c19d3 doc/Commands: add preserve_whitespace to metadata list 2023-02-13 16:32:09 -08:00
Pragmatic Software
7a6a150067 Begin refactoring message-history tracking 2023-01-22 07:36:11 -08:00
Pragmatic Software
178deadb35 Update docs for the c99/c11/c23 commands 2022-12-06 13:00:03 -08:00
Pragmatic Software
0c22896f66 doc/QuickStart.md: clarify more about why cloning data-directory is important 2022-09-06 23:20:36 -07:00
Pragmatic Software
a98a0fa0fb Fix links 2022-03-26 21:05:58 -07:00
Pragmatic Software
619ff86a94 Rename compiler factoid to vm-client 2022-02-14 16:47:46 -08:00
Pragmatic Software
d7390c31a4 doc/VirtualMachine.md: fix minor typos 2022-02-14 16:38:37 -08:00
Pragmatic Software
3cfedcf3b8 Rename compiler_vm to pbot-vm and other misc applet updates 2022-02-14 16:33:29 -08:00
Pragmatic Software
1326b0ac5f compiler_vm: major refactor to support VM sockets (AF_VSOCK)
VM socket communication is superior to VM serial communication in
every way. Unfortunately at this time only Linux supports them.
Fortunately, that's 99% of PBot's userbase.

If you're not using Linux or if you're using an older Linux that
does not support VM sockets, the PBot VM scripts will gracefully
fallback to using the serial connection. You may explicitly
disable VM socket connection attempts by setting PBOTVM_CID=0.
2022-02-12 16:06:04 -08:00
Pragmatic Software
e217fb15d5 doc/VirtualMachine.md: simplify reboot procedure 2022-02-10 16:54:55 -08:00
Pragmatic Software
64c1863f05 doc/VirtualMachine.md: document env overrides for add-serial 2022-02-10 16:37:39 -08:00
Pragmatic Software
d2269a3ca6 compiler_vm: more refactoring to prepare to handle multiple connections 2022-02-10 10:58:56 -08:00
Pragmatic Software
5fc4b9a6dd doc/VirtualMachine.md: remove io=native from disk to speed up snapshots 2022-02-08 12:16:09 -08:00
Pragmatic Software
f9afda0580 doc/VirtualMachine.md: fix env table 2022-02-06 20:08:14 -08:00
Pragmatic Software
0a856e2c18 doc/VirtualMachine.md: remove cache=none 2022-02-06 20:05:33 -08:00
Pragmatic Software
7916930816 compiler_vm: various host improvements
* VM scripts can now be configured via environment variables:

  PBOTVM_DOMAIN, PBOTVM_TIMEOUT, PBOTVM_SERVER, PBOTVM_SERIAL,
  PBOTVM_HEART, PBOTVM_NOREVERT
2022-02-06 20:01:56 -08:00