Skip to content

Add feature based on aws-lc-rs cryptographic library instead of ring - #377

Closed
KirilNN wants to merge 2 commits into
Keats:masterfrom
KirilNN:enable-aws-lc-rs-feature
Closed

KirilNN wants to merge 2 commits into
Keats:masterfrom
KirilNN:enable-aws-lc-rs-feature

Conversation

@KirilNN

@KirilNN KirilNN commented Mar 12, 2024

Copy link
Copy Markdown

The goal here is to enable feature based on aws-lc-rs library, so it can be used on demand instead of ring which is not FIPS certified.

@Keats Keats left a comment •

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Can you add running with this feature on to the CI?

Comment thread Cargo.toml Outdated
[features]
default = ["use_pem"]
use_pem = ["pem", "simple_asn1"]
aws_lc_rs = ["aws-lc-rs"]

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

can we just call it fips? That lib name is not obvious

@KirilNN
KirilNN force-pushed the enable-aws-lc-rs-feature branch from 87ce7c3 to 6126206 Compare March 15, 2024 08:55
@KirilNN

KirilNN commented Mar 15, 2024

Copy link
Copy Markdown
Author

@Keats thanks for taking a look, I changed the feature name and added it to the CI, do you mind taking a look again?

@Keats

Keats commented Mar 15, 2024

Copy link
Copy Markdown
Owner

Have you seen this PR: #318 ? It's something I was considering

@KirilNN

KirilNN commented Mar 18, 2024

Copy link
Copy Markdown
Author

Well this is also reasonable imo, for me the question is whether these libs are FIPS compliant, cause this is the biggest issue we are tackling with this PR, as AWS did get it certified. Can we do features as well - like remove ring, get a feature for FIPS using aws lib and all the rest with the lib combo? Does it sound good? I believe removing ring is OK for everyone.

@Keats

Keats commented Mar 18, 2024

Copy link
Copy Markdown
Owner

It looks like building this lib on windows is problematic? aws/aws-lc#1477

@KirilNN

KirilNN commented Mar 21, 2024

Copy link
Copy Markdown
Author

@Keats that is very unfortunate. I think that there is a compliant Microsoft library for the same that should be windows compilable. Let me do some research and get back.

@KirilNN

KirilNN commented Apr 5, 2024 •

Copy link
Copy Markdown
Author

It looks like the symcrypt from Microsoft does not have wide support of platforms, although has the needed features, so I guess we can either merge the PR you suggest which is not guaranteed we have FIPS compliance, or we wait for the AWS folks to fix the windows build? Or maybe just use ring for windows?

@GlenDC

GlenDC commented Jan 9, 2025

Copy link
Copy Markdown

@Keats / @KirilNN I have some bandwidth to spare and in light of #399 I can help maintenance given this is the JWT lib with the most future benefit.

@KirilNN

KirilNN commented Jan 9, 2025

Copy link
Copy Markdown
Author

For sure, please go ahead

@GlenDC

GlenDC commented Jan 10, 2025

Copy link
Copy Markdown

@Keats I assume it would make sense to first focus on #410 and than take on this? or how do you see this?

@Keats

Keats commented Jan 10, 2025

Copy link
Copy Markdown
Owner

#410 will make this PR obsolete

@GlenDC

GlenDC commented Jan 10, 2025

Copy link
Copy Markdown

#410 will make this PR obsolete

Cool, in that case I'll focus on rebooting #410, feel free to already close this, unless you have a good reason not to.

@Keats

Keats commented Sep 29, 2025

Copy link
Copy Markdown
Owner

Implemented in another PR

@Keats Keats closed this Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants