Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix-comparison #841

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

fix-comparison #841

wants to merge 2 commits into from

Conversation

refark
Copy link

@refark refark commented Dec 11, 2023

Hello,

I'm using Spring Cloud AWS in prod to retrieve ROTATE credentials for connecting to the OpenSearch service, but it's not working as expected. I can see, that Spring Cloud loads new credentials every hour, but the environment variables don't seem to be updating. To achieve the desired behavior, I had to make a small, specific change. For me it seems like a small bag fix.

@pivotal-cla
Copy link

@refark Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-cla
Copy link

@refark Thank you for signing the Contributor License Agreement!

@mp911de
Copy link
Member

mp911de commented Dec 11, 2023

I wonder why the secret instance is no longer the same as the requested one. Did you find out by chance why the secret instance has changed?

@refark
Copy link
Author

refark commented Dec 11, 2023

No, I didn't. I have a guess. AWS credentials are requested twice at the service start. At some point, one of the credentials becomes revoked, and the app continues to work with one secret instance (based on my understanding of the logs). It's worth mentioning that we have a custom properties source locator to copy some properties from the postgres table into the environment. Maybe this is the cause of the second credentials request.

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.

3 participants