Skip to content
Snippets Groups Projects
  1. Mar 17, 2020
    • Benjamin Bertrand's avatar
      Fix get_hosts for normal users · 811e936a
      Benjamin Bertrand authored
      The SQL query to filter hosts on sensitive networks was incorrect
      because of the join on Interfaces. There can be several interfaces per
      host.
      DISTINCT added to return only the proper number of hosts.
      
      JIRA INFRA-1888 #action In Progress
      811e936a
  2. Mar 09, 2020
    • Benjamin Bertrand's avatar
      Add DELETE method on all API endpoints · 3f2391c7
      Benjamin Bertrand authored
      This is for admin only.
      Note that deleting a network with existing hosts is not allowed.
      Same for domain, network scope...
      Will make testing csentry-api easier by allowing to reset the db during
      tests.
      
      JIRA INFRA-1853 #action In Progress
      3f2391c7
  3. Mar 05, 2020
  4. Feb 03, 2020
  5. Jan 28, 2020
  6. Dec 19, 2019
  7. Dec 04, 2019
  8. Oct 29, 2019
  9. Sep 17, 2019
  10. Jul 10, 2019
    • Benjamin Bertrand's avatar
      Add extra items info to hosts json model · 0318858e
      Benjamin Bertrand authored
      Linked items are by default returned as a list of ICS id.
      When recursive is True, a list of {ics_id, serial_number, stack_member}
      is returned instead.
      
      Items are always returned sorted by stack_member or ics_id when
      stack_member is null.
      
      Allow to add the serial_number and stack_member to the Ansible variables
      in csentry dynamic inventory. Useful for switches.
      
      JIRA INFRA-1111 #action In Progress
      0318858e
  11. Apr 03, 2019
  12. Apr 02, 2019
  13. 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
  14. Feb 28, 2019
  15. Feb 04, 2019
  16. Nov 30, 2018
    • 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
  17. Nov 27, 2018
  18. 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
  19. Sep 28, 2018
  20. Aug 08, 2018
  21. Jul 31, 2018
  22. Jul 27, 2018
  23. Jul 19, 2018
  24. Jul 17, 2018
  25. Jul 13, 2018
  26. Jul 12, 2018
    • Benjamin Bertrand's avatar
      Add ansible_group table · 5e76c0b1
      Benjamin Bertrand authored
      - add ansible_groups_hosts_table for many-to-many relationship between
      groups and hosts
      - add new api endpoint /network/groups
      
      JIRA INFRA-412
      5e76c0b1
  27. Jul 11, 2018
  28. Jul 06, 2018
  29. May 09, 2018
  30. Apr 23, 2018
    • Benjamin Bertrand's avatar
      Add stack_member field to item · ce031db6
      Benjamin Bertrand authored
      This is to be used for stack of switches only
      
      - a stack_member is linked to an host (device_type has to be "Switch")
      - a stack_member is an integer between 0 and 9 (included) or can be None
      - the couple (host_id, stack_member) must be unique
      
      JIRA INFRA-267
      ce031db6
  31. Apr 20, 2018
  32. Apr 10, 2018
  33. Apr 06, 2018
  34. Mar 14, 2018
Loading