An error occurred fetching the project authors.
  1. 25 May, 2020 1 commit
  2. 22 May, 2020 1 commit
    • Jérome Perrin's avatar
      Proxy: Forward requests as partition and use it in standalone · e0b4339e
      Jérome Perrin authored
      The idea is to make it possible while embedding SlapOS in an existing partition to configure that some requests are forwarded to the master of the partition and to make these requests as the partition - so that when this partition is destroyed all other partitions from the embedded partitions are destroyed.
      
      A bit more integration in slapos is still needed, but is intended to be used in theia (and why not webrunner):
      
      At the beginning theia's instance  looks like this:
      
      ![screenshot of theia hosting subscription on slapos master, with the default 3 partitions](/uploads/9a297dbbae49996fb7ee69e89ea75da1/image.png)
      
      after an ERP5 instance is requested in theia's embedded slapos, the partition requests are forwarded as this partition and appear here, as requested by theia:
      
      ![screenshot of theia hosting subscription on slapos master, frontend partitions requested by ERP5 appears as requested by theia](/uploads/37b8b30ca117a1251fc2bd099a5dac82/image.png)
      
      This can also allow transparent integration, because the partition credentials are known by the partition, unlike the user credentials.
      
      See merge request !218
      e0b4339e
  3. 20 May, 2020 8 commits
  4. 19 May, 2020 1 commit
  5. 18 May, 2020 1 commit
  6. 15 May, 2020 4 commits
  7. 14 May, 2020 5 commits
  8. 12 May, 2020 4 commits
  9. 11 May, 2020 3 commits
    • Jérome Perrin's avatar
      slap/standalone: support setting multi-master in slapos.cfg · 4825a8c4
      Jérome Perrin authored
      This allow to use standalone slapos with some requests being forwarded
      to another slapos master. The intended use case is to make have frontend
      requests forwarded to "real" slapos master when embedding slapos in
      theia or slaprunner.
      4825a8c4
    • Jérome Perrin's avatar
      slapos/proxy: support forwarding requests as a partition · c755cba8
      Jérome Perrin authored
      In SlapOS, both users or partitions can requests partitions. With the
      multimaster support of slapos proxy, all requests where made as a user,
      but in the case of recursive slapos - where a partition from the "outer"
      slapos includes an "inner" slapos, it makes sense to forward partitions
      requests as the partition in the "outer" slapos - this way when this
      partition is destroyed all partitions that might have been requested are
      also destroyed.
      
      To request as partition, the multi-master entry must define two extra
      keys:
       - computer, that can be optained by $${slap-configuration:computer}
      from instance buildout
       - partition, that can be optained by $${slap-configuration:partition}
      
      When these are not set, the request will be made as a user, like it was
      the case before.
      
      We also change the test to unset SLAPGRID_INSTANCE_ROOT because this
      implementation has side effect - the environment variable is set and
      never unset. Without this, test fail when running the full test suite
      because a previous test was leaking SLAPGRID_INSTANCE_ROOT. This is
      definitely something we'll have to improve later.
      c755cba8
    • Jérome Perrin's avatar
      slapos/proxy: use slapos API when forwarding request · 8f3a7989
      Jérome Perrin authored
      Eventhough implementation might be a bit more efficient is we use the
      low level API, we probably don't need performance here and it's easier
      to use the request API
      8f3a7989
  10. 08 May, 2020 6 commits
  11. 07 May, 2020 2 commits
  12. 06 May, 2020 2 commits
  13. 05 May, 2020 2 commits