Commit Graph

697 Commits

Author SHA1 Message Date
Jonathan Leung b507c56136 Show groups in member for API, CLI and TUI (#82)
Closes #69.

Tests are failing locally with many `assert os.geteuid() == 0` errors even on the master branch. I will add tests after I figure this out.

Reviewed-on: public/pyceo#82
Co-authored-by: Jonathan Leung <j23leung@csclub.uwaterloo.ca>
Co-committed-by: Jonathan Leung <j23leung@csclub.uwaterloo.ca>
2022-11-26 20:09:05 -05:00
Max Erenberg c0c9736593 Use the admin creds in the HTTPClient when necessary (#85)
Currently, ceod uses the Kerberos credentials of the client when making requests to other services. This requires the client to send delegated credentials. Unfortunately the NPM krb5 package appears to be unable to perform delegation. So we will use the admin credentials instead (when appropriate).

Reviewed-on: public/pyceo#85
Reviewed-by: Raymond Li <raymo@csclub.uwaterloo.ca>
Co-authored-by: Max Erenberg <merenber@csclub.uwaterloo.ca>
Co-committed-by: Max Erenberg <merenber@csclub.uwaterloo.ca>
2022-11-06 15:23:27 -05:00
Max Erenberg 1e452d10ce Assume program is Alumni if UWLDAP is missing data (#84)
This PR sets 'program=Alumni' for members who either do not have an 'ou' attribute in UWLDAP, or who do not have a UWLDAP entry at all.

Reviewed-on: public/pyceo#84
Reviewed-by: Raymond Li <raymo@csclub.uwaterloo.ca>
2022-11-01 21:02:05 -04:00
Max Erenberg 6a1fa81b82 merenber signs the packages
Something went wrong when e42zhang tried to upload the packages to the
mirror. reprepro kept on complaining that no distribution would accept
the new package. I modified the changelog, re-signed and re-uploaded
the packages, and that worked, so I'm still not sure what the problem
was.
2022-10-23 22:04:32 -04:00
Max Erenberg 6df1f4d459 Revert "Simplify packaging"
This reverts commit b4a1373559.
2022-10-23 22:00:48 -04:00
Edwin 2cf9e25b59 More fixes 2022-10-23 21:16:58 -04:00
Edwin 9ff3d850c9 Release 1.0.24 2022-10-23 19:50:38 -04:00
Edwin b4a1373559 Simplify packaging 2022-10-23 19:50:06 -04:00
Raymond Li dceb5d6572
Revert "#63: Add positions to CEO (#79)"
This reverts commit 3b7c89c925.
2022-10-13 18:12:36 -04:00
Jonathan Leung c30ca54752 Sort group member listing by WatIAM ID (#78)
Closes #74.

Co-authored-by: Jono <jowonowo@gmail.com>
Reviewed-on: public/pyceo#78
Reviewed-by: Raymond Li <raymo@csclub.uwaterloo.ca>
Co-authored-by: Jonathan Leung <j23leung@csclub.uwaterloo.ca>
Co-committed-by: Jonathan Leung <j23leung@csclub.uwaterloo.ca>
2022-10-13 14:58:50 -04:00
Nathan Chung 3b7c89c925 #63: Add positions to CEO (#79)
public/pyceo#63

Added the following positions:
* ext affairs lead
* marketing lead
* design lead
* events lead
* reps lead
* mods lead
* photography lead
* other

Signed-off-by: n4chung <n4chung@csclub.uwaterloo.ca>

Co-authored-by: n4chung <n4chung@csclub.uwaterloo.ca>
Reviewed-on: public/pyceo#79
Reviewed-by: Raymond Li <raymo@csclub.uwaterloo.ca>
Co-authored-by: Nathan Chung <n4chung@csclub.uwaterloo.ca>
Co-committed-by: Nathan Chung <n4chung@csclub.uwaterloo.ca>
2022-10-13 14:58:34 -04:00
Max Erenberg a2324090f3 update README instructions for curl 2022-10-12 01:56:54 -04:00
Max Erenberg f66f7c8f5a remove override_dh_systemd_start 2022-10-09 17:52:37 -04:00
Max Erenberg 3e5b829085 check if mail_local_addresses exists in UWLDAP entry 2022-10-07 08:13:59 -04:00
Rio Liu 57ba72ef26 Add support for using number in member terms renwewal API (#77)
Closed #75

Co-authored-by: Rio6 <rio.liu@r26.me>
Co-authored-by: Max Erenberg <merenber@csclub.uwaterloo.ca>
Reviewed-on: public/pyceo#77
Co-authored-by: Rio Liu <r345liu@csclub.uwaterloo.ca>
Co-committed-by: Rio Liu <r345liu@csclub.uwaterloo.ca>
2022-10-07 07:58:23 -04:00
Max Erenberg 779e35a08e fix shadowExpire deserialization 2022-09-10 16:01:40 -04:00
Raymond Li 3cc9b011c3 Use HTTPS in sample 2022-09-10 14:18:17 -04:00
Max Erenberg 2739c45aff use LDAP instead of NSS for authz (#73)
Closes #71.

Reviewed-on: public/pyceo#73
2022-09-09 17:26:54 -04:00
Max Erenberg 651f4fb702 add more logging (#72)
Closes #70.

Reviewed-on: public/pyceo#72
2022-09-09 14:42:43 -04:00
Max Erenberg 953bee549e fix tests 2022-09-05 17:34:28 -04:00
Max Erenberg 0334e7e667 fix email formatting bug in ClubWebHostingService 2022-09-05 15:37:35 -04:00
Max Erenberg 8decd3bc30 packaging for bullseye 2022-09-05 00:36:50 -04:00
Max Erenberg 8ad8271db1 Fix some bugs in ClubWebHostingService
* Don't read the value of an Apache directive unless we are sure
  it can only accept one argument
* Handle the case where a club's www directory is not readable
2022-09-04 23:22:28 -04:00
Raymond Li 4ebb9bb0a8
Release v1.0.22 2022-08-06 02:20:46 +00:00
Max Erenberg cfb5f77711 Disable inactive club sites (#68)
Closes #51.

An API argument called `remove_inactive_club_reps` was added so that we can dynamically control whether we want to remove inactive club reps or not. The default action is only to disable club websites without changing group membership.

Reviewed-on: public/pyceo#68
Co-authored-by: Max Erenberg <merenber@csclub.uwaterloo.ca>
Co-committed-by: Max Erenberg <merenber@csclub.uwaterloo.ca>
2022-07-22 23:51:59 -04:00
Max Erenberg 32b2dbb307 Allow addmember and removemember to accept multiple usernames (#67)
Closes #57.

Reviewed-on: public/pyceo#67
2022-07-02 11:26:38 -04:00
Max Erenberg dc412ef5cb implement renewal reminders (#61)
Closes #55.

Once this is merged and deployed, a cron job will be used to automatically run `ceo members remindexpire` at the beginning of every term.

Reviewed-on: public/pyceo#61
2022-06-30 20:02:06 -04:00
Max Erenberg dbb5bf1c8d packaging for bullseye 2022-06-09 10:10:31 -04:00
Max Erenberg 00c7d562ad fix URL bug in ContainerRegistryService 2022-06-09 09:07:12 -04:00
Max Erenberg 6fae2e4115 use quote_plus for signing CloudStack API requests 2022-06-09 01:23:04 -04:00
Max Erenberg 1fc432bb0f add hint to GetGroupResponseView 2022-06-05 10:20:22 -04:00
Max Erenberg 2678bdf16e packaging for bullseye and focal 2022-06-04 22:47:05 -04:00
Rio Liu 55c4b2151d Unsubscribe/resubscribe members when they're expired and renewed (#53)
Co-authored-by: Rio Liu <rio.liu@r26.me>
Co-authored-by: Rio6 <rio.liu@r26.me>
Co-authored-by: Max Erenberg <merenber@csclub.uwaterloo.ca>
Reviewed-on: public/pyceo#53
Co-authored-by: Rio <r345liu@localhost>
Co-committed-by: Rio <r345liu@localhost>
2022-06-02 02:06:49 -04:00
Max Erenberg 87470e1f3b don't reset password for local MySQL users 2022-05-23 23:01:09 -04:00
Max Erenberg b543f0eb0c Rewrite TUI (#52)
Closes #44.
Closes #47.
Closes #49.
Closes #50.

The TUI has been rewritten using urwid instead of asciimatics. The MVC pattern was also used to help increase organization and readability.

The mouse has been disabled, which allows users to easily copy text from the terminal.

Terms are now sorted when displayed, for both the CLI and the TUI.

Reviewed-on: public/pyceo#52
2022-05-22 14:09:46 -04:00
Max Erenberg 19496b4568 use mailman for mailman_host 2022-05-01 03:39:17 -04:00
Raymond Li 8da700472f Update 'ceod/model/templates/welcome_message.j2' 2022-03-18 21:35:32 -04:00
Max Erenberg 5197228d68 packaging for bullseye 2022-03-13 08:03:23 -04:00
Max Erenberg 9b8425f30e bump version 2022-03-12 21:26:55 -05:00
Max Erenberg f3c542208a send cloud warning emails to root 2022-03-12 16:09:19 -05:00
Max Erenberg 2487ab3668 update security section of docs 2022-03-12 15:50:42 -05:00
Max Erenberg 539de01c4d use admin GSSAPI creds for some API endpoints (#45)
Office staff currently can't sign up new members because ceod uses their GSSAPI credentials to authenticate to LDAP, and those credentials are insufficient.

This PR uses the ceod/admin credentials instead for signing up new members and for renewing existing memberships.

Reviewed-on: public/pyceo#45
2022-03-12 15:19:14 -05:00
Max Erenberg af4e342f3c Add ':z' to Docker volume mounts
On systems with SELinux enabled (e.g. Fedora), Docker/Podman cannot
access directories on the host by default.
2022-03-12 14:31:12 -05:00
Max Erenberg 00ced22950 add script to extend a term 2022-01-15 23:44:23 -05:00
Max Erenberg 5200259cfa allow loginShell to be optional 2022-01-10 01:32:26 -05:00
Max Erenberg 7d3e03e7fd increase retries for Postfix 2022-01-07 23:06:58 -05:00
Max Erenberg 71e6b474a4 packaging for bullseye 2022-01-05 01:32:58 -05:00
Max Erenberg 5351cf8aee Revert "don't subscribe club reps to csc-general"
This reverts commit fa05c4ad4a.
2022-01-05 01:28:05 -05:00
Max Erenberg 2ee9511337 set HOME environment variable in /etc/default/ceod 2022-01-05 00:54:40 -05:00
Max Erenberg feb16ee625 packaging for bullseye 2022-01-05 00:26:41 -05:00