1. 14 Aug, 2018 2 commits
  2. 03 Aug, 2018 1 commit
    • Vladimír Čunát's avatar
      lua cache bindings: error out if cache isn't open yet · b1a16801
      Vladimír Čunát authored
      The catch is that during configuration file processing,
      no cache is open (yet), as kresd can't know if the config
      does open it in some later part (with non-default path or size).
      Now we just throw an error.  Exceptions:
       - cache.open() and cache.backends(), of course :-)
       - cache.ns_tout() - not required, it's not really inside cache
       - cache.close() - it sounds reasonable to allow "closing a closed cache"
      
      This immediately caught a typo in cache metatable.
      b1a16801
  3. 16 Jul, 2018 1 commit
  4. 30 May, 2018 1 commit
    • Marek Vavruša's avatar
      daemon: allow per-request variables in Lua · 14de9110
      Marek Vavruša authored
      The handlers in Lua can now store per-request variables that are automatically
      GC'd when the request is finished. This is useful for stateful modules,
      such as DNS64 that uses internal option flags for state tracking.
      
      The layers can now get a variable table like so:
      
      ```
      local vars = kres.request_t(r):vars()
      vars.hello = true
      ```
      
      The variables are persisted between different layers for each request.
      14de9110
  5. 20 Apr, 2018 1 commit
  6. 12 Apr, 2018 1 commit
  7. 28 Mar, 2018 3 commits
  8. 01 Mar, 2018 1 commit
    • Vladimír Čunát's avatar
      map_t, set_t: unify memory allocation to mm_* · f821e688
      Vladimír Čunát authored
      We use the knot style everywhere else; this was very similar and yet
      different, so really annoying to me.  In the long term we might better
      migrate to qp-tries from knot, but the API differs, so it's delayed...
      f821e688
  9. 22 Feb, 2018 1 commit
    • Vladimír Čunát's avatar
      map_t, set_t: unify memory allocation to mm_* · a159bab9
      Vladimír Čunát authored
      We use the knot style everywhere else; this was very similar and yet
      different, so really annoying to me.  In the long term we might better
      migrate to qp-tries from knot, but the API differs, so it's delayed...
      
      (cherry picked from map-alloc - commit b1b8157b94fb41)
      a159bab9
  10. 30 Jan, 2018 1 commit
  11. 23 Jan, 2018 1 commit
    • Vitezslav Kriz's avatar
      keyfile argument distiguish managed and unmanaged mode · 6c2db2b5
      Vitezslav Kriz authored
      Arguments --keyfile, -k for managed mode
      and
      --keyfile-ro, -K for unmanaged (readonly) mode.
      
      Automatic setting based on the file permission is removed because it was
      confusing and could easily lead to state where automatic update does not
      happen because of unexpected file permissions.
      
      Check if folder is writeable was moved into Lua code.
      
      Default unmanaged keyfile path can be specified at compile
      time with option KEYFILE_DEFAULT. This default
      configuration can be disabled in configuration file with
      trust_anchors.keyfile_default = nil.
      6c2db2b5
  12. 18 Jan, 2018 1 commit
  13. 23 Dec, 2017 1 commit
  14. 16 Nov, 2017 1 commit
    • Vladimír Čunát's avatar
      rename module 'cache_lmdb' -> 'cache' · dfe7468d
      Vladimír Čunát authored
      The name was weird.  There's no other implementation ATM and the module
      will always be only really suitable for *local* caches, but otherwise
      it's not neccessarily bound to LMDB.
      dfe7468d
  15. 26 Oct, 2017 1 commit
  16. 13 Oct, 2017 1 commit
  17. 12 Oct, 2017 1 commit
  18. 29 Sep, 2017 2 commits
  19. 21 Sep, 2017 1 commit
  20. 11 Sep, 2017 1 commit
    • Vladimír Čunát's avatar
      roothints: various changes · 8fa8f214
      Vladimír Čunát authored
      - expose the function as hints.root_file
      - use the same filename as Debian
      - remove the unneeded script
      - docs and some nitpicks
      8fa8f214
  21. 07 Sep, 2017 1 commit
  22. 01 Aug, 2017 1 commit
  23. 20 Jul, 2017 1 commit
    • Vitezslav Kriz's avatar
      policy: update aho-corasick code · 172d0414
      Vitezslav Kriz authored
      Library lua-aho-corasick is provided as git submodule. Library
      build is triggered with kresd build. ahocorasick.so is copied into
      modules directory.
      172d0414
  24. 26 Jun, 2017 1 commit
  25. 26 May, 2017 2 commits
  26. 01 May, 2017 1 commit
    • Daniel Kahn Gillmor's avatar
      Use default padding policy for responses. · e9a4d133
      Daniel Kahn Gillmor authored
      net.tls_padding() can now take a boolean in addition to a numeric
      value.  true means "use sensible default padding policy", false means
      "never pad".
      
      In the struct kr_context, we change tls_padding from a uint32_t to an
      int32_t so that we can explicitly represent the default value (-1).
      This should be a safe ABI/API change, since no one had ever set a
      padding > 4096 anyway.
      
      This depends on libknot having adopted the changes from
      2dd9f406e333a1cedfa2380ffad57913cecf8efb which is first included in
      2.4.3.  In the event that knot-resolver is compiled against an older
      version of libknot, it just uses a baked-in default of 468 as before.
      
      See https://gitlab.labs.nic.cz/knot/resolver/merge_requests/249 for
      further discussion.
      e9a4d133
  27. 28 Feb, 2017 1 commit
  28. 10 Feb, 2017 1 commit
  29. 09 Feb, 2017 2 commits
  30. 31 Jan, 2017 1 commit
  31. 26 Jan, 2017 1 commit
  32. 25 Jan, 2017 1 commit
  33. 17 Jan, 2017 1 commit
  34. 06 Jan, 2017 1 commit