Skip to content

Add AWS Keyspace support using IAM temporary credentials#2

Open
ChaitanyaSingla wants to merge 3 commits into
rdkcentral:mainfrom
ChaitanyaSingla:aws-keyspace-support
Open

Add AWS Keyspace support using IAM temporary credentials#2
ChaitanyaSingla wants to merge 3 commits into
rdkcentral:mainfrom
ChaitanyaSingla:aws-keyspace-support

Conversation

@ChaitanyaSingla
Copy link
Copy Markdown

@ChaitanyaSingla ChaitanyaSingla commented Aug 28, 2024

This pull request introduces IAM-based access for AWS keyspace functionality. The AWS SDK will now automatically retrieve the secret access key, access key ID and session token from the appropriate chain provider based on the specified AWS region. This retrieval is for the assumed role attached to the service's instance.
Along with this, Cassandra database port can be configured using the configuration.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Aug 28, 2024

CLA assistant check
All committers have signed the CLA.

Comment thread db/cassandra_client.go Outdated
cluster.Keyspace = conf.GetString("xconfwebconfig.database.test_keyspace", DefaultTestKeyspace)
deviceKeyspace = conf.GetString("webconfig.database.device_test_keyspace", DefaultDeviceTestKeyspace)
isIamBasedAccessEnabled := conf.GetBoolean("xconfwebconfig.database.iam_based_access_enabled")
if isIamBasedAccessEnabled {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if someone want to access the AWS keyspace with AccessKey and SecretKey then there is no provision as of now. Can you enhance the same?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have enhanced the same.

@pradeeptakdas
Copy link
Copy Markdown

Hi @gravi21
Can you please merge this PR if you are Happy? Thanks!

@chaitanyasingla-dt
Copy link
Copy Markdown

@rdkcmf-jenkins
Copy link
Copy Markdown
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 1 file pending identification.

  • Protex Server Path: /home/blackduck/github/xconfwebconfig/2/rdkcentral/xconfwebconfig

  • Commit: 66620b0

Report detail: gist'

@rdkcmf-jenkins
Copy link
Copy Markdown
Contributor

b'## WARNING: A Blackduck scan failure has been waived

A prior failure has been upvoted

  • Upvote reason: OK

  • Commit: 66620b0
    '

@pradeeptakdas
Copy link
Copy Markdown

Hi @ChaitanyaSingla

Please close this PR and please create a New PR once you are ready with the code contribution. All the review comments discussed in a meeting was added to the RDKDEV ticket associated with this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants