1. 12 Sep, 2022 1 commit
  2. 22 Aug, 2022 1 commit
  3. 08 Feb, 2022 1 commit
    • Kevin Morris's avatar
      fix: support multiple SSHPubKey records per user · 4c14a10b
      Kevin Morris authored
      
      
      There was one blazing issue with the previous implementation regardless
      of the multiple records: we were generating fingerprints by storing
      the key into a file and reading it with ssh-keygen. This is absolutely
      terrible and was not meant to be left around (it was forgotten, my bad).
      
      Took this opportunity to clean up a few things:
      - simplify pubkey validation
      - centralize things a bit better
      
      Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
      4c14a10b
  4. 18 Jan, 2022 1 commit
  5. 14 Jan, 2022 1 commit
  6. 08 Jan, 2022 1 commit
  7. 29 Nov, 2021 1 commit
  8. 03 Oct, 2021 1 commit
    • Kevin Morris's avatar
      feat(FastAPI): added /requests (get) route · 99482f99
      Kevin Morris authored
      Introduces `aurweb.defaults` and `aurweb.filters`.
      
      `aurweb.filters` is a location developers can put their additional
      Jinja2 filters and/or functions. We should slowly move all of our
      filters over here, where it makes sense.
      
      `aurweb.defaults` is a new module which hosts some default constants
      and utility functions, starting with offsets (O) and per page values
      (PP).
      
      As far as the new GET /requests is concerned, we match up here to
      PHP's implementation, with some minor improvements:
      
      Improvements:
      
      * PP on this page is now configurable: 50 (default), 100, or 250.
          * Example: `https://localhost:8444/requests?PP=250`
      
      Modifications:
      
      * The pagination is a bit different, but serves the exact same purpose.
      * "Last" no longer goes to an empty page.
          * Closes: #14
      
      
      
      Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
      99482f99
  9. 31 Aug, 2021 2 commits
    • Kevin Morris's avatar
      Eradicate the `dedupe_qs` filter · 210e459b
      Kevin Morris authored
      
      
      The new `extend_query` and `urlencode` filters are way cleaner ways
      to achieve what we did with `dedupe_qs`.
      
      Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
      210e459b
    • Kevin Morris's avatar
      aurweb.util: add extend_query and to_qs helpers · a114bd3e
      Kevin Morris authored
      
      
      The first addition, extend_query, can be used to take an existing
      query parameter dictionary and inject an *additions as replacement
      key/value pairs.
      
      The second, to_qs, converts a query parameter dictionary to
      a query string in the form "a=b&c=d".
      
      These two functions simplify and make dedupe_qs and quote_plus more
      efficient in terms of constructing custom query string overrides.
      
      Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
      a114bd3e
  10. 26 Jun, 2021 1 commit
  11. 19 Jun, 2021 3 commits