swift和herodote的身份验证中间件
项目描述
# 关于
Swift身份验证中间件,用于herodote(仅限python3)
# 安装
pip install -r requirements.txt python setup.py install
# 设置
在proxy-server.conf中,将herodote-auth过滤器添加到管道
pipeline = catch_errors gatekeeper healthcheck proxy-logging cache container_sync bulk tempurl ratelimit crossdomain swift3 herodoteauth authtoken keystoneauth
并添加过滤器部分
[filter:herodoteauth] use = egg:herodote-auth#herodote_auth # 解码swift令牌的秘密(herodote配置中secrets.swift部分) secret = aSharedSecretWithHerodote herodote_url = https://myHerodoteServer # herodote中定义的令牌,用于允许远程触发(openstack.swift.tokens部分) token=myherodotetoken