Skip to content
Snippets Groups Projects
  1. Feb 26, 2020
  2. Feb 24, 2020
  3. Feb 03, 2020
  4. Jan 28, 2020
  5. Dec 19, 2019
  6. Dec 18, 2019
  7. Dec 04, 2019
  8. Nov 26, 2019
    • Benjamin Bertrand's avatar
      Fix regexp for ICS id validation · 0887bc00
      Benjamin Bertrand authored
      Validation worked in the models because fullmatch is used but in the
      Regexp validators from wtforms, only match is called.
      
      The form validator didn't catch "AAA1100".
      Test added for this.
      
      JIRA INFRA-1569 #action In Progress
      0887bc00
  9. Aug 27, 2019
  10. Aug 22, 2019
    • Benjamin Bertrand's avatar
      Implement user access on network scope · a89b002f
      Benjamin Bertrand authored
      Replace previous implementation based on the domain.
      
      The domain can be changed per network but in practice we always use the
      same domain in a network scope.
      We currently have 9 network scopes but only 3 domains.
      Using the network scope gives us finer granularity in practice.
      
      JIRA INFRA-1228 #action In Progress
      a89b002f
  11. Jun 13, 2019
  12. May 10, 2019
    • Benjamin Bertrand's avatar
      Allow users to delete their host · a6811ba9
      Benjamin Bertrand authored
      - admin can delete any hosts
      - normal users can delete hosts they created
      
      Note that still only admin users can delete hosts via the API (more dangerous
      operation as a script could delete many hosts).
      
      JIRA INFRA-1018 #action In Progress
      a6811ba9
  13. Mar 18, 2019
  14. Mar 05, 2019
    • Benjamin Bertrand's avatar
      Remove tags and add is_ioc field to host table · f331b452
      Benjamin Bertrand authored
      Tags were basically only used for IOCs.
      Tags were linked to the interface (and not the host).
      But for IOC we assume it should always be the main (first) interface.
      
      Using a field on the host table will make it more obvious for users.
      
      Created a IOC dynamic group type, to create a group including all IOCs
      
      JIRA INFRA-862 #action In Progress
      f331b452
  15. Jan 29, 2019
    • Benjamin Bertrand's avatar
      Catch exception raised by Unique Validator · ce54e287
      Benjamin Bertrand authored
      The MAC field has both a Regexp and Unique validators.
      In wtforms, the validation doesn't stop on the first error (all
      validators are run).
      In case of invalid mac address, the Unique validator makes a request to
      the database that raises a DataError. This exception has to be catched.
      
      JIRA INFRA-777 #action In Progress
      ce54e287
  16. Jan 25, 2019
    • Benjamin Bertrand's avatar
      Fix case insensitive search · 67b2f815
      Benjamin Bertrand authored
      Search on keyword can be made case insensitive by using a normalizer.
      But some fields with type keyword include several words.
      They are only returned by entering all words. This is not what
      most users expect.
      
      It's better to use the "text" type by default (for text fields) and add
      an extra "keyword" field of type "keyword" for sorting.
      
      JIRA INFRA-770
      67b2f815
    • Benjamin Bertrand's avatar
      Fix test after layout update · b834dd31
      Benjamin Bertrand authored
      JIRA INFRA-763
      b834dd31
  17. Dec 10, 2018
    • Benjamin Bertrand's avatar
      Fix extra interface creation · 1f85ed9f
      Benjamin Bertrand authored
      Not sure why a tuple instead of network was returned...
      There must have been a comma at the end of the line due to copy/pasting
      and black converted that to a tuple.
      
      Added a test for the create_interface function.
      
      JIRA INFRA-697 #action In Progress
      1f85ed9f
  18. Nov 30, 2018
    • Benjamin Bertrand's avatar
      Fix test_create_host failure · 97844eba
      Benjamin Bertrand authored
      - create_host doesn't return 403 for user_lab but 200 because the form
        validation fails (the network_id is not part of the form choices)
      - caching disabled during tests
        the current_user could sometimes return a different username because of
        caching: the database is cleaned between each test, so different users
        can have the same id and an old user could be returned instead of the new
        one due to caching
      
      JIRA INFRA-578
      97844eba
    • Benjamin Bertrand's avatar
      Add extra fields to the API · e6494e47
      Benjamin Bertrand authored
      - add fqdn to host
      - add gateway to network
      - add netmask to interface
      - allow to pass recursive via the API (to expand interfaces in host)
      - add is_main property to interface (True if the interface is the main
        interface of the host)
      
      JIRA INFRA-640
      e6494e47
  19. Nov 27, 2018
  20. Nov 06, 2018
    • Benjamin Bertrand's avatar
      Make host/interface/cname unique · fc7ac34a
      Benjamin Bertrand authored
      - Host names are unique (no 2 hosts with same name)
      - A host name shall not conflict with a cname or interface (if not main
      interface)
      - Interface names are unique (no 2 interfaces with same name)
      - An interface shall not conflict with a cname or host (if not assigned
      host)
      - cnames are only unique by domain (2 cnames can have the same name if
      different domains)
      - A cname shall not conflict with a host or interface
      - An interface has to be linked to a host
      
      Validation is implemented at the model level.
      Some is also implemented at the form level as it gives nicer feedback,
      but not all as it's a bit more complex when it requires check on several fields.
      
      JIRA INFRA-245
      fc7ac34a
    • Benjamin Bertrand's avatar
      Make mac addresses unique by interface · 16ac3272
      Benjamin Bertrand authored
      - mac is now a column in the interface table (no link to the mac table)
      - mac column is unique (can't have 2 interfaces with the same mac)
      - the mac table is kept for the items
      
      JIRA INFRA-639
      16ac3272
  21. Oct 18, 2018
  22. Oct 11, 2018
    • Benjamin Bertrand's avatar
      Implement server side processing for network hosts · 3a2d05fa
      Benjamin Bertrand authored
      - switch to server side processing to retrieve network hosts
        (the table started to be bigger and takes time to load)
      - add full text search using elasticsearch
      
      Note that only the first IP is displayed in the host table (all
      interfaces were displayed before). Search can be performed on any
      interfaces.
      
      JIRA INFRA-595 #action In Progress
      3a2d05fa
  23. Oct 05, 2018
  24. Aug 08, 2018
  25. Jul 06, 2018
  26. Feb 09, 2018
  27. Jan 18, 2018
  28. Jan 05, 2018
  29. Jan 02, 2018
  30. Dec 21, 2017
Loading