Fix Trust token scope for drivers

This fix driver token scope to make sure we use correct token
scope from Trust.

Change-Id: If5b31951959c7a141dc1cae5fefcabe4ebf438b3
This commit is contained in:
ricolin 2023-07-21 10:54:23 +08:00
parent 209f07f1e5
commit eca79453c0
5 changed files with 26 additions and 0 deletions

View File

@ -62,6 +62,11 @@ function generate_certificates {
"password": "$TRUSTEE_PASSWORD"
}
}
},
"scope": {
"OS-TRUST:trust": {
"id": "$TRUST_ID"
}
}
}
}

View File

@ -98,6 +98,11 @@ function generate_certificates {
"password": "$TRUSTEE_PASSWORD"
}
}
},
"scope": {
"OS-TRUST:trust": {
"id": "$TRUST_ID"
}
}
}
}

View File

@ -161,6 +161,11 @@ def get_user_token(config, verify_ca):
"password": "%(trustee_password)s"
}
}
},
"scope": {
"OS-TRUST:trust": {
"id": "$(trust_id)s"
}
}
}
}
@ -168,6 +173,7 @@ def get_user_token(config, verify_ca):
params = {
'trustee_user_id': config['TRUSTEE_USER_ID'],
'trustee_password': config['TRUSTEE_PASSWORD'],
'trust_id': config['TRUST_ID'],
}
creds = creds_str % params
headers = {'Content-Type': 'application/json'}

View File

@ -73,6 +73,11 @@ write_files:
"password": "$TRUSTEE_PASSWORD"
}
}
},
"scope": {
"OS-TRUST:trust": {
"id": "$TRUST_ID"
}
}
}
}

View File

@ -104,6 +104,11 @@ write_files:
"password": "$TRUSTEE_PASSWORD"
}
}
},
"scope": {
"OS-TRUST:trust": {
"id": "$TRUST_ID"
}
}
}
}