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

As an administrator, I need an Admin API endpoint to load sample data #6286

Closed
poikilotherm opened this issue Oct 17, 2019 · 3 comments
Closed

Comments

@poikilotherm
Copy link
Contributor

poikilotherm commented Oct 17, 2019

Currently, IQSS/dataverse-sample-data needs to read an API token from an enabled user to create sample datasets, etc.

Using this very nice project to create demo environments would be cool. But having to fiddle around with the API token is very cumbersome during bootstrapping.

IQSS/dataverse-ansible receives the token by parsing log output on EC2. On Kubernetes, I could only use the deprecated, insecure API token retrieval.

So I propose to create an Admin API endpoint to load the data, as it would be a much cleaner and solid way.

Willing to make a contribution for this.

This is related to gdcc/dataverse-kubernetes#66, IQSS/dataverse-ansible#80

@poikilotherm
Copy link
Contributor Author

As outlined in #6266, another approach is creating an API endpoint to create a new token for a user with short expiration time and return as result.

@poikilotherm
Copy link
Contributor Author

Looks like this is connected to #1355:

// A method for generating a new API token;
// TODO: this is a simple, one-size-fits-all solution; we'll need
// to expand this system, to be able to generate tokens with different
// lifecycles/valid for specific actions only, etc.
// -- L.A. 4.0 beta12
public ApiToken generateApiTokenForUser(AuthenticatedUser au) {

@poikilotherm
Copy link
Contributor Author

Unless someone else is interested, I'm going to close this. Revisiting at a later point in time.

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

No branches or pull requests

1 participant