Skip to content

Remove getenv(OPENSSL_FIPS) in openssl command - #11995

Closed
bernd-edlinger wants to merge 1 commit into
openssl:masterfrom
bernd-edlinger:remove_openssl_fips
Closed

bernd-edlinger wants to merge 1 commit into
openssl:masterfrom
bernd-edlinger:remove_openssl_fips

Conversation

@bernd-edlinger

Copy link
Copy Markdown
Member

This is left over from the past.

Checklist
  • documentation is added or updated
  • tests are added or updated

This is left over from the past.
@bernd-edlinger bernd-edlinger added branch: master Applies to master branch branch: 1.1.1 Applies to OpenSSL_1_1_1-stable branch (EOL) labels May 30, 2020
@bernd-edlinger

Copy link
Copy Markdown
Member Author

My concern about this code, is that it might be re-used for the 3.0 FIPS provider,
and then in consequence be set in environment variables, which will then
1.1.1 fail unexpectedly.

@paulidale paulidale 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.

The configuration file specifies FIPS mode now. It's reasonable for this to go.

At the least the message should be changed to say that the environment variable is not supported, use the configuration file instead.

@paulidale

Copy link
Copy Markdown
Contributor

I'm unsure about 1.1.1 for this.

@bernd-edlinger

Copy link
Copy Markdown
Member Author

Why, this is no documented behavior, and it plays a prank on the user.

@levitte

levitte commented May 31, 2020

Copy link
Copy Markdown
Member

This environment variable was most relevant with the FIPS OpenSSL Module 2.0 (compatible with OpenSSL 1.0.2). The reason we have the error is for users that have upgrade to the 1.1.x series must not be lead to believe that OPENSSL_FIPS still has the meaning they might think.

So I see nothing against removing this in 3.0, we have moved far enough from 1.0.2 to simply drop the check. For 1.1.1, I'm just as dubious as @paulidale.

@bernd-edlinger

Copy link
Copy Markdown
Member Author

Okay, then I'll add this to my 1.1.1 feature branch #11900

@bernd-edlinger bernd-edlinger added the approval: done This pull request has the required number of approvals label May 31, 2020
@openssl-machine openssl-machine added approval: ready to merge The 24 hour grace period has passed, ready to merge and removed approval: done This pull request has the required number of approvals labels Jun 1, 2020
@openssl-machine

Copy link
Copy Markdown
Collaborator

This pull request is ready to merge

openssl-machine pushed a commit that referenced this pull request Jun 1, 2020
This is left over from the past.

Reviewed-by: Paul Dale <[email protected]>
(Merged from #11995)
@bernd-edlinger

Copy link
Copy Markdown
Member Author

Merged to master as 32df134

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

Labels

approval: ready to merge The 24 hour grace period has passed, ready to merge branch: master Applies to master branch branch: 1.1.1 Applies to OpenSSL_1_1_1-stable branch (EOL)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants