Actions
Feature #42493
closedSimplify Login Radosgw-admin API
Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
% Done:
0%
Source:
Community (user)
Tags:
Backport:
Description
Hi Develops,
Actually for manage via REST API the radosgw services, we need to create a authentication like AWS with signature v2/v4 and its a pain in all scripting languages
Please simplify to a common autentification for REST RADOSGW ADMIN.
Updated by Brad Hubbard over 4 years ago
- Project changed from Ceph to rgw
- Category deleted (
common)
Updated by Konstantin Shalygin over 3 years ago
Actually it's pretty easy, on bash for example:
#!/bin/bash
s3_access_key=""
s3_secret_key=""
s3_host="objects-us-east-1.dream.io"
query="admin/user"
method="GET"
date=$(date -R -u)
header="${method}\n\n\n${date}\n/${query}"
sig=$(echo -en ${header} | openssl sha1 -hmac ${s3_secret_key} -binary | base64)
curl -s -H "Date: ${date}" \
-H "Authorization: AWS ${s3_access_key}:${sig}" \
-H "Host: ${s3_host}" \
-X ${method} \
"https://${s3_host}/${query}?list" | jq
Updated by Casey Bodley 7 days ago
- Status changed from New to Rejected
ceph provides a shell script in https://github.com/ceph/ceph/blob/main/examples/rgw/rgw_admin_curl.sh that adds sigv2 signatures
Actions