Skip to content

RGW SSE-KMS secrets cache - #61256

Merged
adamemerson merged 21 commits into
ceph:mainfrom
irq0:wip/rgw-kms-cache
Jun 9, 2026
Merged

adamemerson merged 21 commits into
ceph:mainfrom
irq0:wip/rgw-kms-cache

Conversation

@irq0

@irq0 irq0 commented Jan 7, 2025 •

Copy link
Copy Markdown
Member

Add a cache for secrets from key management systems used for server side encryption.

It is common to have secrets shared by many if not all objects in a bucket. Without RGW-side caching every PUT/GET will cause a request to an external KSM. This not only adds load to the KSM, but also slows down read and writes.

References

https://tracker.ceph.com/issues/68524

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

@irq0
irq0 requested a review from a team as a code owner January 7, 2025 12:21
@kayrus

kayrus commented Jan 7, 2025

Copy link
Copy Markdown

@irq0 what happens, when a new key is set to a bucket? will the key from the cache be used or will the key from the cache be reset?

@irq0

irq0 commented Jan 8, 2025

Copy link
Copy Markdown
Member Author

@irq0 what happens, when a new key is set to a bucket? will the key from the cache be used or will the key from the cache be reset?

This caches right above the call to the KMS using the key id it got from the layer above [1].

Q: Is changing a secret payload mapped from a key id a thing?

I expect to rather update the bucket -> key id mapping to a new secret.
The Barbican docs [0] suggest that updating secrets is not a thing. It disallows an update once a payload is set. I don't think it keeps you from recreating under the same name though.

[0] https://docs.openstack.org/barbican/latest/api/reference/secrets.html#put-v1-secrets-uuid

[1] To test this I used. The cached key id would be 8561...

s3 ... put --server-side-encryption --server-side-encryption-kms-id="8561713c-9226-420c-8f23-335084a6a97b" $(testfile_4mb) s3://testbucket/$RANDOM | tr -d "\r"

@irq0

irq0 commented Jan 9, 2025

Copy link
Copy Markdown
Member Author

I'll continue with adding:

  • cache entry TTLs
  • a cache flush command to radosgw-admin

@mdw-at-linuxbox

Copy link
Copy Markdown
Contributor

