Skip to content

Add support for KRL#10

Open
pinodeca wants to merge 2 commits into
uber:masterfrom
pinodeca:krl
Open

Add support for KRL#10
pinodeca wants to merge 2 commits into
uber:masterfrom
pinodeca:krl

Conversation

@pinodeca

@pinodeca pinodeca commented Mar 1, 2018

Copy link
Copy Markdown

Hi folks, this is just preliminary to get your thoughts.

Tests and some cleanup are needed. I only did some manual testing on my integration with Tatu (github.com/openstack/tatu).

@CLAassistant

CLAassistant commented Mar 1, 2018

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@pmoody-

pmoody- commented Mar 1, 2018

Copy link
Copy Markdown
Contributor

Thanks for the pr, Pino!

can you look at/sign the CLA?

@pinodeca

pinodeca commented Mar 1, 2018 via email

Copy link
Copy Markdown
Author

@pinodeca

pinodeca commented Mar 2, 2018

Copy link
Copy Markdown
Author

I checked the CLA and I'm not able to edit or re-sign it- but it has all my information.

@pmoody-

pmoody- commented Mar 6, 2018

Copy link
Copy Markdown
Contributor

the cla checker says you still haven't signed our cla.

what do you see when you go to https://cla-assistant.io/uber/pam-ussh ?

@pmoody-

pmoody- commented Mar 8, 2018

Copy link
Copy Markdown
Contributor

@pinodeca any luck re-signing the CLA? I can try to talk to our github admins if it's not letting you sign for some reason.

@pinodeca

pinodeca commented Mar 8, 2018

Copy link
Copy Markdown
Author

Terribly sorry for dropping this thread.

When I'm signed into GitHub and go to https://cla-assistant.io/uber/pam-ussh I see:
"You have signed the CLA for uber/pam-ussh"

That is followed by the license text, my personal information and the checked checkbox "By checking this box, I am electronically signing..."

None of it is editable.

Signed-off-by: Pino de Candia <giuseppe.decandia@gmail.com>
@pmoody-

pmoody- commented Mar 8, 2018

Copy link
Copy Markdown
Contributor

can you send me a screenshot of what you see when you go to the cla page?

@pinodeca

pinodeca commented Mar 8, 2018

Copy link
Copy Markdown
Author

Sure - here they are.

cla_screen_top
cla_screen_bottom

@dmyerscough

Copy link
Copy Markdown

@pmoody- @gdecandia the signing isn't working here, due to the email mismatch.

The diff uses the email "giuseppe.decandia@gmail.com" vs "giuseppedecanida@gmail.com"

@pmoody- pmoody- left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can you add a test for this? if it's easier, you can pull the whole krlFile parsing into its own function and just test that.

Comment thread pam_ussh.go
return authenticate2(w, uid, username, ca, principals, "")
}

func authenticate2(w io.Writer, uid int, username, ca string, principals map[string]struct{}, krlFile string) AuthResult {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can you just call this authenticate?

Comment thread pam_ussh.go

var parsedKRL *krl.KRL
parsedKRL = nil
if len(krlFile) > 0 {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit, if krlFile != "" {

Comment thread pam_ussh.go
}

var parsedKRL *krl.KRL
parsedKRL = nil

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this isn't needed, it should be nil by default.

Comment thread pam_ussh.go
return authenticate2(w, uid, username, ca, principals, "")
}

func authenticate2(w io.Writer, uid int, username, ca string, principals map[string]struct{}, krlFile string) AuthResult {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can you just call this authenticate?

Comment thread pam_ussh.go

var parsedKRL *krl.KRL
parsedKRL = nil
if len(krlFile) > 0 {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit, if krlFile != "" {

@pmoody-

pmoody- commented Nov 21, 2018

Copy link
Copy Markdown
Contributor

sorry, i'm an idiot and it's taken me way too long to get to this.

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.

5 participants