Commit Graph

6 Commits

Author SHA1 Message Date
Johan Fylling 5464b005e8 Bumping golangci-lint to v1.59.1 (#6817)
Signed-off-by: Johan Fylling <johan.dev@fylling.se>
2024-06-19 15:13:43 +02:00
Anders Eknert 9a597feb2e chore: don't use the deprecated ioutil functions (#5319)
Another annoyance removed :P

Signed-off-by: Anders Eknert <anders@eknert.com>
2022-10-27 14:30:26 +02:00
Anders Eknert 95708108f3 linters: add unconvert (#5318)
Got a few warnings from my IDE about redundant type conversions,
so I decided to look into it. Added the unconvert linter to our
checks, and fixed the violations. Added two ignore comments as I
wasn't sure about whether they'd change the semantics of the code.

Signed-off-by: Anders Eknert <anders@eknert.com>
2022-10-27 13:35:39 +02:00
Philip Conrad ec0079c784 test/e2e/certrefresh: Add file.Sync() to eliminate slow write failures. (#5033)
This commit eliminates the potential for a slow disk write to cause a test failure in the certificate rotation tests by adding a file `Sync()` call in the function used to copy certificate files around.

Signed-off-by: Philip Conrad <philipaconrad@gmail.com>
2022-08-22 14:14:04 -04:00
Stephan Renatus aa2e297a4e ci: address macos-latest test flakes (#4310)
* sdk/opa_test: increase max delta

6ms was arbitrary, and so is 10ms.

When GHA switched the macos-latest version, we've started seeing
test flakiness here.

30ms (20ms+10ms) are still waaaay below the 1s that the test_plugin
attempts need to shut down.

* test/e2e/certrefresh: double wait time for macos runner

Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
2022-02-01 10:16:31 +01:00
Stephan Renatus cc4816eded server+runtime: add TLS cert refreshing (#4107)
This adds a new flag to `opa run`, intended for server usage with HTTPS listeners:
`--tls-cert-refresh-period`. If used with a positive duration, such as "5m" (5 minutes),
"24h", etc, the server will track the certificate and key files' contents. When their
content changes, the certificates will be reloaded.

On an error in reloading, it will log (info) the error and try again in the next round.

Fixes #2500.

Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
2021-12-09 10:13:14 +01:00