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

Move filters to new API #9357

Merged
merged 1 commit into from
May 30, 2023
Merged

Move filters to new API #9357

merged 1 commit into from
May 30, 2023

Conversation

yawkat
Copy link
Member

@yawkat yawkat commented May 30, 2023

No description provided.

@yawkat yawkat requested a review from graemerocher May 30, 2023 13:22
@yawkat
Copy link
Member Author

yawkat commented May 30, 2023

@graemerocher please wait for tests to pass before merging 😄 I only ran related tests locally.

@sonarcloud
Copy link

sonarcloud bot commented May 30, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@graemerocher graemerocher merged commit f547a6a into 4.0.x May 30, 2023
8 checks passed
@graemerocher graemerocher deleted the migrate-filters branch May 30, 2023 13:54
@graemerocher graemerocher added the type: improvement A minor improvement to an existing feature label May 30, 2023
sdelamo added a commit that referenced this pull request Jun 3, 2023
[`EndpointsFilter`](https://github.com/micronaut-projects/micronaut-core/blob/4.0.x/management/src/main/java/io/micronaut/management/endpoint/EndpointsFilter.java#L44) was marked as @internal  in [#9357](#9357).

However, Micronaut Security needs to replace/disable that filter. The change to the new filters API forced the replacement in security to be done using the new API.

I think we should either remove the @internal or what I think is a more elegant solution, create a marker API to convey Endpoints sensitivity is handled externally and thus the filter should not be loaded.

That it is what this PR proposes.
sdelamo added a commit that referenced this pull request Jun 5, 2023
[`EndpointsFilter`](https://github.com/micronaut-projects/micronaut-core/blob/4.0.x/management/src/main/java/io/micronaut/management/endpoint/EndpointsFilter.java#L44) was marked as @internal  in [#9357](#9357).

However, Micronaut Security needs to replace/disable that filter. The change to the new filters API forced the replacement in security to be done using the new API.

I think we should either remove the @internal or what I think is a more elegant solution, create a marker API to convey Endpoints sensitivity is handled externally and thus the filter should not be loaded.

That it is what this PR proposes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: improvement A minor improvement to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants