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

API Refactor: Fix node handler Attest RPC to handle the new banned status #1689

Merged

Conversation

amartinezfayo
Copy link
Member

Pull Request check list

  • Commit conforms to CONTRIBUTING.md?
  • Proper tests/regressions included?
  • Documentation updated?

Affected functionality
Attest method in Node handler.

Description of change
The Attest method in the node handler is updated to reject attestation if the agent is determined to be banned.

Which issue this PR fixes
Fixes #1680.

…status

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
…status

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
@azdagron
Copy link
Member

azdagron commented Jul 1, 2020

I think we also need code in validateAgentSVID to detect banned state? We might also fix up validateAgentSVID to return specific error messages and have those logged and returned from AuthorizeCall instead of the generic "agent is not attested or no longer valid".

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
@amartinezfayo
Copy link
Member Author

I've realised that some of the changes were already done in master at this point. This is ready for a new review.

Copy link
Member

@azdagron azdagron left a comment

Choose a reason for hiding this comment

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

\o/

@azdagron azdagron merged commit 2b0f4ed into spiffe:master Jul 6, 2020
@amartinezfayo amartinezfayo deleted the api-refactor-node-handler-ban-agent branch July 28, 2020 17:33
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.

API Refactor: Fix node handler Attest RPC to handle the new banned status
2 participants