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

Added verification of tasks/thinexecutions in DataflowOAuthIT. #5817

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

corneil
Copy link
Contributor

@corneil corneil commented May 17, 2024

No description provided.

@corneil corneil requested review from onobc and cppwfs May 17, 2024 16:05
log.debug("Response is {}", response);
ok = !JsonPath.parse(response).read("$._links.self.href", String.class).isEmpty();

// TODO add checks for new endpoints to check security
Copy link
Contributor

@onobc onobc May 22, 2024

Choose a reason for hiding this comment

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

This does add coverage for the thin/executions endpoint but what is the expectation for newly added endpoints? How will we know to abide by this comment?

The issue that we ran into was that PRO was out of sync w/ OSS endpoint mappings. This does not fill that gap.

I would recommend removing this comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test is executed as part of ci-it-security.
The Pro will be covered by the endpoint test running in CF ATs.

Copy link
Contributor

Choose a reason for hiding this comment

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

The Pro will be covered by the endpoint test running in CF ATs.

Which endpoint test? The point of https://github.com/pivotal/scdf-pro/issues/192 is to find out issues prior to CF ATs (in the PRO tests).

Copy link
Contributor

@onobc onobc left a comment

Choose a reason for hiding this comment

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

Thx @corneil - a few comments to address.

Copy link
Contributor

@cppwfs cppwfs left a comment

Choose a reason for hiding this comment

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

I agree with Chris' requests. No further additions from my side.

@corneil corneil requested a review from onobc May 23, 2024 09:40
response = cmdResult.getStdout();
log.debug("Response is {}", response);
ok = !JsonPath.parse(response).read("$._links.self.href", String.class).isEmpty();
// TODO add checks for new endpoints to check security
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 this test is the place to add endpoints to. I still would like to remove this comment.

@corneil corneil requested review from cppwfs and onobc May 30, 2024 09:58
String api = "tasks/executions";
if (VersionUtils.isDataFlowServerVersionGreaterThanOrEqualToRequiredVersion(
VersionUtils.getThreePartVersion(version), "2.11.3")) {
api = "tasks/thinexecutions";
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure why we are testing this endpoint in the DataflowOauthIT test. It seems like it should be in a different test. WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Checking some basic security on endpoints. As we add endpoints we can add basic checks to ensure the endpoint security is properly configured.

@corneil corneil requested a review from cppwfs June 6, 2024 08:38
@cppwfs cppwfs added this to the 2.11.4 milestone Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants