linode / linodego

Go client for Linode REST v4 API
MIT License
137 stars 81 forks source link

[Help]: Using access key + secret key #489

Closed ivasylenko closed 4 months ago

ivasylenko commented 5 months ago

Description

I am currently using PAT, but looking for a way to switch to access keys. Trying to understand if this is something I can achieve with linodego or need to do something else

Attempted Code

No response

yec-akamai commented 5 months ago

Hi @ivasylenko,

Thank you for reaching out. Currently the Linode API only supports authentication using Personal Access tokens and OAuth tokens. Access and secret keys are generally reserved for accessing Object Storage buckets via the S3 API, which you can access using the AWS Go SDK's s3 package: https://docs.aws.amazon.com/sdk-for-go/api/service/s3/

zliang-akamai commented 5 months ago

You may also use newer AWS SDK for Go v2 or another open-source S3 client like MinIO Go client, which are more compact and lighter than AWS SDK for Go v1.

ykim-1 commented 4 months ago

Hey @ivasylenko , closing this issue for now but do reach out if you need additional help following @yec-akamai 's comment above.