Skip to content

Conversation

@jdconrad
Copy link
Contributor

@jdconrad jdconrad commented Dec 5, 2025

This reverts commit ef42c70.

@jdconrad jdconrad added :Core/Infra/Transport API Transport client API >refactoring auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) skip-transport-version-generation v9.3.0 labels Dec 5, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Core/Infra Meta label for core/infra team label Dec 5, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

+ "and generateTransportVersion gradle task",
TransportVersions.DEFINED_VERSIONS.getLast().id(),
equalTo(8_797_0_05)
equalTo(8_772_0_06)
Copy link
Contributor

Choose a reason for hiding this comment

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

Presumably this test goes away entirely when we ditch TransportVersions.java?

Copy link
Contributor Author

@jdconrad jdconrad Dec 5, 2025

Choose a reason for hiding this comment

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

Yes. I considered ditching this already, but didn't want any additional accidents in the interim.


public static final TransportVersion ROLE_REMOTE_CLUSTER_PRIVS = TransportVersions.V_8_15_0;
public static final TransportVersion ROLE_MONITOR_STATS = TransportVersions.V_8_17_0;
public static final TransportVersion ROLE_MONITOR_STATS = TransportVersion.fromId(8797002);
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we need to keep this. So far as I can tell, we don't use binary serialization to persist this as part of Authentication. The only usage I see there actually serializes this as xcontent, so I think we can ditch the transport backcompat here. Perhaps someone in @elastic/es-security can confirm.

Copy link
Contributor Author

@jdconrad jdconrad Dec 5, 2025

Choose a reason for hiding this comment

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

That makes sense. I'm definitely exercising more caution removing anything security related at this point.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think the correct thing to do here is to update these to minimumCompatible transport version and remove tests that no longer make sense, but I would like security to confirm that as well.

@jdconrad jdconrad removed the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants