Skip to content
Snippets Groups Projects
  1. Oct 26, 2020
  2. Oct 25, 2020
  3. Oct 24, 2020
  4. Oct 17, 2020
  5. Oct 13, 2020
  6. Oct 09, 2020
  7. Oct 07, 2020
    • Colin Hutchinson's avatar
      fix(cache) utilize luarocks purge --old-versions to keep our luarocks current (#341) · 8682de98
      Colin Hutchinson authored
      * fix(cache) dont cache luarocks in our openresty container
      
      * chore(ci) adjust our cleanup so retrying can be more successful
      4.11.1
      8682de98
    • Murillo Paula's avatar
      feat(*) allow running kong as the 'kong' user (#339) · d8a318cd
      Murillo Paula authored
      * feat(*) allow running kong as the 'kong' user
      
      Previously, Kong was, by default, running as root on non-docker systems,
      which is not a security best practice. For docker environments, we take
      steps to provide more security [2] (create a kong user by default, grant
      the same /usr/local/kong/* files and directories ownership to that user
      and to the root group) and these are the same steps that are being
      employed here for non-docker environments. Post-installation fpm scripts
      are being leveraged to create the kong user and change the permissions
      of the kong package's contents to that user and to the root group. See
      the fpm wiki [1] for details. See all the the files and directories
      owned by the kong package here: [files.txt](https://github.com/Kong/kong-build-tools/files/5314643/files.txt)
      
      Note that when `kong start` is run without changing the `$USER`, the
      nginx master process will be run as the 'root' user and the nginx
      workers processes will run as the 'nobody' user. That is the default
      behavior in Kong because the nginx master process needs to run as 'root'
      in order for nginx to execute certain actions (listen on privileged
      ports such as port 80, for example).
      
      In order to run kong as the 'kong' user, first switch to the kong user:
      
      ```
      su kong
      ```
      
      Then start `kong` normally:
      
      ```
      kong start
      ```
      
      This will make both the nginx master and worker processes to run as the
      'kong' user.
      
      [1] https://github.com/jordansissel/fpm/wiki
      [2] https://github.com/Kong/docker-kong/blob/2.1.3/rhel/Dockerfile#L36-L43
      
      
      
      * chore(makefile) change DOCKER_KONG_VERSION temporarily
      
      * tests(package) add minimal tests
      
      * tests(package) add chown and chmod tests
      
      * tests(package) validate Kong is running as the correct user
      
      * chore(ci) temporarily remove non-build tests
      
      * tests(package) add 'chmod -R g=u' verification tests
      
      Also fixes a small issue where the user-validation-tests was getting
      pulled.
      
      * tests(package) install needed dependencies to run the tests
      
      * tests(package) install debs with dpkg -i /src/kong.deb || apt install --fix-broken -y
      
      Debian jessie can't install local packages with apt-get
      
      * tests(amd64) pin the user-validation tests to as to amd64
      
      * chore(ci) pin DOCKER_KONG_VERSION to master
      
      * Revert "chore(ci) temporarily remove non-build tests"
      
      This reverts commit 66abe497fdbbc414a128c1269cdbc1a9ec35d07a.
      
      Co-authored-by: default avatarColin Hutchinson <chutchic@gmail.com>
      4.11.0
      d8a318cd
  8. Oct 03, 2020
  9. Sep 26, 2020
  10. Sep 24, 2020
  11. Sep 23, 2020
  12. Sep 18, 2020
  13. Sep 17, 2020
  14. Sep 14, 2020
  15. Sep 12, 2020
  16. Sep 11, 2020
  17. Sep 10, 2020
  18. Sep 09, 2020
    • Colin Hutchinson's avatar
      05759195
    • Aapo Talvensaari's avatar
      chore(patches) make 1.17.8.1 and 1.17.8.2 patches to apply cleanly (#323) · 60c95f28
      Aapo Talvensaari authored
      ### Summary
      
      ```
      patching file LuaJIT-2.1-20200102/src/lj_api.c
      patching file LuaJIT-2.1-20200102/src/lj_arch.h
      Hunk #1 succeeded at 241 (offset 4 lines).
      patching file LuaJIT-2.1-20200102/src/lj_cconv.c
      patching file LuaJIT-2.1-20200102/src/lj_obj.h
      Hunk #1 succeeded at 831 (offset 1 line).
      patching file LuaJIT-2.1-20200102/src/lj_state.c
      patching file lua-resty-core-0.1.19/lib/resty/core/socket_tcp.lua
      patching file lua-resty-core-0.1.19/lib/resty/core/socket_tcp.lua
      patching file lua-resty-core-0.1.19/lib/resty/core/socket_tcp.lua
      patching file lua-resty-core-0.1.19/lib/resty/core/socket_tcp.lua
      patching file lua-resty-core-0.1.19/lib/resty/core/socket_tcp.lua
      patching file lua-resty-core-0.1.19/lib/resty/core.lua
      Hunk #1 succeeded at 19 with fuzz 1 (offset -2 lines).
      patching file lua-resty-core-0.1.19/lib/resty/core/socket_tcp.lua
      patching file lua-resty-core-0.1.19/lib/ngx/balancer.lua
      patching file lua-resty-core-0.1.19/lib/ngx/balancer.lua
      Hunk #1 succeeded at 45 (offset 7 lines).
      Hunk #2 succeeded at 348 (offset 137 lines).
      patching file lua-resty-core-0.1.19/lib/resty/core.lua
      patching file lua-resty-core-0.1.19/lib/resty/core/request.lua
      patching file lua-resty-core-0.1.19/lib/resty/core/utils.lua
      patching file lua-resty-websocket-0.07/lib/resty/websocket/client.lua
      patching file nginx-1.17.8/src/http/ngx_http_upstream.c
      Hunk #2 succeeded at 1688 (offset -3 lines).
      Hunk #3 succeeded at 1719 (offset -3 lines).
      Hunk #4 succeeded at 1765 (offset -3 lines).
      patching file nginx-1.17.8/src/http/ngx_http_special_response.c
      patching file nginx-1.17.8/src/stream/ngx_stream_proxy_module.c
      patching file ngx_lua-0.10.17/src/ngx_http_lua_socket_tcp.c
      patching file ngx_lua-0.10.17/src/ngx_http_lua_socket_tcp.h
      patching file ngx_lua-0.10.17/src/ngx_http_lua_socket_tcp.c
      patching file ngx_lua-0.10.17/src/ngx_http_lua_socket_tcp.c
      patching file ngx_lua-0.10.17/src/ngx_http_lua_socket_tcp.c
      patching file ngx_lua-0.10.17/src/ngx_http_lua_socket_tcp.c
      patching file ngx_lua-0.10.17/src/ngx_http_lua_balancer.c
      patching file ngx_lua-0.10.17/src/ngx_http_lua_common.h
      patching file ngx_lua-0.10.17/src/ngx_http_lua_module.c
      patching file ngx_lua-0.10.17/src/ngx_http_lua_balancer.c
      patching file ngx_lua-0.10.17/src/ngx_http_lua_balancer.c
      patching file ngx_lua-0.10.17/src/ngx_http_lua_common.h
      patching file ngx_lua-0.10.17/src/ngx_http_lua_balancer.c
      patching file ngx_stream_lua-0.0.8/src/ngx_stream_lua_util.c
      Hunk #1 succeeded at 1965 with fuzz 2 (offset 10 lines).
      patching file ngx_stream_lua-0.0.8/src/api/ngx_stream_lua_api.h
      ```
      
      vs.
      
      ```
      patching file LuaJIT-2.1-20200102/src/lj_api.c
      patching file LuaJIT-2.1-20200102/src/lj_arch.h
      patching file LuaJIT-2.1-20200102/src/lj_cconv.c
      patching file LuaJIT-2.1-20200102/src/lj_obj.h
      patching file LuaJIT-2.1-20200102/src/lj_state.c
      patching file lua-resty-core-0.1.19/lib/resty/core/socket_tcp.lua
      patching file lua-resty-core-0.1.19/lib/resty/core/socket_tcp.lua
      patching file lua-resty-core-0.1.19/lib/resty/core/socket_tcp.lua
      patching file lua-resty-core-0.1.19/lib/resty/core/socket_tcp.lua
      patching file lua-resty-core-0.1.19/lib/resty/core/socket_tcp.lua
      patching file lua-resty-core-0.1.19/lib/resty/core.lua
      patching file lua-resty-core-0.1.19/lib/resty/core/socket_tcp.lua
      patching file lua-resty-core-0.1.19/lib/ngx/balancer.lua
      patching file lua-resty-core-0.1.19/lib/ngx/balancer.lua
      patching file lua-resty-core-0.1.19/lib/resty/core.lua
      patching file lua-resty-core-0.1.19/lib/resty/core/request.lua
      patching file lua-resty-core-0.1.19/lib/resty/core/utils.lua
      patching file lua-resty-websocket-0.07/lib/resty/websocket/client.lua
      patching file nginx-1.17.8/src/http/ngx_http_upstream.c
      patching file nginx-1.17.8/src/http/ngx_http_special_response.c
      patching file nginx-1.17.8/src/stream/ngx_stream_proxy_module.c
      patching file ngx_lua-0.10.17/src/ngx_http_lua_socket_tcp.c
      patching file ngx_lua-0.10.17/src/ngx_http_lua_socket_tcp.h
      patching file ngx_lua-0.10.17/src/ngx_http_lua_socket_tcp.c
      patching file ngx_lua-0.10.17/src/ngx_http_lua_socket_tcp.c
      patching file ngx_lua-0.10.17/src/ngx_http_lua_socket_tcp.c
      patching file ngx_lua-0.10.17/src/ngx_http_lua_socket_tcp.c
      patching file ngx_lua-0.10.17/src/ngx_http_lua_balancer.c
      patching file ngx_lua-0.10.17/src/ngx_http_lua_common.h
      patching file ngx_lua-0.10.17/src/ngx_http_lua_module.c
      patching file ngx_lua-0.10.17/src/ngx_http_lua_balancer.c
      patching file ngx_lua-0.10.17/src/ngx_http_lua_balancer.c
      patching file ngx_lua-0.10.17/src/ngx_http_lua_common.h
      patching file ngx_lua-0.10.17/src/ngx_http_lua_balancer.c
      patching file ngx_stream_lua-0.0.8/src/ngx_stream_lua_util.c
      patching file ngx_stream_lua-0.0.8/src/api/ngx_stream_lua_api.h
      ```
      60c95f28
  19. Sep 08, 2020
  20. Sep 05, 2020
Loading