Skip to content

Conversation

@HayimShaul
Copy link
Contributor

remove id caches

@HayimShaul HayimShaul added this to the Q4/25 milestone Dec 2, 2025
@HayimShaul HayimShaul self-assigned this Dec 2, 2025
Signed-off-by: Hayim.Shaul@ibm.com <hayimsha@fhe3.haifa.ibm.com>
@HayimShaul HayimShaul force-pushed the 1227-removing-one-show-ids-from-cache branch from 6f52e48 to 5989c62 Compare December 2, 2025 16:07
Hayim.Shaul@ibm.com added 12 commits December 2, 2025 11:45
Signed-off-by: Hayim.Shaul@ibm.com <hayimsha@fhe3.haifa.ibm.com>
Signed-off-by: Hayim.Shaul@ibm.com <hayimsha@fhe3.haifa.ibm.com>
Signed-off-by: Hayim.Shaul@ibm.com <hayimsha@fhe3.haifa.ibm.com>
Signed-off-by: Hayim.Shaul@ibm.com <hayimsha@fhe3.haifa.ibm.com>
Signed-off-by: Hayim.Shaul@ibm.com <hayimsha@fhe3.haifa.ibm.com>
Signed-off-by: Hayim.Shaul@ibm.com <hayimsha@fhe3.haifa.ibm.com>
Signed-off-by: Hayim.Shaul@ibm.com <hayimsha@fhe3.haifa.ibm.com>
Signed-off-by: Hayim.Shaul@ibm.com <hayimsha@fhe3.haifa.ibm.com>
Signed-off-by: Hayim.Shaul@ibm.com <hayimsha@fhe3.haifa.ibm.com>
Signed-off-by: Hayim.Shaul@ibm.com <hayimsha@fhe3.haifa.ibm.com>
Signed-off-by: Hayim.Shaul@ibm.com <hayimsha@fhe3.haifa.ibm.com>
Signed-off-by: Hayim.Shaul@ibm.com <hayimsha@fhe3.haifa.ibm.com>
@HayimShaul HayimShaul marked this pull request as ready for review December 7, 2025 17:07
@HayimShaul HayimShaul requested a review from adecaro December 7, 2025 17:07
func (p *Provider) RegisterVerifier(ctx context.Context, identity driver.Identity, v driver.Verifier) error {
if v == nil {
return errors.New("invalid verifier, expected a valid instance")
}
Copy link
Contributor

Choose a reason for hiding this comment

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

it looks like this function is not really needed anymore. I would start an investigation on the callers of this function. Maybe we can save further cycles.

if err != nil {
return nil, errors.Wrapf(err, "failed deserializing identity for signer [%s]", identity)
}

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we said to cache only the identity whose type is x509, no?
If we still cache the signers and the cache is only of size 5 there will be even more contention, no?

if setAlias {
p.signers.Add(aliasID, entry)
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

we are still caching any signer no matter the identity type. This will generate even more contention on the signers cache given its new size (5)

Copy link
Contributor

@adecaro adecaro left a comment

Choose a reason for hiding this comment

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

left comments, thanks.

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.

3 participants