Skip to content

Fixed build for tls v1.3 on openssl v1.0.2. Added CI check - #253

Merged
filipecosta90 merged 4 commits into
masterfrom
openssl.1.0
Apr 8, 2024
Merged

filipecosta90 merged 4 commits into
masterfrom
openssl.1.0

Conversation

@filipecosta90

@filipecosta90 filipecosta90 commented Apr 7, 2024 •

Copy link
Copy Markdown
Collaborator

This PR:

Reproduced via:

brew install rbenv/tap/[email protected]
autoreconf -ivf
PKG_CONFIG_PATH="/opt/homebrew/opt/[email protected]/lib/pkgconfig" ./configure
make

error:

(base) fco@fcos-Air memtier_benchmark % make
make  all-am
make[1]: Entering directory '/Users/fco/redislabs/memtier_benchmark'
  CXX      memtier_benchmark-memtier_benchmark.o
memtier_benchmark.cpp:328:16: warning: variable 'ignore' set but not used [-Wunused-but-set-variable]
        size_t ignore = fread(&R, sizeof(R), 1, f);
               ^
memtier_benchmark.cpp:1396:50: error: use of undeclared identifier 'SSL_OP_NO_TLSv1_3'
            SSL_CTX_set_options(cfg.openssl_ctx, SSL_OP_NO_TLSv1_3);
                                                 ^
1 warning and 1 error generated.
make[1]: *** [Makefile:751: memtier_benchmark-memtier_benchmark.o] Error 1
make[1]: Leaving directory '/Users/fco/redislabs/memtier_benchmark'
make: *** [Makefile:492: all] Error 2

@filipecosta90
filipecosta90 merged commit b2a4041 into master Apr 8, 2024
@filipecosta90
filipecosta90 deleted the openssl.1.0 branch April 8, 2024 14:02
fcostaoliveira added a commit that referenced this pull request Oct 25, 2026
Instead of wrapping RLTest.loader.TestFunction.initialize, register the
check as a test hook. add_test_hook() is new in the RLTest fork commit
pinned here (RedisLabsModules/RLTest#262, on top of #253). The hook gets
the test function, so @allow_noauth still opts a test out.
test_guard_is_installed_in_rltest now runs a test through RLTest's hook
runner and expects the guard to fail it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fcostaoliveira added a commit that referenced this pull request Oct 25, 2026
…863)

With REDIS_PASSWORD set, a test that started memtier or a redis-py client
without credentials got -NOAUTH replies, and nothing failed it. #842
found tests that silently ran unauthenticated.

Check every server of the env, masters and replicas, for new
errorstat_NOAUTH around each function test. The check runs as an RLTest
test hook (add_test_hook, RedisLabsModules/RLTest#262). The RLTest pin
moves to a fork commit with that hook on top of #253's cluster-aware
replicas. A test that is unauthenticated on purpose opts out with
@allow_noauth(reason). The guard fails the test rather than pass when
it can read no server before it, and an unexpected error while reading
a server (an RLTest API change, say) raises instead of leaving the
server unchecked. Replicas get the env password too.

shutdown_nosave() reports only a real stop. Its clients, and the
guard's, go through bounded_client(), which turns off redis-py retries,
including on connections the client already has open, so a refused or
successful SHUTDOWN returns at once instead of after seconds of retry
backoff, and is never resent. The 3-shard replica failover file with a
password takes about 70 s instead of 132 s. Raise the redis-py floor to
6.0, which the harness tests need.

test_harness_auth.py covers the auth-argument forwarding, the guard's
pass, fail, opt-out and unreadable-server paths, its installation in
RLTest, bounded_client and shutdown_nosave.

Fixes #842

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error reported when executing command 'make'

2 participants