Got it

OBS Encryption key Issue while accessing data

Created: May 5, 2022 14:01:21Latest reply: May 31, 2022 09:42:06 325 4 0 0 0
  HiCoins as reward: 0 (problem unresolved)

OBS Encryption key  Issue while accessing data 

Scenerio : OBS Bucket image url not able to access after encription is selected in OBS. Following Error

This XML file does not appear to have any style information associated with it. The document tree is shown below.

<Error>
<Code>InvalidArgument</Code>
<Message>Requests specifying Server Side Encryption with KMS managed keys require Signature Version 4.</Message>
<RequestId>000001809470D953B0183180CC171128</RequestId>
<HostId>jQmrAC/4KAJfs5/P9++a93LhOuhYaZyvw1EYkUqmYobIAhyD693YYIWonJZjxESw</HostId>
<ArgumentName>Authorization</ArgumentName>
<ArgumentValue>null</ArgumentValue>

</Error>



  • x
  • convention:

Featured Answers
little_fish
Admin Created May 5, 2022 14:19:01

Dear rambhattarai,

Check your secret access key and signature algorithm. For details, see Why Don't the Signatures Match?


If you are the owner of the object and cannot access the object using the URL, check the following items:

Check whether the ContentType of the object metadata is correct. For details about the values of ContentType, see Object Metadata Overview. If the ContentType value does not fall into the correct value range, correct it. You can change the ContentType in the object metadata on OBS Console, or by using an API or SDK.

More about Why Can't I Access an Object Through Its URL? and Accessing OBS Using a Temporary URL. Thanks.

View more
  • x
  • convention:

All Answers
little_fish
little_fish Admin Created May 5, 2022 14:05:50

Dear we are working on it now.
View more
  • x
  • convention:

little_fish
little_fish Admin Created May 5, 2022 14:19:01

Dear rambhattarai,

Check your secret access key and signature algorithm. For details, see Why Don't the Signatures Match?


If you are the owner of the object and cannot access the object using the URL, check the following items:

Check whether the ContentType of the object metadata is correct. For details about the values of ContentType, see Object Metadata Overview. If the ContentType value does not fall into the correct value range, correct it. You can change the ContentType in the object metadata on OBS Console, or by using an API or SDK.

More about Why Can't I Access an Object Through Its URL? and Accessing OBS Using a Temporary URL. Thanks.

View more
  • x
  • convention:

ram_bhattarai
ram_bhattarai Created May 11, 2022 13:40:40

Hi, little_fish thanks for share references its was good help but this was shorted out by following method:

Following are the method I follow :
Question : How to access encrypted obs bucket objects images / files /object from obs bucket:

Data Encrypted Format :

https://bucketname.obs.cn-north-4.myhuaweicloud.com:443/image.png?AccessKeyId=xxx&Expires=xxx&response-content-disposition=xxx&x-obs-security-token=xxx&Signature=xxx

Tool To generate : Signature

https://obs-community.obs.cn-north-1.myhuaweicloud.com/sign/en-us/query_signature.html?headerKey=x-obs-server-side-encryption&headerValue=kms&headerKey=x-obs-server-side-encryption-kms-key-id&headerValue=79d7a87e-5a5d-4ca7-940a-dee084257655&headerKey=&headerValue=

Place Values :
AK
SK
Endpoint = Object URL (Link)
HTTP-Verb=get
Content-Type
Expires =3600
Canonicalized Resource =/folderName/ImageName.extension
Note : relative path (Eg. /bucketName/object path/objectname
View more
  • x
  • convention:

little_fish
little_fish Admin Created May 31, 2022 09:42:06

  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.