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

[WFCORE-7110] Deprecate the security manager subsystem and report it will be removed in a future release. #6297

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ public class SecurityManagerExtension implements Extension {
public static final PathElement SUBSYSTEM_PATH = PathElement.pathElement(SUBSYSTEM, Constants.SUBSYSTEM_NAME);
protected static final String RESOURCE_NAME = SecurityManagerExtension.class.getPackage().getName() + ".LocalDescriptions";

private static final ModelVersion CURRENT_MODEL_VERSION = ModelVersion.create(3, 0, 0);
private static final ModelVersion CURRENT_MODEL_VERSION = ModelVersion.create(4);
static final ModelVersion DEPRECATED_SINCE = ModelVersion.create(4);

public static StandardResourceDescriptionResolver getResolver(final String... keyPrefix) {
StringBuilder prefix = new StringBuilder(Constants.SUBSYSTEM_NAME);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

package org.wildfly.extension.security.manager;

import static org.wildfly.extension.security.manager.SecurityManagerExtension.DEPRECATED_SINCE;

import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
Expand All @@ -29,6 +31,7 @@ class SecurityManagerRootDefinition extends PersistentResourceDefinition {
private SecurityManagerRootDefinition() {
super (SecurityManagerExtension.SUBSYSTEM_PATH, SecurityManagerExtension.getResolver(),
SecurityManagerSubsystemAdd.INSTANCE, ReloadRequiredRemoveStepHandler.INSTANCE);
setDeprecated(DEPRECATED_SINCE);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#

security-manager=The Security Manager subsystem
security-manager.deprecated=The use of the Java security manager is being disabled in Java under JEP-486, additionally security manager integration is not supported with Jakarta EE 11. The security manager extension will be removed in a future version.
security-manager.add=Operation Adds subsystem
security-manager.remove=Operation Removes subsystem
security-manager.deployment-permissions=The permissions that are to be granted to deployments
Expand Down
Loading