Skip to content

Add mesos authentication to the mesos cli#383

Closed
andreaspeters wants to merge 2 commits intoapache:masterfrom
AVENTER-UG:add-mesos-cli-authentication
Closed

Add mesos authentication to the mesos cli#383
andreaspeters wants to merge 2 commits intoapache:masterfrom
AVENTER-UG:add-mesos-cli-authentication

Conversation

@andreaspeters
Copy link
Contributor

@andreaspeters andreaspeters commented May 2, 2021

The following points I done:

  • Add authentication against mesos manager and agent
  • Add option to skip SSL verification of the mesos-agent
  • Changed the order of "task list" to get back more running states

Copy link
Member

@asekretenko asekretenko left a comment

Choose a reason for hiding this comment

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

The approach looks good overall; thanks for addressing this!

@andreaspeters
Copy link
Contributor Author

Does we have a list of features we want to see in the mesos_cli? I'm also planning to develope a plugin for our kubernetes framework.

@andreaspeters
Copy link
Contributor Author

@asekretenko I'm done now. U can review again. :-)

@andreaspeters andreaspeters requested a review from asekretenko May 7, 2021 21:05
@kamaradclimber
Copy link
Contributor

Could you squash all commits to increase readability of this history before merging?

@andreaspeters
Copy link
Contributor Author

andreaspeters commented May 24, 2021

Could you squash all commits to increase readability of this history before merging?

Done :-)

@kamaradclimber
Copy link
Contributor

Are you sure? I still see 17 commits.

@andreaspeters
Copy link
Contributor Author

Are you sure? I still see 17 commits.

🤔 not 100%! But like u see, the last commit include all changes. 🤷‍♂️

@andreaspeters
Copy link
Contributor Author

Are you sure? I still see 17 commits.

thinking not 100%! But like u see, the last commit include all changes. man_shrugging

Yeah it looks like I done something wrong during my past commits that the squash didn't worked as I expected. Can u squash during the MR?

@cf-natali
Copy link
Contributor

Are you sure? I still see 17 commits.

thinking not 100%! But like u see, the last commit include all changes. man_shrugging

Yeah it looks like I done something wrong during my past commits that the squash didn't worked as I expected. Can u squash during the MR?

Maybe, but it'll be easier using git rebase. Then just need to git push -f

@andreaspeters
Copy link
Contributor Author

Are you sure? I still see 17 commits.

thinking not 100%! But like u see, the last commit include all changes. man_shrugging

Yeah it looks like I done something wrong during my past commits that the squash didn't worked as I expected. Can u squash during the MR?

Maybe, but it'll be easier using git rebase. Then just need to git push -f

Hopefully I didn't broke more as I fixed with the rebase. 😅

author Andreas Peters <ap@aventer.biz> 1619948566 +0200
committer Andreas Peters <ap@aventer.biz> 1621969642 +0200
gpgsig -----BEGIN PGP SIGNATURE-----

 iQEzBAABCAAdFiEEGTSo9iZLKmYD5nQgaoPxJUHPzPkFAmCtSuoACgkQaoPxJUHP
 zPmV7Qf+KuOPleQh/tEGVuMoA80PcvMQNTay5hcBbKyFlPhpPklyjzAIKo4F01GQ
 3yXthlKCdZqJrw4b0nTxDogCTJyP3U6s9p437AonkEfvVRDCNNzgEmDduC1wBfJ9
 Whbs2C04Ceg9B08BwdPkmaJc8dvHDqEo+EPpQJw4/dFD8j2xF14EiJJxiDbrH+Bb
 aTkX8sSAGVuNmNSU/z0VM/AXtfnixD8b8cf1Q6YsN5XK72Qc0h7ElsfYkwPmCzY2
 ut+zTPi2l1HEbMB/zJkHhF7ec4MrMZcWc5EjCLx/9IJNOXlz3pzTeF2Fz0xCTMlR
 NpaaOV2fJzDqTC13VPomDumxgdQ2uQ==
 =TpxP
 -----END PGP SIGNATURE-----

change task order to show all running tasks first

check authentication parameters

update tests and fix pylint

add agent authentication and add option to skip ssl verification

add checks to read configuration parmeters

move the basic auth authentication into a single function

fix linting

capture unknonw data encode errors

remove unnecessery loop

int and cleanup

add missing auth and verify

change parts to be more readable

remove not usefull exception handling

add checks to read configuration parmeters

move the basic auth authentication into a single function

fix linting

add missing auth and verify

change parts to be more readable

remove not usefull exception handling

change agent parameter handling

ADD timeout parameter to config and change error execption.

ADD default values to prototype.
@ridv
Copy link

ridv commented Jun 1, 2021

Could you squash all commits to increase readability of this history before merging?

In the past the commiter merging the change used the "squash and merge" strategy which has the same effect. So no need to do anything special 😄 . (In fact, it's probably better to leave the individual commits to see how the patch progressed which is a bit of a carry over from when reviews happened on Review Board)

@cf-natali
Copy link
Contributor

@asekretenko @qianzhangxa
Maybe you could have a look at it?

@andreaspeters
Copy link
Contributor Author

@asekretenko @qianzhangxa
Maybe you could have a look at it?

Some feedback? :-)

@qianzhangxa
Copy link
Contributor

I am not very familiar with Python :(
@asekretenko can you please review again?

@asekretenko
Copy link
Member

Other than this question about the condition logic, I don't see any other issues.

@andreaspeters
Copy link
Contributor Author

Can we merge it please?

@cf-natali
Copy link
Contributor

Yeah this PR has been open for a while now, and @andreaspeters has addressed all the comments.
I reviewed it and it looks good to me, although I don't use Python with Mesos at all.

@asfgit asfgit closed this in c66aaf4 Jul 21, 2021
@qianzhangxa
Copy link
Contributor

Sorry for the late response, I have merged it, thanks for the contributions @andreaspeters!

@andreaspeters
Copy link
Contributor Author

No problem @qianzhangxa. Your welcome. :-)

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.

6 participants