[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2017-08-07 Thread EronWright
Github user EronWright commented on the issue: https://github.com/apache/flink/pull/2425 Note to future self: to generate a self-signed certificate, use `CertAndKeyGen` and see [OPENDJ-2247](https://bugster.forgerock.org/jira/browse/OPENDJ-2247). --- If your project is set up for

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2017-03-16 Thread vijikarthi
Github user vijikarthi commented on the issue: https://github.com/apache/flink/pull/2425 @StephanEwen It's absolutely fine with me and I will cancel this PR. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2017-03-15 Thread StephanEwen
Github user StephanEwen commented on the issue: https://github.com/apache/flink/pull/2425 @vijikarthi I hope you are okay with exploring that option - this is not saying that this pull request is not a good solution, but whenever we have to maintain less code it makes things easier.

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2017-03-15 Thread StephanEwen
Github user StephanEwen commented on the issue: https://github.com/apache/flink/pull/2425 Thanks Eron, that makes a lot of sense. My first thought would be: Let's add SSL mutual authentication. That seems desirable anyways and we would not need another mechanism (shared

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2017-03-14 Thread EronWright
Github user EronWright commented on the issue: https://github.com/apache/flink/pull/2425 @StephanEwen keep in mind that Flink's current SSL support in Flink doesn't achieve _mutual authentication_ - there's no client certificate there.With SSL enabled, an untrusted client can

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2017-03-14 Thread vijikarthi
Github user vijikarthi commented on the issue: https://github.com/apache/flink/pull/2425 @StephanEwen The shared secret serves can be considered as an additional security extension on top of TLS integration, thus it designates only an authorized identity to execute actions on a

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2017-03-14 Thread StephanEwen
Github user StephanEwen commented on the issue: https://github.com/apache/flink/pull/2425 Sorry for chiming in a bit late here with this more fundamental question. I would like to understand from a security architecture, what additional security this shared secret gives us:

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2017-03-12 Thread Rucongzhang
Github user Rucongzhang commented on the issue: https://github.com/apache/flink/pull/2425 @vijikarthi ,when you will push this issue to the master? I can help you, if you need any help. Thanks! --- If your project is set up for it, you can reply to this email and have your reply

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-11-17 Thread vijikarthi
Github user vijikarthi commented on the issue: https://github.com/apache/flink/pull/2425 @StephanEwen, @mxm I have updated the documentation changes as suggested, moved common code from BlobUtils to SecurityContext, added new ConfigOptions class for security configurations lookup.

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-11-09 Thread vijikarthi
Github user vijikarthi commented on the issue: https://github.com/apache/flink/pull/2425 @StephanEwen @mxm - Could you please review the proposed change and let me know if you are okay with it. --- If your project is set up for it, you can reply to this email and have your reply

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-11-06 Thread vijikarthi
Github user vijikarthi commented on the issue: https://github.com/apache/flink/pull/2425 > The cookie is added to every single message/buffer that is transferred. That is too much - securing the integrity of the stream is responsibility of the encryption layer. The cookie should

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-11-04 Thread mxm
Github user mxm commented on the issue: https://github.com/apache/flink/pull/2425 Thank you for the changes. I wonder, could we remove the cookie header completely for Netty or the BlobServer in case the authorization is turned off? The Netty protocol has a `MAGIC_NUMBER` which is

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-11-03 Thread vijikarthi
Github user vijikarthi commented on the issue: https://github.com/apache/flink/pull/2425 @mxm - Sorry that I have missed to address some of your comments. Attached patch that includes Netty code null precondition validation and fixes the Blob service cookie length issue. Please take

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-10-30 Thread vijikarthi
Github user vijikarthi commented on the issue: https://github.com/apache/flink/pull/2425 Addressed multiple application support/Yarn configuration file changes as part of FLINK-4950 patch. --- If your project is set up for it, you can reply to this email and have your reply appear

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-10-27 Thread mxm
Github user mxm commented on the issue: https://github.com/apache/flink/pull/2425 CC @uce to check out the network layer changes. This is a very sensitive and performance critical part of Flink. We should be very sure nothing breaks it with the changes. @vijikarthi Please

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-10-26 Thread mxm
Github user mxm commented on the issue: https://github.com/apache/flink/pull/2425 @vijikarthi I haven't forgotten about your PR. Thanks for the feedback. I'll get back to you today. --- If your project is set up for it, you can reply to this email and have your reply appear on

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-10-24 Thread vijikarthi
Github user vijikarthi commented on the issue: https://github.com/apache/flink/pull/2425 @mxm - Please take a look when you get a chance? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-10-19 Thread vijikarthi
Github user vijikarthi commented on the issue: https://github.com/apache/flink/pull/2425 Thanks @mxm for the review. I will incorporate your feedback and attach the patch. > When security is enabled, encryption should also be turned on by default. Otherwise we will

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-10-19 Thread mxm
Github user mxm commented on the issue: https://github.com/apache/flink/pull/2425 Thank you for your work so far @vijikarthi. I'll take a final look before we merge this. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well.

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-10-18 Thread vijikarthi
Github user vijikarthi commented on the issue: https://github.com/apache/flink/pull/2425 Resolved merge conflicts and squashed commits to rebase with master --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-10-11 Thread rmetzger
Github user rmetzger commented on the issue: https://github.com/apache/flink/pull/2425 I'll take a look. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so,

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-10-10 Thread vijikarthi
Github user vijikarthi commented on the issue: https://github.com/apache/flink/pull/2425 @rmetzger can you please take a look at the updated patch --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-10-03 Thread vijikarthi
Github user vijikarthi commented on the issue: https://github.com/apache/flink/pull/2425 Addressed [FLINK-4635] Netty data transfer authentication (missing piece of FLINK-3930) --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-09-23 Thread vijikarthi
Github user vijikarthi commented on the issue: https://github.com/apache/flink/pull/2425 Thanks @StephanEwen --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-09-23 Thread StephanEwen
Github user StephanEwen commented on the issue: https://github.com/apache/flink/pull/2425 I think we are waiting for @rmetzger to follow up. He is out of office for a few days... --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-09-23 Thread vijikarthi
Github user vijikarthi commented on the issue: https://github.com/apache/flink/pull/2425 @rmetzger @StephanEwen are you guys waiting for any inputs from my side? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-09-20 Thread vijikarthi
Github user vijikarthi commented on the issue: https://github.com/apache/flink/pull/2425 @rmetzger I have added internals documentation section and provided details on how secure cookie is implemented. I will address the missing Netty data transfer secure cookie part in FLINK-4635.

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-09-06 Thread vijikarthi
Github user vijikarthi commented on the issue: https://github.com/apache/flink/pull/2425 > How is the secret transferred to the TaskManagers on YARN? Cookie is transferred to TM container through container environment variable and further gets populated to in-memory Flink

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-09-06 Thread rmetzger
Github user rmetzger commented on the issue: https://github.com/apache/flink/pull/2425 Thank you for addressing my comments. I've looked into the design document [1] again and some details are missing there. In particular its not clearly specified how and where the shared

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-09-06 Thread vijikarthi
Github user vijikarthi commented on the issue: https://github.com/apache/flink/pull/2425 > T2-3 is not about the web interface netty, its about the data transfer netty In Flink, we are using netty for (at least) three things: - Akka is using Netty. This is addressed in

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-09-02 Thread rmetzger
Github user rmetzger commented on the issue: https://github.com/apache/flink/pull/2425 T2-3 is not about the web interface netty, its about the data transfer netty In Flink, we are using netty for (at least) three things: - Akka is using Netty. This is addressed in the pull

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-09-01 Thread vijikarthi
Github user vijikarthi commented on the issue: https://github.com/apache/flink/pull/2425 > According to the design document, netty authentication is also part of this JIRA. Why was it not addressed? The netty layer is addressed as part of web layer authentication (T2-3 &

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-09-01 Thread rmetzger
Github user rmetzger commented on the issue: https://github.com/apache/flink/pull/2425 According to the design document, netty authentication is also part of this JIRA. Why was it not addressed? --- If your project is set up for it, you can reply to this email and have your reply

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-09-01 Thread rmetzger
Github user rmetzger commented on the issue: https://github.com/apache/flink/pull/2425 I'm done with my initial review. If you have a minute @mxm, it would be good if you could check the CliFrontend changes, to see if they fit the architecture well. --- If your project is set up

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-09-01 Thread rmetzger
Github user rmetzger commented on the issue: https://github.com/apache/flink/pull/2425 I manually tested the code. Taskmanagers are properly rejected on missmatching cookies, it works when they match. One thing I found was that the error reporting is not very good:

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-09-01 Thread rmetzger
Github user rmetzger commented on the issue: https://github.com/apache/flink/pull/2425 It seems that some of the YARN tests are failing because the jobmanager / application master is logging: ``` 2016-08-27 08:48:54,858 INFO org.apache.flink.yarn.YarnJobManager

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-09-01 Thread rmetzger
Github user rmetzger commented on the issue: https://github.com/apache/flink/pull/2425 Thank you for opening a pull request for this. I'll check it out now. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project

[GitHub] flink issue #2425: FLINK-3930 Added shared secret based authorization for Fl...

2016-08-28 Thread vijikarthi
Github user vijikarthi commented on the issue: https://github.com/apache/flink/pull/2425 @mxm - The patch is available for your review. Please take a look. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project