-
Notifications
You must be signed in to change notification settings - Fork 472
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
Add integration tests for force rotation and revocation #5526
base: main
Are you sure you want to change the base?
Add integration tests for force rotation and revocation #5526
Conversation
- Self-singed authority: Starts a nested SPIRE server to test force rotation and revocation scenarios. - Upstream authority: Use a disk-based upstream authority to test force rotation and revocation scenarios. Signed-off-by: Marcos Yacob <[email protected]>
Signed-off-by: Marcos Yacob <[email protected]>
Signed-off-by: Marcos Yacob <[email protected]>
Signed-off-by: Marcos Yacob <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for this, @MarcosDY!
@@ -0,0 +1,26 @@ | |||
# Force rotation in selt-signed X.509 authority Suite |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Force rotation in selt-signed X.509 authority Suite | |
# Force rotation with self-signed X.509 authority Suite |
## Description | ||
|
||
This test suite configures a self-signed CA in the root-server, | ||
and excersices forced rotation of CA certificates across nested servers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and excersices forced rotation of CA certificates across nested servers. | |
and exercises forced rotation of CA certificates across nested servers. |
## Test steps | ||
|
||
1. **Prepare a new X.509 authority**: Validate that the new X.509 authority is propagated to all nested servers. | ||
2. **Activate the new X.509 authority**: Ensure the new X.509 authority becomes active. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2. **Activate the new X.509 authority**: Ensure the new X.509 authority becomes active. | |
2. **Activate the new X.509 authority**: Ensure that the new X.509 authority becomes active. |
1. **Prepare a new X.509 authority**: Validate that the new X.509 authority is propagated to all nested servers. | ||
2. **Activate the new X.509 authority**: Ensure the new X.509 authority becomes active. | ||
3. **Taint the old X.509 authority**: Confirm that the tainted authority is propagated to nested servers and that all X.509 SVIDs are rotated accordingly. | ||
4. **Revoke the tainted X.509 authority**: Validate the revocation propagates to all nested servers, and that all SVIDs removes the revoked authority. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4. **Revoke the tainted X.509 authority**: Validate the revocation propagates to all nested servers, and that all SVIDs removes the revoked authority. | |
4. **Revoke the tainted X.509 authority**: Validate that the revocation instruction is propagated to all nested servers, and that all SVIDs have the revoked authority removed. |
ca_ttl = "56h" | ||
default_x509_svid_ttl = "19h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we have a small comment about the rationale behind these values?
ca_ttl = "19h" | ||
default_x509_svid_ttl = "6h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we have a small comment about the rationale behind these values?
## Test steps | ||
|
||
1. **Prepare a new X.509 authority**: Verify that a new X.509 authority is successfully created. | ||
2. **Activate the new X.509 authority**: Ensure the new X.509 authority becomes the active authority. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2. **Activate the new X.509 authority**: Ensure the new X.509 authority becomes the active authority. | |
2. **Activate the new X.509 authority**: Ensure that the new X.509 authority becomes the active authority. |
|
||
1. **Prepare a new X.509 authority**: Verify that a new X.509 authority is successfully created. | ||
2. **Activate the new X.509 authority**: Ensure the new X.509 authority becomes the active authority. | ||
3. **Taint the old X.509 authority**: Confirm that the old X.509 authority is marked as tainted, and verify that the taint is propagated to the agent, triggering rotation of all X.509 SVIDs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3. **Taint the old X.509 authority**: Confirm that the old X.509 authority is marked as tainted, and verify that the taint is propagated to the agent, triggering rotation of all X.509 SVIDs. | |
3. **Taint the old X.509 authority**: Confirm that the old X.509 authority is marked as tainted, and verify that the taint instruction is propagated to the agent, triggering the rotation of all X.509 SVIDs. |
1. **Prepare a new X.509 authority**: Verify that a new X.509 authority is successfully created. | ||
2. **Activate the new X.509 authority**: Ensure the new X.509 authority becomes the active authority. | ||
3. **Taint the old X.509 authority**: Confirm that the old X.509 authority is marked as tainted, and verify that the taint is propagated to the agent, triggering rotation of all X.509 SVIDs. | ||
4. **Revoke the tainted X.509 authority**: Validate that the revocation is propagated to the agent and that all SVIDs remove the revoked authority. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4. **Revoke the tainted X.509 authority**: Validate that the revocation is propagated to the agent and that all SVIDs remove the revoked authority. | |
4. **Revoke the tainted X.509 authority**: Validate that the revocation instruction is propagated to the agent and that all the SVIDs have the the revoked authority removed. |
Add integration tests for force rotation and revocation
Which issue this PR fixes
fixes: #5440 #5439