st2 icon indicating copy to clipboard operation
st2 copied to clipboard

bcrypt dependency conflict in v3.8.1 with st2-auth-backend-flat-file

Open mzenzie-viasat opened this issue 2 months ago • 1 comments

SUMMARY

Dependency conflict with bcrypt when using stackstorm at latest (v3.8.1) release tag

STACKSTORM VERSION

st2 3.8.1, on Python 3.8.10

OS, environment, install method

Post what OS you are running this on, along with any other relevant information/

  • Docker container
  • Development install (from git @v3.8.1)

Steps to reproduce the problem

Show how to reproduce the problem, using a minimal test-case. Make sure to include any content (pack content - workflows, actions, etc.) which are needed to reproduce the problem.

  • Checkout v3.8.1 in stackstorm repo
  • Run st2-run-pack-tests

Expected Results

What did you expect to happen when running the steps above? -Pack tests run

Actual Results

What happened? What output did you get? -Dependency conflict on bcrypt

Also documented here: https://github.com/StackStorm/st2-auth-backend-flat-file/issues/18 with more details about the requirements conflict.

mzenzie-viasat avatar Nov 26 '25 18:11 mzenzie-viasat

👋 This, I believe will be solved once 3.9 is GA. It should be solved on that branch already, if I'm not mistaken. I ran into this a while back and am executing a patch on the requirements file in the docker container where we use the st2-run-tests script as a workaround. Might be useful to you:

diff --git a/requirements.txt b/requirements.txt
index b0b44eda3..fee78aaed 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -67,7 +67,7 @@ semver==2.13.0
 simplejson
 six==1.13.0
 sseclient-py==1.7
-st2-auth-backend-flat-file@ git+https://github.com/StackStorm/st2-auth-backend-flat-file.git@master
+st2-auth-backend-flat-file@ git+https://github.com/StackStorm/[email protected]
 st2-auth-ldap@ git+https://github.com/StackStorm/st2-auth-ldap.git@master
 st2-rbac-backend@ git+https://github.com/StackStorm/st2-rbac-backend.git@master
 stevedore==1.30.1

jpavlav avatar Nov 27 '25 22:11 jpavlav