Skip to content

Add ListClients and DeleteClient operations #318

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

Merged
merged 1 commit into from
Jan 19, 2021

Conversation

hug-dev
Copy link
Member

@hug-dev hug-dev commented Jan 15, 2021

Also adds multitenancy tests for those operations and for the admin
feature. Splits the ApplicationName structure into Application and
ApplicationName to only deal with key names in the Key Info Managers and
not the admin status which is not relevent there.

Fix #309
Fix #311

@@ -14,6 +14,7 @@ socket_path = "/tmp/parsec.sock"

[authenticator]
auth_type = "Direct"
admins = [ { name = "list_clients test" }, { name = "parsec-client-1" }, { name = "client1" }, { name = "spiffe://example.org/parsec-client-1" } ]
Copy link
Member Author

Choose a reason for hiding this comment

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

Having a list of admin names is definitely useful 👌

Comment on lines -226 to -227
let _app_name =
unwrap_or_else_return!(app_name.ok_or(ResponseStatus::NotAuthenticated));
Copy link
Member Author

Choose a reason for hiding this comment

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

This is not needed I think?

@hug-dev hug-dev force-pushed the list-clients branch 2 times, most recently from 11e1c10 to 0c5159e Compare January 15, 2021 13:48
@@ -330,7 +330,7 @@ impl ServiceChecker {
.expect("Verification failed");

client
.destroy_key(sign_key_name.clone())
.destroy_key(sign_key_name)
Copy link
Member

Choose a reason for hiding this comment

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

We've not added clippy to our e2e_tests, maybe we should do that

Copy link
Member

@ionut-arm ionut-arm left a comment

Choose a reason for hiding this comment

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

👍

Also adds multitenancy tests for those operations and for the admin
feature. Splits the ApplicationName structure into Application and
ApplicationName to only deal with key names in the Key Info Managers and
not the admin status which is not relevent there.

Signed-off-by: Hugues de Valon <[email protected]>
@hug-dev
Copy link
Member Author

hug-dev commented Jan 18, 2021

Will be discussed tomorrow in the weekly meeting, can leave it as is for now.

As in, shall we merge this for now and apply what we discuss on the meeting on Parsec and the documentation afterwards? Or shall we wait?

@ionut-arm
Copy link
Member

Will be discussed tomorrow in the weekly meeting, can leave it as is for now.

As in, shall we merge this for now and apply what we discuss on the meeting on Parsec and the documentation afterwards? Or shall we wait?

Merge this one, we can apply the changes afterwards in a separate PR

@hug-dev hug-dev merged commit d563c8b into parallaxsecond:master Jan 19, 2021
@hug-dev hug-dev deleted the list-clients branch January 19, 2021 10:02
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.

Implement ListClients and DeleteClient in the core provider Add a test for admin operations
2 participants