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

Non-recursive DFS token tree revoke #2478

Merged
merged 37 commits into from
Dec 11, 2017
Merged

Conversation

lemondrank
Copy link
Contributor

@lemondrank lemondrank commented Mar 13, 2017

fixes #2348

Copy link
Contributor

@briankassouf briankassouf left a comment

Choose a reason for hiding this comment

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

Looking pretty good, i left just a few comments. I'd like to take another look after the code is formatted properly.

Also you have a merge conflict, so you'll need to merge master into this branch.

children, err := ts.view.List(path)
if err != nil {
return fmt.Errorf("failed to scan for children: %v", err)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you run go fmt on your code? https://golang.org/cmd/gofmt/

dfs = dfs[1:l]
}
} else {
// If we make it here, the there are children and they must
Copy link
Contributor

@briankassouf briankassouf Apr 27, 2017

Choose a reason for hiding this comment

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

typo on "the there"

@@ -1120,7 +1131,7 @@ func (ts *TokenStore) handleTidy(req *logical.Request, data *framework.FieldData
// Scan through the secondary index entries; if there is an entry
// with the token's salt ID at the end, remove it
for _, parent := range parentList {
children, err := ts.view.List(parentPrefix + parent + "/")
Copy link
Contributor

Choose a reason for hiding this comment

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

How come this changed?

@lemondrank lemondrank changed the title Non-recursive DFS (Work in Progress) Non-recursive DFS May 12, 2017
@lemondrank lemondrank changed the title Non-recursive DFS Non-recursive DFS token tree revoke May 12, 2017
@chrishoffman
Copy link
Contributor

LGTM!

@lemondrank
Copy link
Contributor Author

sweet! thanks for all the help!

@jefferai jefferai added this to the 0.7.3 milestone May 26, 2017
@jefferai
Copy link
Member

I'll try to get to a review soon but adding to 0.7.3.

@lemondrank
Copy link
Contributor Author

sounds great! thanks!

@jefferai jefferai modified the milestones: 0.7.3, 0.7.4 Jun 8, 2017
@jefferai jefferai modified the milestones: 0.7.4, near-term Jul 24, 2017
@jefferai jefferai modified the milestones: near-term, 0.9.1 Nov 24, 2017
Copy link
Member

@jefferai jefferai left a comment

Choose a reason for hiding this comment

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

LGTM!

@jefferai jefferai merged commit ea84284 into hashicorp:master Dec 11, 2017
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.

panic: Stack Overflow in revokeTreeSalted
4 participants