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. Oct 30, 2019
  10. Oct 29, 2019
  11. Oct 24, 2019
  12. Sep 17, 2019
  13. Aug 27, 2019
  14. 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
  15. Jul 10, 2019
    • Benjamin Bertrand's avatar
      Fix sorting of items with some null stack_member · ab9b49b8
      Benjamin Bertrand authored
       '<' not supported between instances of 'NoneType' and 'int'
      
      Sorting worked if all stack_members were None, but not if some were null
      and some int.
      Fixed by converting None to Infinity (so None values are at the end of
      the list.
      
      JIRA INFRA-1112 #action In Progress
      ab9b49b8
    • 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
  16. Jun 13, 2019
  17. 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
  18. Apr 05, 2019
  19. Apr 03, 2019
  20. Apr 02, 2019
  21. Mar 18, 2019
    • Benjamin Bertrand's avatar
      Trigger AWX inventory update on database change · e000c2f0
      Benjamin Bertrand authored
      A job running in AWX prevents an inventory sync (of the same
      inventory). This restricts AWX to run only one job at a time as
      the inventory is always updated on launch.
      To prevent this issue, the inventory is updated from AWX when needed.
      
      - The update is triggered on any model modification that is used in the
      inventory (AnsibleGroup, Cname, Domain, Host, Network, NetworkScope)
      - For Interface, the inventory sync is triggered by the
      trigger_core_services function as it depends on it
      - The inventory update job is put on the "high" queue so that it takes
      precedence over all other jobs.
      
      JIRA INFRA-887 #action In Progress
      e000c2f0
    • Benjamin Bertrand's avatar
      Allow users to create VM/VIOC · 8f209774
      Benjamin Bertrand authored
      - users with access to the network can create VIOC
      - VM can be created only in the ALLOWED_VM_CREATION_DOMAINS
      
      JIRA INFRA-775
      8f209774
    • Benjamin Bertrand's avatar
      Fix link to AWX job id for workflow jobs · 0d0471b7
      Benjamin Bertrand authored
      Add awx_resource field to the task table.
      The field is None for local tasks (like excel file creation).
      It's the awx resource used to launch the job otherwise.
      Currently job or workflow_job.
      
      JIRA INFRA-886 #action In Progress
      0d0471b7
  22. 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
  23. Feb 28, 2019
  24. Feb 04, 2019
  25. 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
  26. 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
Loading