Support application credentials as a source for EC2 auth
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
New
|
Undecided
|
Unassigned |
Bug Description
Unfortunately EC2 credentials are not secure enough. EC2 credentials are not protected by limited roles, expiration time, access rules and ec2 secret part is visible via get/list API calls. Leaked EC2 credentials imply a big security risk in terms of access, because EC2 creds token has the same power as a regular user/pass auth.
EC2 AUTH is actively used by Swift S3 emulation (not limited only to Swift, btw.) it would be nice to use application credentials as an auth source in keystone internals and issue a limited access token. With all features application credentials provide, EC2 can get a second wind.
An example of EC2 auth request with application credentials:
$ openstack application credential list
+------
| ID | Name | Project ID | Description | Expires At |
+------
| 3defd466f04646d
+------
POST http://
{
"credentials": {
"access": "3defd466f04646
"body_hash": "***",
"headers": {
"
"
"Host": "keystone:8080",
"User-Agent": "aws-cli/1.18.69 Python/3.8.10 Linux/5.
"
"X-Amz-Date": "20220505T101354Z",
"
},
"host": "",
"params": {},
"path": "/",
"signature": "appCredSecretB
"verb": "GET"
}
}
An example of EC2 auth token response with application credentials:
{
"token": {
"applicatio
"
{
"id": "9416a34e7f3b45
"method": "GET",
"path": "/v1/secrets/
}
],
"id": "3defd466f04646
"name": "test",
"restricted": true
},
"audit_ids": [
"
],
"catalog": [...],
"expires_at": "2022-05-
"is_
"is_domain": false,
"issued_at": "2022-05-
"methods": [
"
],
"project": {
"domain": {
"id": "default",
"name": "Default"
},
"id": "f8d450e9cb7b4f
"name": "test"
},
"roles": [
{
"id": "a66c3a324bc24c
"name": "limited_role"
}
],
"user": {
"domain": {
"id": "default",
"name": "Default"
},
"id": "0c4cac95c03944
"name": "appCredOwner",
"
}
}
}
description: | updated |
description: | updated |
description: | updated |
summary: |
- Add application credentials as a source for EC2 auth + Support application credentials as a source for EC2 auth |
This seems like a feature request, not a bug. Can you please write a spec for this?
https:/ /docs.openstack .org/keystone/ latest/ contributor/ proposing- features. html#specificat ions