Skip to content

Commit 76a5073

Browse files
authored
Deprecate ActiveRolesProvider for removal (#2404)
1 parent 92ead05 commit 76a5073

File tree

7 files changed

+8
-3
lines changed

7 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,8 @@ at locations that better optimize for object storage.
9191

9292
### Deprecations
9393

94-
* The property `polaris.active-roles-provider.type` is deprecated in favor of
95-
`polaris.authentication.active-roles-provider.type`. The old property is still supported, but will be removed in a
96-
future release.
94+
- The property `polaris.active-roles-provider.type` is deprecated for removal.
95+
- The `ActiveRolesProvider` interface is deprecated for removal.
9796

9897
### Fixes
9998

runtime/service/src/main/java/org/apache/polaris/service/auth/ActiveRolesAugmentor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
* authentication.
3636
*/
3737
@ApplicationScoped
38+
@Deprecated
3839
public class ActiveRolesAugmentor implements SecurityIdentityAugmentor {
3940

4041
// must run after AuthenticatingAugmentor

runtime/service/src/main/java/org/apache/polaris/service/auth/ActiveRolesProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
* Provides the active roles for a given principal. Implementations may rely on the active request
2626
* or SecurityContext to determine the active roles.
2727
*/
28+
@Deprecated
2829
public interface ActiveRolesProvider {
2930
/**
3031
* Returns the active roles for the given principal.

runtime/service/src/main/java/org/apache/polaris/service/auth/AuthenticationRealmConfiguration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ interface AuthenticatorConfiguration {
4949
* The configuration for the active roles provider. The active roles provider is responsible for
5050
* determining the active roles for a given Polaris principal.
5151
*/
52+
@Deprecated
5253
ActiveRolesProviderConfiguration activeRolesProvider();
5354

5455
interface ActiveRolesProviderConfiguration {

runtime/service/src/main/java/org/apache/polaris/service/auth/DefaultActiveRolesProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
*/
4949
@RequestScoped
5050
@Identifier("default")
51+
@Deprecated
5152
public class DefaultActiveRolesProvider implements ActiveRolesProvider {
5253
private static final Logger LOGGER = LoggerFactory.getLogger(DefaultActiveRolesProvider.class);
5354

runtime/service/src/main/java/org/apache/polaris/service/config/ServiceProducers.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ public AuthenticationRealmConfiguration realmAuthConfig(
384384
}
385385

386386
@Produces
387+
@Deprecated
387388
public ActiveRolesProvider activeRolesProvider(
388389
AuthenticationRealmConfiguration config,
389390
@Any Instance<ActiveRolesProvider> activeRolesProviders) {

runtime/service/src/test/java/org/apache/polaris/service/auth/ActiveRolesAugmentorTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import org.junit.jupiter.params.ParameterizedTest;
3636
import org.junit.jupiter.params.provider.ValueSource;
3737

38+
@SuppressWarnings("deprecation")
3839
public class ActiveRolesAugmentorTest {
3940

4041
private ActiveRolesAugmentor augmentor;

0 commit comments

Comments
 (0)