1. 09 Mar, 2021 1 commit
  2. 08 Mar, 2021 2 commits
  3. 05 Mar, 2021 1 commit
  4. 26 Feb, 2021 2 commits
  5. 25 Feb, 2021 19 commits
  6. 22 Feb, 2021 1 commit
    • Xavier Thompson's avatar
      slapproxy: Prefix forwarded requests with id · d3984193
      Xavier Thompson authored
      When slapproxy forwards a request to an external master it is seen as
      coming from the slapproxy and the original requester's id is lost.
      
      This means forwarded requests from different requesters can collide.
      
      e.g. two partitions request a frontend and when the second request is
      handled the external master updates the first frontend to redirect to
      the second partition instead of creating a second frontend.
      
      To avoid collisions, the id of the requester as seen in the slapproxy
      is prefixed to the instance name (partition reference) in the request:
      
      - case 1: requester is embedded partition => prefix with partition id
          e.g. 'myinstance' -> 'slappart0_myinstance'
      
      - case 2: requester is user => prefix with 'user'
          e.g. 'myinstance' -> 'user_myinstance'
      
      See merge request nexedi/slapos.core!282
      d3984193
  7. 15 Feb, 2021 1 commit
    • Łukasz Nowak's avatar
      slapos_web_frontend_selector: Adapt to new naming approach · c25b0c63
      Łukasz Nowak authored
      There is no reason to name regions so explicitly (like France or US), just
      use generic and understandable region name (like Europe or North America).
      
      Chinese endpoints are named via their operating telecoms, as this is like
      region (latency, speed).
      c25b0c63
  8. 09 Feb, 2021 6 commits
  9. 04 Feb, 2021 1 commit
    • Jérome Perrin's avatar
      proxy: don't set app logger level · ae5b407e
      Jérome Perrin authored
      logging is configured globally in SlapOSApp.configure_logging and:
       - if logging to file is enabled, it is logged with maximum level
       - logging on the console depends on --quiet / --verbose command line flags
      
      Default log level of this logger was DEBUG, which is just fine: the logger
      emit all messages and the file/console handler decide to output them or not
      
      Because we configure logger after Flask initialize its own logging, for
      Flask >= 1.1.2, we remove Flask logger as described in
       https://flask.palletsprojects.com/en/1.1.x/logging/#removing-the-default-handler
      Since this is internal API which doest not exist on old version of Flask, we
      adjust requirements to require a recent version of Flask.
      ae5b407e
  10. 03 Feb, 2021 1 commit
  11. 02 Feb, 2021 3 commits
  12. 29 Jan, 2021 2 commits