Package com.microsoft.jenkins.azuread
Class ObjId2FullSidMap
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,String>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringEscape hatch to restore the legacy behaviour of authorizing groups by their Entra display name. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetOrOriginal(String objectId) static booleanWhether the insecure legacy display-name authorization behaviour is enabled viaENABLE_DISPLAY_NAME_AUTHORIZATION_PROPERTY.voidputFullSid(String fullSid) Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Field Details
-
ENABLE_DISPLAY_NAME_AUTHORIZATION_PROPERTY
Escape hatch to restore the legacy behaviour of authorizing groups by their Entra display name. Disabled by default (SECURITY-3935): Entra group display names are neither unique nor immutable and, unless the tenant restricts it, any member can create a group with an arbitrary display name. Matching a bare display name against a grant therefore lets an attacker inherit a privileged group's permissions by creating a colliding group. Set this system property totrueat startup only as a temporary measure while migrating existing grants to object IDs.
-
-
Constructor Details
-
ObjId2FullSidMap
public ObjId2FullSidMap()
-
-
Method Details
-
isDisplayNameAuthorizationEnabled
public static boolean isDisplayNameAuthorizationEnabled()Whether the insecure legacy display-name authorization behaviour is enabled viaENABLE_DISPLAY_NAME_AUTHORIZATION_PROPERTY. Defaults tofalse. -
putFullSid
-
getOrOriginal
-