Skip to content

Feature/create new catalog items clear cache endpoint - #66

Merged
ivan-risueno merged 11 commits into
masterfrom
feature/create-new-catalog-items-clear-cache-endpoint
Aug 6, 2026
Merged

Feature/create new catalog items clear cache endpoint#66
ivan-risueno merged 11 commits into
masterfrom
feature/create-new-catalog-items-clear-cache-endpoint

Conversation

@ivan-risueno

Copy link
Copy Markdown
Contributor

No description provided.

SecurityScheme securityScheme = new SecurityScheme()
.name(securitySchemeName)
SecurityScheme bearerSecurityScheme = new SecurityScheme()
.name("bearerAuth")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If no longer using the securitySchemeName variable you could remove it. Or use it and create anew one for basicAuth and use variables instead of hardcoded values.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

Comment thread src/main/resources/application.yml Outdated
roles: PROVISIONER
roles:
- PROVISIONER
- CACHE_ADMIN

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should not reuse the same basic auth credentials used for the provision but instead have a separate set of credentials that are only able to delete caches. Since these credentials will be placed to bitbucket and in case they are compromised we want that they can only refresh caches, not provision anything.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

@sonarqubecloud

Copy link
Copy Markdown

- basicAuth: [ ]
tags:
- CacheAdministration
summary: Refresh a cache

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think it clears the cache, do not get fresh values, innit?

@ivan-risueno ivan-risueno Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It does refresh de cache. Before that, we tried to use the endpoint that only clears the cache, and add a request after filter that would check if that endpoint was called to load the cache right after, but we just changed the solution approach and added a new endpoint to refresh the cache, while keeping the actuator one as default.

@ivan-risueno
ivan-risueno merged commit e414737 into master Aug 6, 2026
3 checks passed
@ivan-risueno
ivan-risueno deleted the feature/create-new-catalog-items-clear-cache-endpoint branch August 6, 2026 06:09
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.

4 participants