1
0
mirror of https://github.com/Tecnativa/docker-socket-proxy synced 2025-01-03 12:20:55 +00:00
Commit Graph

63 Commits

Author SHA1 Message Date
LifetimeMistake
7275202d5e
Fix backwards compatibility code
The original code will not allow write access (set via the POST var) to endpoints to which read access is not provided. Before this fix, verify_access would allow write-only access to all endpoints if the POST var was set regardless of read access.
2024-04-14 16:09:11 +02:00
LifetimeMistake
eb128120ed
Revert unnecessary changes 2024-04-14 15:57:31 +02:00
LifetimeMistake
da08dbb8f3 Add more granular access control 2024-04-14 15:43:18 +02:00
josep-tecnativa
45f7fb01df
Merge pull request #111 from saltydk/feature/templating
add config templating
2024-02-13 13:49:20 +01:00
salty
ce81071d86
add config templating 2024-02-01 10:54:11 +01:00
josep-tecnativa
87428842ed
Merge pull request #116 from Tecnativa/fix-ci-problems
[FIX] Fix CI by running poetry update
2024-02-01 10:06:14 +01:00
josep-tecnativa
0ba4d62fc1 [Fix] Poetry update 2024-02-01 10:02:59 +01:00
salty
75d40ca5e2
[IMP] Bind to IPv4 and IPv6 in haproxy (#108) 2023-11-28 09:34:24 +01:00
Pedro M. Baeza
ea893f64f5
Merge pull request #106 from sammcj/master
feat: add options for allowing stop and start
2023-11-27 18:46:29 +01:00
Sam McLeod
8d737c82f4 feat: add options for allowing stop and start 2023-11-26 12:25:03 +11:00
Sam McLeod
085fd0a23c feat: add options for allowing stop and start 2023-11-26 12:16:23 +11:00
Pedro M. Baeza
41d6a276fd
Merge pull request #100 from sammcj/patch-1
Fix: minor typo in readme
2023-09-26 08:20:07 +02:00
Sam
6a3923c8f1
Fix minor typo 2023-09-26 07:14:28 +10:00
Pedro M. Baeza
bb675df9b3
Merge pull request #98 from xstefanox/fix/events-timeout
fix: no timeout for events route
2023-09-25 17:21:42 +02:00
Stefano Varesi
0185748432 fix: no timeout for events route 2023-09-25 17:19:59 +02:00
Pedro M. Baeza
eb918c2e3b
Merge pull request #99 from Tecnativa/fix-ci-pre-commit
[DCK] pre-commit dependences updated
2023-09-25 17:19:11 +02:00
josep-tecnativa
eea3ae59a7 [DCK] pre-commit dependences updated 2023-09-25 17:09:09 +02:00
Pedro M. Baeza
2d108070c4
Merge pull request #77 from mikemhenry/patch-1
flake8 has moved to github
2022-12-21 09:03:46 +01:00
Mike Henry
db85b82d94
flake8 has moved to github 2022-12-21 00:53:38 -07:00
Alexandre Díaz
eba9354db5
Merge pull request #73 from Tecnativa/dependabot/pip/py-1.10.0
Bump py from 1.9.0 to 1.10.0
2022-06-29 18:58:31 +02:00
dependabot[bot]
cfe90a48b5
Bump py from 1.9.0 to 1.10.0
Bumps [py](https://github.com/pytest-dev/py) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/pytest-dev/py/releases)
- [Changelog](https://github.com/pytest-dev/py/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/py/compare/1.9.0...1.10.0)

---
updated-dependencies:
- dependency-name: py
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-24 15:12:53 +00:00
Alexandre Díaz
59a67d506d
Merge pull request #71 from RealOrangeOne/patch-2
Rebuild container weekly
2022-06-24 17:11:47 +02:00
Jake Howard
a23328012a
Reformat cron expression line 2022-06-22 14:18:35 +01:00
Jake Howard
f7c8b41cc6 Rebuild container weekly
Due to its nature, the container has access to sensitive data. Therefore the underlying OS should be updated regularly
2022-06-22 13:20:55 +02:00
Alexandre Díaz
24d40af7f4
Merge pull request #72 from Tecnativa/imp-precommit
[UPD] pre-commit
2022-06-22 13:15:19 +02:00
Alexandre D. Díaz
a47de10b35 [UPD] pre-commit 2022-06-22 13:12:32 +02:00
Aaron Bach
5dd3a1efb9 Linting 2021-11-25 08:15:13 -05:00
Aaron Bach
8ed50a6526 Add environment variable to configure Docker socket location in image 2021-11-25 08:15:13 -05:00
Ruben Gees
08910fecaa Add support for /grpc api 2021-10-20 14:16:31 +01:00
Krasimir Nedelchev
f48305fe92 Fix typo in link 2021-08-20 07:56:32 +01:00
João Marques
b30e0097a4 Update README info after #40 2021-07-07 10:36:12 +01:00
João Marques
fae59cf3e8 Fix docs: specify port on DOCKER_HOST variable
Fixes https://github.com/Tecnativa/docker-socket-proxy/issues/51
2021-04-26 15:25:17 +01:00
Trenton Holmes
0ae2b3ea0d Updates HAProxy to the 2.2-alpine tag 2021-04-15 09:13:57 +01:00
Jairo Llopis
6dce4aab3c Remove unused metadata
Since #40, the correct labels are applied at build. These lines were 🗑 now.

@Tecnativa TT27819
2021-02-09 08:38:42 +00:00
João Marques
b911e572d0 Delete old badges 2021-01-26 10:27:45 +00:00
João Marques
2ad5a8c080 Update image template to v0.1.3 2021-01-26 10:27:45 +00:00
João Marques
f1de9a0ccf
Merge pull request #40 from Tecnativa/migrate-to-template
Apply image template
2021-01-26 09:52:37 +00:00
João Marques
49c962b048 Apply image template
TT27819
2021-01-26 09:49:46 +00:00
Jairo Llopis
74c627bb27 Fix build
- Update labels to match those from https://github.com/opencontainers/image-spec/blob/master/annotations.md#pre-defined-annotation-keys
- Add missing build args.
- Remove unneeded python (which was failing to install, BTW) from the image.
- Remove `hooks` folder, which was used to build the image automatically in the Docker Hub. It's done in GitHub Actions now.
2020-12-14 09:16:47 +00:00
Jairo Llopis
144ea28cf3 Fix README formatting
Regression introduced in 492bfa465a.
2020-12-14 09:16:47 +00:00
Jairo Llopis
492bfa465a
Update instructions about container images
Fix #37 by clearly advertising which is our main container image registry and what tags are supported.
2020-12-14 08:42:03 +00:00
Jairo Llopis
baea7eefad Allow commits to master
This will fix CI when being run in master.

See https://github.com/Tecnativa/docker-socket-proxy/runs/1529426822.
2020-12-11 08:22:11 +00:00
João Marques
e84babd1c4
Add tests and CI (#34)
* Add first version of tests

From https://github.com/Tecnativa/docker-socket-proxy/pull/14

* Expand tests

* Add GH CI

* Apply suggestions

* Apply autopretty template + fix prettier

* Fix isort

* Apply autoprettier

* Fix VSCode settings

* Make tests run in parallel

* Build docker image before testing

* Update workspace settings

* Try multi-platform builds and push to ghcr.io

* Push to docker hub as well from ci

* Upgrade autopretty

* Update pyproject configurations

* Improve test configuration and execution

TT26468

* Provide initial conftest

* Improve tests

* Add python3 in image

* Remove POST rule from proxy

* Build image before testing and push at the end

Builds the image (in single arch) before testing
Loads the image into local docker (See https://github.com/docker/build-push-action#export-image-to-docker)
Rebuilds and pushes the final image in multi-arch at the end.

* Fix python path

* Remove build fixture from tests to see if image is built in CI

* Organize docker tests definition and document

* Restore fixture allowing usage for local testing

This reverts commit dc0b60e63f and allows using `--prebuild` CLI flag for pytest when doing local tests.

Co-authored-by: Jairo Llopis <jairo.llopis@tecnativa.com>
2020-12-10 08:52:55 +00:00
javieryanez
a07d4ae4d9 Sorted environment variables alphabetically 2019-08-23 13:45:33 +01:00
javieryanez
bb302b5470 Added LOG_LEVEL environment variable to set logging severity level. 2019-08-23 13:45:33 +01:00
ViViDboarder
e46d26a7c4 First stab at multi-arch builds 2019-08-16 14:57:42 +02:00
Pedro M. Baeza
f16482ddff
Merge pull request #16 from Artiume/patch-1
spelling error, no change.
2019-06-16 00:17:18 +02:00
Artiume
158c560a56
spelling error, no change. 2019-06-14 20:58:36 -04:00
Andre Zoledziowski
f41f9d25d2 Fixed possible security problem. 2019-01-21 15:23:09 +00:00
Andre Zoledziowski
eddf7b2a42 Inverted HAProxy security policy. 2019-01-21 15:23:09 +00:00