From a security standpoint; this thing is dangerous: anybody who can get a core dump of rgw is going to get all those keys. A couple of things to mitigate that risk:
/1/ lru ttl -- keeping only active keys around is a big win. (I gather that's sitll in progress?)
/2/ cache flushing -- 2 times to do that: shutdown (early), and something an admin could trigger explicitely: when rotating the log, or perhaps a special ".asok" command.
/3/ core dumps are still a problem. the thing that oculd be done there would be to generate an ephemeral key, store tha tout of rgw's memory space, use that to locally wrap keys, and keep the exposed key time down to a minimum.
Of these, I think /1/ should be done before this is widely available, and will give the best win (cache timeout shoul be short, like 30s to 5m). /2/ is probably easy to do, /3/ is more involved.

@irq0

irq0 commented Jan 10, 2025

Copy link
Copy Markdown
Member Author

/3/ core dumps are still a problem. the thing that oculd be done there would be to generate an ephemeral key, store tha tout of rgw's memory space, use that to locally wrap keys, and keep the exposed key time down to a minimum.

I'm not sure I grok that. RGW would store cached secrets encrypted in its memory. When a data encrypt/decrypt (e.g PUT/GET) needs that key it would fetch the encrypted key from its memory and decrypt it with an ephemeral key. Something generated on startup perhaps?
How not to have that key in either RGW memory or memory accessible to it like shared memory? Do you have something like an RPC in mind, where the ephemeral key holder has core dumps, etc. disabled?

There is one other possible leak: Swapping secrets out.
SAI CERT C MEM06 covers the core dump and swap problem. It suggests mlock, but I'm not sure how feasible that is with running RGW unprivileged.

I think as a start it makes sense to document a warning about core dumps and have a startup check. Maybe even a check that will exit the daemon if not a config option activates "yes-i-really-mean-it".

(BTW: I'm working on integrating Breakpad as an alternative to core dumps in prod systems #61264 )

@mdw-at-linuxbox

Copy link
Copy Markdown
Contributor

vault uses mlock to protect its secrets. It's a bit of a pain to deal with, worth it for vault, but probably not for rgw. In the end this is one of those classic security vs. utility tradeoffs. We ought to have some sort of general statement somewhere that warns that configuration data and core dumps can contain secrets that should be treated as such. I don't think rgw is particularly a special case in this respect, an osd or mon core dump has similar issues. But, to the extent we can protect "data a rest" that is not active, that's useful.

Adding a TTL to the LRU cache gets like 80% of the security I'm hopging for, so that's why I think that essential. Adding a specific flush function is in practice most likely to be of help in debugging.

So far as an ephemeral key goes, that's where it gets complicated. The desirable goal would be that a core dump (or memory inspection of the running process) at any point in time only allows you to decrypt the objects that are in fact being decrypted at that moment. The complication is that there are lots of ways to do this, with varying properties. So, fior instance: mlock becomes a deployment issue (ie, how doe shis work with vstart or in a container). An ephemeral key in memory just slows an attacker down a bit. Keeping the ephemeral key in an unlinked file dangling off an open file descriptor, and only reading it into memory immediately before use, means most of the time the lru cache is safe. Forking off a helper process, and storing either the LRU cache, or the ephemeral key in the helper process, could make it core-dump safe, at the cost of a bit more complexity. Since this is more complex, you have choices: you don't have to do any of this, or you might find this fascinating and want to do this. Personally, I hope you do this, but a separate PR is ok.

So: TTL: that's required. flush: low hanging fruit. ephemeral key wrapping: you decide.

@markhpc

markhpc commented Jan 13, 2025

Copy link
Copy Markdown
Member

@irq0 @mdw-at-linuxbox I like both the ttl and flush ideas. I think the third option is a bit overkill, at least initially. For people that need absolute security, there is always the option of simply not using this cache.

@irq0

irq0 commented Jan 14, 2025

Copy link
Copy Markdown
Member Author

@irq0 @mdw-at-linuxbox I like both the ttl and flush ideas. I think the third option is a bit overkill, at least initially. For people that need absolute security, there is always the option of simply not using this cache.

👍

My plan right now is to first look into LRU implementations in the codebase.
I don't think SharedLRU is the right fit here. cohort::lru might be. I'm looking for something that lends itself to adding a TTL reaper and is fast enough to work well in the hot path of both PUTs and GETs. I'll write a little micro benchmark and share the results in a bit.

I like the idea of encrypting the cache in memory as it mitigates risk for cases where the memory is persisted that aren't obvious (e.g hibernation files, VMs). I'm with Mark though that it is a bit overkill initially.

@irq0

irq0 commented Jan 14, 2025

Copy link
Copy Markdown
Member Author

So far as an ephemeral key goes, that's where it gets complicated. The desirable goal would be that a core dump (or memory inspection of the running process) at any point in time only allows you to decrypt the objects that are in fact being decrypted at that moment. The complication is that there are lots of ways to do this, with varying properties. So, fior instance: mlock becomes a deployment issue (ie, how doe shis work with vstart or in a container). An ephemeral key in memory just slows an attacker down a bit. Keeping the ephemeral key in an unlinked file dangling off an open file descriptor, and only reading it into memory immediately before use, means most of the time the lru cache is safe. Forking off a helper process, and storing either the LRU cache, or the ephemeral key in the helper process, could make it core-dump safe, at the cost of a bit more complexity. Since this is more complex, you have choices: you don't have to do any of this, or you might find this fascinating and want to do this. Personally, I hope you do this, but a separate PR is ok.

memfd_secret(2) might be a good fit here. https://lwn.net/Articles/836724/

@irq0
irq0 force-pushed the wip/rgw-kms-cache branch from b15bb88 to 3fef8f1 Compare February 27, 2025 10:06
@irq0
irq0 marked this pull request as draft February 27, 2025 10:06
@irq0
irq0 force-pushed the wip/rgw-kms-cache branch from 3fef8f1 to b7035cf Compare February 27, 2025 11:16
@irq0

irq0 commented Feb 27, 2025

Copy link
Copy Markdown
Member Author

The last push addresses the cache part of the feature. Next on my list is looking into securing the memory the case uses.

It adds a new cache that supports TTLs and handles cache stampedes gracefully. The latter is important, because caching KMS secrets is not only about handling requests faster, but to not overload KMS systems with lots of concurrent requests to the same key.

The second commit adds benchmarks for concurrent caches in the codebase including the new one. Results from my machine below.

I'd really love feedback on the integration bits. The cache uses futures to make concurrent requests to the same key wait for each other. To make this work in the async context the code basically just yields for the average fetch time.

Benchmark Results

web = the new web cache using lookup()
web-LO = the new web cache using lookup_or - fetches go through the stampede protection


[2025-02-27T09:50:52Z] bin/bench_lrus --benchmark_time_unit=ms
Running bin/bench_lrus
Run on (32 X 5084 MHz CPU s)
CPU Caches:
  L1 Data 32 KiB (x16)
  L1 Instruction 32 KiB (x16)
  L2 Unified 512 KiB (x16)
  L3 Unified 32768 KiB (x2)
Load Average: 4.88, 19.05, 15.79
***WARNING*** CPU scaling is enabled, the benchmark real time measurements may be noisy and will incur extra overhead.
--------------------------------------------------------------------------------
Benchmark                                      Time             CPU   Iterations
--------------------------------------------------------------------------------
UNIQUE shared/100/100000/threads:1           462 ms          460 ms            2
UNIQUE shared/100/100000/threads:32          656 ms         30.4 ms           32
UNIQUE shared/100/100000/threads:128         725 ms         8.40 ms          128
UNIQUE shared/1000/100000/threads:1          506 ms          502 ms            1
UNIQUE shared/1000/100000/threads:32         662 ms         31.2 ms           32
UNIQUE shared/1000/100000/threads:128        607 ms         7.86 ms          128
UNIQUE simple/100/100000/threads:1           274 ms          273 ms            3
UNIQUE simple/100/100000/threads:32          415 ms         33.1 ms           32
UNIQUE simple/100/100000/threads:128         406 ms         8.24 ms          128
UNIQUE simple/1000/100000/threads:1          275 ms          274 ms            3
UNIQUE simple/1000/100000/threads:32         392 ms         31.5 ms           32
UNIQUE simple/1000/100000/threads:128        410 ms         8.26 ms          128
UNIQUE cohort/100/100000/threads:1           194 ms          193 ms            4
UNIQUE cohort/100/100000/threads:32         52.2 ms         42.0 ms           32
UNIQUE cohort/100/100000/threads:128        49.9 ms         12.0 ms          128
UNIQUE cohort/1000/100000/threads:1          332 ms          330 ms            2
UNIQUE cohort/1000/100000/threads:32        61.8 ms         59.9 ms           32
UNIQUE cohort/1000/100000/threads:128       58.8 ms         15.3 ms          128
UNIQUE web   /100/100000/threads:1           291 ms          290 ms            2
UNIQUE web   /100/100000/threads:32          812 ms         34.0 ms           32
UNIQUE web   /100/100000/threads:128         789 ms         8.68 ms          128
UNIQUE web   /1000/100000/threads:1          530 ms          528 ms            2
UNIQUE web   /1000/100000/threads:32         603 ms         32.3 ms           32
UNIQUE web   /1000/100000/threads:128        759 ms         11.2 ms          128
UNIQUE web-LO/100/100000/threads:1           495 ms          493 ms            2
UNIQUE web-LO/100/100000/threads:32         1000 ms         55.9 ms           32
UNIQUE web-LO/100/100000/threads:128        1034 ms         16.9 ms          128
UNIQUE web-LO/1000/100000/threads:1          664 ms          662 ms            1
UNIQUE web-LO/1000/100000/threads:32        1455 ms         72.9 ms           32
UNIQUE web-LO/1000/100000/threads:128       2258 ms         24.3 ms          128
PARETO shared/100/100000/threads:1           117 ms          116 ms            6 key_pool_size=1k keys=100k
PARETO shared/100/100000/threads:32          218 ms         11.4 ms           32 key_pool_size=1k keys=100k
PARETO shared/100/100000/threads:128         216 ms         2.96 ms          128 key_pool_size=1k keys=99.968k
PARETO shared/1000/100000/threads:1          106 ms          106 ms            6 key_pool_size=1k keys=100k
PARETO shared/1000/100000/threads:32         193 ms         12.4 ms           32 key_pool_size=1k keys=100k
PARETO shared/1000/100000/threads:128        186 ms         3.03 ms          128 key_pool_size=1k keys=99.968k
PARETO simple/100/100000/threads:1          73.8 ms         73.5 ms            9 key_pool_size=1k keys=100k
PARETO simple/100/100000/threads:32          128 ms         16.3 ms           32 key_pool_size=1k keys=100k
PARETO simple/100/100000/threads:128         129 ms         4.09 ms          128 key_pool_size=1k keys=99.968k
PARETO simple/1000/100000/threads:1         67.4 ms         67.2 ms           10 key_pool_size=1k keys=100k
PARETO simple/1000/100000/threads:32         112 ms         17.6 ms           32 key_pool_size=1k keys=100k
PARETO simple/1000/100000/threads:128        108 ms         4.33 ms          128 key_pool_size=1k keys=99.968k
PARETO cohort/100/100000/threads:1          81.8 ms         81.5 ms            8 key_pool_size=1k keys=100k
PARETO cohort/100/100000/threads:32         49.8 ms         39.7 ms           32 key_pool_size=1k keys=100k
PARETO cohort/100/100000/threads:128        50.4 ms         12.9 ms          128 key_pool_size=1k keys=99.968k
PARETO cohort/1000/100000/threads:1          216 ms          216 ms            3 key_pool_size=1k keys=100k
PARETO cohort/1000/100000/threads:32        57.6 ms         55.8 ms           32 key_pool_size=1k keys=100k
PARETO cohort/1000/100000/threads:128       37.9 ms         13.6 ms          128 key_pool_size=1k keys=99.968k
PARETO web   /100/100000/threads:1          49.6 ms         49.5 ms           14 key_pool_size=1k keys=100k
PARETO web   /100/100000/threads:32          114 ms         7.28 ms           32 key_pool_size=1k keys=100k
PARETO web   /100/100000/threads:128         114 ms         1.88 ms          128 key_pool_size=1k keys=99.968k
PARETO web   /1000/100000/threads:1         36.0 ms         35.8 ms           20 key_pool_size=1k keys=100k
PARETO web   /1000/100000/threads:32        8.15 ms         2.79 ms          192 key_pool_size=1k keys=100k
PARETO web   /1000/100000/threads:128       23.7 ms        0.944 ms          128 key_pool_size=1k keys=99.968k
PARETO web-LO/100/100000/threads:1           160 ms          159 ms            4 key_pool_size=1k keys=100k
PARETO web-LO/100/100000/threads:32          162 ms         15.7 ms           32 key_pool_size=1k keys=100k
PARETO web-LO/100/100000/threads:128         140 ms         3.97 ms          128 key_pool_size=1k keys=99.968k
PARETO web-LO/1000/100000/threads:1          131 ms          130 ms            5 key_pool_size=1k keys=100k
PARETO web-LO/1000/100000/threads:32        25.9 ms         6.08 ms           96 key_pool_size=1k keys=100k
PARETO web-LO/1000/100000/threads:128       41.5 ms         1.79 ms          128 key_pool_size=1k keys=99.968k

@irq0
irq0 force-pushed the wip/rgw-kms-cache branch 2 times, most recently from 7390642 to edfe31a Compare February 27, 2025 17:23
@irq0
irq0 force-pushed the wip/rgw-kms-cache branch from 58ff72b to 5f1155a Compare March 7, 2025 16:06
@irq0

irq0 commented Mar 13, 2025 •

Copy link
Copy Markdown
Member Author
Benchmark results: kernel keyring vs memfd_secret vs plain memory

--------------------------------------------------------------------------------------------------------------------------------
Benchmark                                                    Time             CPU   Iterations  BytesRead   KeysRead KeysReadInv
--------------------------------------------------------------------------------------------------------------------------------
BM_KeyRing_RandomRead/1000/1000000/threads:1               801 ms          796 ms            1 160.755M/s  1.2559M/s   796.242ns
BM_KeyRing_RandomRead/1000/1000000/threads:32              309 ms          291 ms           32 27.4904M/s 107.384k/s   9.31236us
BM_KeyRing_RandomRead/1000/1000000/threads:128             190 ms         77.9 ms          128 26.0886M/s 100.338k/s   9.96635us
BM_MemfdSecret_RandomRead/10000000/threads:1               868 ms          864 ms            1  1.4812G/s 11.5719M/s   86.4162ns
BM_MemfdSecret_RandomRead/10000000/threads:32             46.2 ms         42.2 ms           32 1.89382G/s 7.39774M/s   135.176ns
BM_MemfdSecret_RandomRead/10000000/threads:128            19.8 ms         11.4 ms          128 1.78112G/s 6.85045M/s   145.976ns
BM_PlainMem_RandomRead/10000000/threads:1                  837 ms          833 ms            1 1.53617G/s 12.0013M/s   83.3242ns
BM_PlainMem_RandomRead/10000000/threads:32                45.7 ms         43.5 ms           32 1.83873G/s 7.18254M/s   139.227ns
BM_PlainMem_RandomRead/10000000/threads:128               17.0 ms         11.3 ms          128 1.80443G/s 6.94012M/s    144.09ns
--------------------------------------------------------------------------------------------------------------------------------------------
Benchmark                                                    Time             CPU   Iterations BytesProcessed KeysProcessed KeysProcessedInv
--------------------------------------------------------------------------------------------------------------------------------------------
BM_KeyRing_WriteReadRemove/1000/1000000/threads:1         4121 ms         4014 ms            1      8.7204M/s    249.154k/s        4.01358us
BM_KeyRing_WriteReadRemove/1000/1000000/threads:32        2006 ms          534 ms           32     4.09335M/s    58.4765k/s        17.1009us
BM_KeyRing_WriteReadRemove/1000/1000000/threads:128       2527 ms          482 ms          128      1.1516M/s    16.1978k/s        61.7366us

@markhpc

markhpc commented Mar 13, 2025

Copy link
Copy Markdown
Member

Yay for benchmarks! 👍

@irq0
irq0 force-pushed the wip/rgw-kms-cache branch from 5f1155a to 8ee5cc4 Compare March 20, 2025 16:34

@cbodley cbodley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

initial review of just the cache class

Comment thread src/common/web_cache.h Resolved
Comment thread src/common/web_cache.h Resolved
Comment thread src/common/web_cache.h Resolved
Comment thread src/common/web_cache.h Resolved
Comment thread src/common/web_cache.h Resolved
Comment thread src/common/web_cache.h Resolved
@mattbenjamin

Copy link
Copy Markdown
Contributor

my takes:

  1. ttl agreed important to enforce
  2. encrypted keys/keyring cool
  3. please use one of the LRU implementations

Matt

@cbodley

cbodley commented Mar 25, 2025

Copy link
Copy Markdown
Contributor

3. please use one of the LRU implementations

afaik none of them support ttl, so we'd have to pick one and extend it

i'm not familiar enough with the sieve algorithm to tell whether it actually warrants a new cache class

Comment thread src/rgw/rgw_kms.cc Resolved
irq0 added 16 commits June 1, 2026 18:43
Benchmark:
- Linux Kernel Key Retention Service (kernel keystore) [0]
- memfd_secret(2)
- plain memory

Tests:
- Random reads
- (keystore) Write, Read, Remove

[0] https://docs.kernel.org/security/keys/core.html

Signed-off-by: Marcel Lauhoff <[email protected]>
On-behalf-of: SAP [email protected]
Add RAII wrapper around the Linux Key Retention Service
add_key(2), keyctl_read(3), keyctl_invalidate(3)

Signed-off-by: Marcel Lauhoff <[email protected]>
On-behalf-of: SAP [email protected]
To allow RGW threads to share possession over process keyring keys the
keyring must be created before a child thread adds keys.

Since we only use the process keyring for KMS cache secrets, only
initialize the keyring if it is enabled on startup.

Signed-off-by: Marcel Lauhoff <[email protected]>
On-behalf-of: SAP [email protected]
Add caching section to the RGW Encryption docs. Add cache
settings to the RGW configuration reference.

Signed-off-by: Marcel Lauhoff <[email protected]>
On-behalf-of: SAP [email protected]
Goal: Support multiple backends and faking / mocking for testing.

Add abstract classes Keyring (factory) and KeyringSecret. Add
"Unsupported" implementation for non-Linux platforms. Add a get_best
factory function that currently returns the LinuxKeyring impl on Linux
or Unsupported elsewhere.

Signed-off-by: Marcel Lauhoff <[email protected]>
On-behalf-of: SAP [email protected]
Add SSE Key Management System secrets cache to RGW.

It is common to have secrets shared by many if not all objects in a
bucket. Without RGW-side caching every PUT/GET will cause a request to
an external KSM. This not only adds load to the KSM, but also slows
down read and writes.

Combine WebCache, ceph::async::call_once and LinuxKeyringSecret into
KMSCache. WebCache stores async::once_result to wrap results of a KMS
secret fetch to mitigate cache stampedes (concurrent cache requests to
the same key coalesce into one). The retrieved secrets are stored in
the Linux kernel key retention service (LinuxKeyringSecret) for safe
keeping and retrial by subsequent requests. KMSCache adds a TTL reaper
and life cycle.

Cache values and error handling: The cache stores positive
fetch results, permanent errors (e.g key does not exists) and
transient errors (e.g fetch timeout). Each with a different TTL.

Unit tests to cover cached / uncached KMS retrieve and runtime cache
disable via config.

Add perf counter `kms_fetch_lat` to track KMS fetch request latency
and error counters to track permanent, transient and key store
errors.

Signed-off-by: Marcel Lauhoff <[email protected]>
Fixes: https://tracker.ceph.com/issues/68524
On-behalf-of: SAP [email protected]
Signed-off-by: Marcel Lauhoff <[email protected]>
On-behalf-of: SAP [email protected]
Signed-off-by: Marcel Lauhoff <[email protected]>
On-behalf-of: SAP [email protected]
KMS backends Barbican, Vault KV, and KMIP have a static key per
key_id. However, with Vault Transit, each object has a unique DEK
wrapped by the transit key.

Keying th cache with key_id in Transit mode results in only the first
DEK to be cached for all subsequent objects.

Fix this by appending a hash of the wrapped DEK to the cache key.

Signed-off-by: Marcel Lauhoff <[email protected]>
On-behalf-of: SAP [email protected]
sieve_expire_erase_unmutexed did not update the sieve hand passed as
advertised. Make it return the updated hand and use that to
update the global _sieve_hand in expire_erase

Signed-off-by: Marcel Lauhoff <[email protected]>
On-behalf-of: SAP [email protected]
Signed-off-by: Marcel Lauhoff <[email protected]>
On-behalf-of: SAP [email protected]
Reset reaper state to monostate in the async and threaded case.
Fixes a possible use after free in the async reaper case.

Signed-off-by: Marcel Lauhoff <[email protected]>
On-behalf-of: SAP [email protected]
1. Don't delete the KMS cache before draining/joining the frontend
coroutine threads. They may still depend on the KMS cache.
2. Stop the TTL reaper early to get it off the coroutine pool.

Signed-off-by: Marcel Lauhoff <[email protected]>
On-behalf-of: SAP [email protected]
The testing backend uses a 'keysel' attribute to derive a per object
key from the KEK in the config. A single key_id with distinct keysel
has different keys and need to be cached as such.

Add the keysel to the cache key id to handle these collisions.

Signed-off-by: Marcel Lauhoff <[email protected]>
On-behalf-of: SAP [email protected]
@irq0

irq0 commented Jun 2, 2026

Copy link
Copy Markdown
Member Author

jenkins test make check

2 similar comments
@irq0

irq0 commented Jun 2, 2026

Copy link
Copy Markdown
Member Author

jenkins test make check

@irq0

irq0 commented Jun 2, 2026

Copy link
Copy Markdown
Member Author

jenkins test make check

@irq0

irq0 commented Jun 2, 2026

Copy link
Copy Markdown
Member Author

@irq0 Could you rebase this? I'll run it through testing as soon as you do and we can try to get it in before the Umbrella cut off.

@adamemerson Done. The AES GCM change added another call site to a function that needs another param with this PR.

@adamemerson

Copy link
Copy Markdown
Contributor

This can merge, mark it for backport for the first point release of Umbrella.

@anrao19

anrao19 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

pr testing completed and approved by @ivancich , tracker details : https://tracker.ceph.com/issues/77211
@irq0, if no further testing is needed then this can be merged

@irq0

irq0 commented Jun 9, 2026

Copy link
Copy Markdown
Member Author

pr testing completed and approved by @ivancich , tracker details : tracker.ceph.com/issues/77211 @irq0, if no further testing is needed then this can be merged

Not further testing needed from my side. Who does the merge of these kinds of PRs usually?

@adamemerson

Copy link
Copy Markdown
Contributor

@irq0 Please make a backport tracker for this so we can get it into Umbrella at the first point release.

@cbodley

cbodley commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Please make a backport tracker for this so we can get it into Umbrella at the first point release.

@adamemerson it doesn't look like an umbrella branch has forked yet. have you seen any announcements about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.