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: SVID API service definition #1533

Merged
merged 1 commit into from
May 6, 2020

Conversation

azdagron
Copy link
Member

@azdagron azdagron commented May 5, 2020

This is the definition for the SVID API in the Server API refactor. This is not set in stone and some decisions actively in discussion are sure to change this, albeit superficially.

I'm introducing this now so we can kick off development. This API was a good candidate since it was:

  1. very small and focused
  2. not likely to change much as the API solidifies
  3. uses a broad range of SPIRE internals to do its job.

Developing this API will help establish patterns and practices that should be applicable to other API development.

// used if unset. The TTL is advisory only. The actual lifetime of the
// X509-SVID may be lower depending on the remaining lifetime of the active
// SPIRE Server CA.
int32 ttl = 3;
Copy link
Member

Choose a reason for hiding this comment

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

The field number should be 2?

Copy link
Member

@amartinezfayo amartinezfayo left a comment

Choose a reason for hiding this comment

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

I believe that svid.pb.go should be re-generated and updated to reflect the field number change.

@azdagron
Copy link
Member Author

azdagron commented May 6, 2020

Yes, yes it should :) Thanks.

amartinezfayo
amartinezfayo previously approved these changes May 6, 2020
Copy link
Member

@amartinezfayo amartinezfayo left a comment

Choose a reason for hiding this comment

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

🚀

This is the definition for the SVID API in the Server API refactor. This
is not set in stone and some decisions actively in discussion are sure
to change this, albeit superficially.

I'm introducing this now so we can kick off development. This API was a
good candidate since it was 1) very small and focused, 2) not likely to
change much as the API solidifies, 3) uses a broad range of SPIRE
internals to do its job. Developing this API will help establish
patterns and practices that should be applicable to other API
development.

Signed-off-by: Andrew Harding <andrew.harding@hpe.com>
@azdagron azdagron merged commit b2a63b5 into spiffe:master May 6, 2020
@azdagron azdagron deleted the api-refactor-svid-api-definition branch May 6, 2020 15:38
@amartinezfayo amartinezfayo moved this from In progress to Done in Server API Refactors Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants