Title: ValueError message is returned when attempting to format a behave report using a FIPS compliant system · Issue #834 · allure-framework/allure-python · GitHub
Open Graph Title: ValueError message is returned when attempting to format a behave report using a FIPS compliant system · Issue #834 · allure-framework/allure-python
X Title: ValueError message is returned when attempting to format a behave report using a FIPS compliant system · Issue #834 · allure-framework/allure-python
Description: I'm submitting a ... bug report feature request support request => Please do not submit support request here, see note at the top of this template. What is the current behavior? Running the following command returns a ValueError and poin...
Open Graph Description: I'm submitting a ... bug report feature request support request => Please do not submit support request here, see note at the top of this template. What is the current behavior? Running the followi...
X Description: I'm submitting a ... bug report feature request support request => Please do not submit support request here, see note at the top of this template. What is the current behavior? Running the ...
Opengraph URL: https://github.com/allure-framework/allure-python/issues/834
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ValueError message is returned when attempting to format a behave report using a FIPS compliant system","articleBody":"[//]: # (\r\n. Note: for support questions, please use Stackoverflow or Gitter**. \r\n. This repository's issues are reserved for feature requests and bug reports.\r\n.\r\n. In case of any problems with Allure Jenkins plugin** please use the following repository \r\n. to create an issue: https://github.com/jenkinsci/allure-plugin/issues\r\n.\r\n. Make sure you have a clear name for your issue. The name should start with a capital \r\n. letter and no dot is required in the end of the sentence. An example of good issue names:\r\n.\r\n. - The report is broken in IE11\r\n. - Add an ability to disable default plugins\r\n. - Support emoji in test descriptions\r\n)\r\n\r\n#### I'm submitting a ... \r\n - [X] bug report\r\n - [X] feature request\r\n - [ ] support request => Please do not submit support request here, see note at the top of this template.\r\n\r\n#### What is the current behavior?\r\nRunning the following command returns a ValueError and points to hashlib.md5() references within the project.\r\n```bash\r\nbehave -f allure_behave.formatter:AllureFormatter -o allure-results\r\n```\r\n\r\n```bash\r\nException ValueError: [digital envelope routines: EVP_DigestInit_ex] disabled for FIPS\r\nTraceback (most recent call last):\r\n File \"/usr/local/bin/behave\", line 8, in \u003cmodule>\r\n sys.exit(main())\r\n File \"/usr/local/lib/python3.10/site-packages/behave/__main__.py\", line 183, in main\r\n return run_behave(config)\r\n File \"/usr/local/lib/python3.10/site-packages/behave/__main__.py\", line 127, in run_behave\r\n failed = runner.run()\r\n File \"/usr/local/lib/python3.10/site-packages/behave/runner.py\", line 804, in run\r\n return self.run_with_paths()\r\n File \"/usr/local/lib/python3.10/site-packages/behave/runner.py\", line 824, in run_with_paths\r\n return self.run_model()\r\n File \"/usr/local/lib/python3.10/site-packages/behave/runner.py\", line 626, in run_model\r\n failed = feature.run(self)\r\n File \"/usr/local/lib/python3.10/site-packages/behave/model.py\", line 321, in run\r\n failed = scenario.run(runner)\r\n File \"/usr/local/lib/python3.10/site-packages/allure_commons/_allure.py\", line 248, in __call__\r\n with self:\r\n File \"/usr/local/lib/python3.10/site-packages/allure_commons/_allure.py\", line 252, in __enter__\r\n plugin_manager.hook.start_test(parent_uuid=None,\r\n File \"/usr/local/lib/python3.10/site-packages/pluggy/_hooks.py\", line 513, in __call__\r\n return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)\r\n File \"/usr/local/lib/python3.10/site-packages/pluggy/_manager.py\", line 120, in _hookexec\r\n return self._inner_hookexec(hook_name, methods, kwargs, firstresult)\r\n File \"/usr/local/lib/python3.10/site-packages/pluggy/_callers.py\", line 139, in _multicall\r\n raise exception.with_traceback(exception.__traceback__)\r\n File \"/usr/local/lib/python3.10/site-packages/pluggy/_callers.py\", line 103, in _multicall\r\n res = hook_impl.function(*args)\r\n File \"/usr/local/lib/python3.10/site-packages/allure_behave/listener.py\", line 71, in start_test\r\n self.start_scenario(context['scenario'])\r\n File \"/usr/local/lib/python3.10/site-packages/allure_behave/listener.py\", line 80, in start_scenario\r\n test_case.historyId = scenario_history_id(scenario)\r\n File \"/usr/local/lib/python3.10/site-packages/allure_behave/utils.py\", line 33, in scenario_history_id\r\n return md5(*parts)\r\n File \"/usr/local/lib/python3.10/site-packages/allure_commons/utils.py\", line 19, in md5\r\n m = hashlib.md5()\r\nValueError: [digital envelope routines: EVP_DigestInit_ex] disabled for FIPS\r\n```\r\n\r\n#### What is the expected behavior?\r\nBehave results should be generated in a Allure compatible format in the allure-results directory of the project.\r\n\r\n#### What is the motivation / use case for changing the behavior?\r\nTo ensure FIPS compliant/restricted systems utilizing this project are able to format output using any of the Allure adapters.\r\n\r\n#### Please tell us about your environment:\r\n- Allure version: 2.32.0\r\n- Test framework: behave@1.2.6\r\n- Allure adapter: allure-behave@2.13.5\r\n\r\n#### Other information\r\n- The solution involves replacing MD5 with a version of SHA-2 or greater as SHA-1 has been deprecated.\r\n- Stack Overflow post: https://stackoverflow.com/questions/67559170/paramiko-ssh-command-execution-failing-with-valueerror-digital-envelope-routi\r\n- Approved hash functions: https://csrc.nist.gov/projects/hash-functions\r\n- FIPS compliance FAQ: https://www.nist.gov/standardsgov/compliance-faqs-federal-information-processing-standards-fips","author":{"url":"https://github.com/Logan-L","@type":"Person","name":"Logan-L"},"datePublished":"2024-11-25T21:55:41Z","url":"https://github.com/allure-framework/allure-python/issues/834"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b82985b8-d655-d9d9-13dc-842adb95cdd3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A25C:DF88E:BDBCD:104732:6AFD4A74 |
| html-safe-nonce | 356c3aebf59dca25ae9604adfe685962bad7c86d02ac6a28d63a3458f184a569 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjVDOkRGODhFOkJEQkNEOjEwNDczMjo2QUZENEE3NCIsInZpc2l0b3JfaWQiOiIzOTc1NTk0ODM0MzA5NDc0NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f02a664a6bc3040ab3a7c48d0db896488b565d8367786c1773b46543ee5d72d8 |
| hovercard-subject-tag | issue:2692384342 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/allure-framework/allure-python/834/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5610c937faa32faf0b00abd80721df372b96cd0e30c5541b5f5d0cb23127e6df/allure-framework/allure-python/issues/834 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5610c937faa32faf0b00abd80721df372b96cd0e30c5541b5f5d0cb23127e6df/allure-framework/allure-python/issues/834 |
| og:image:alt | I'm submitting a ... bug report feature request support request => Please do not submit support request here, see note at the top of this template. What is the current behavior? Running the followi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Logan-L |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/allure-framework/allure-python git https://github.com/allure-framework/allure-python.git |
| octolytics-dimension-user_id | 5879127 |
| octolytics-dimension-user_login | allure-framework |
| octolytics-dimension-repository_id | 79346720 |
| octolytics-dimension-repository_nwo | allure-framework/allure-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 79346720 |
| octolytics-dimension-repository_network_root_nwo | allure-framework/allure-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width