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

Default S3 behavior - "--simulation" feature #117

Open
dirkpetersen opened this issue Jun 28, 2024 · 4 comments
Open

Default S3 behavior - "--simulation" feature #117

dirkpetersen opened this issue Jun 28, 2024 · 4 comments
Labels

Comments

@dirkpetersen
Copy link
Owner

dirkpetersen commented Jun 28, 2024

I think it is a good idea to make the config of S3 providers optional to allow for people who just want to use the froster index feature. Should this not default to (Y/n) ?:

[?] Do you want to configure S3 providers? (y/N):

but then is the question what we do with folks who already have configured a [default] aws profile with credentials

if i run froster archive it get this, even if there is a default AWS profile

froster archive /home
Error: Invalid credentials.
  Profile: None
  Provider: AWS
  Endpoint: None

this should have an error message saying something like " please run froster config and make sure you activate/configure S3 profiles."

@victormachadoperez
Copy link
Collaborator

The default answer is "y/N" so if the user press enter it won't configure any S3 provider. This is what you are expecting. Or am I mistaken?

Regarding default credentials, the AWS still needs to be configured so the user selects the bucket, the archiving dir, etc. While configuring AWS provider user should select the "default" profile from the list of available aws profiles if those credentials ara valid. Did you do that in your example?

@victormachadoperez
Copy link
Collaborator

victormachadoperez commented Jun 28, 2024

I see, You are getting this because AWS is the fallback provider in case nothing is configured. If nothing is configured i'll set the provider to None. I'll also change the message so the user knows that he has to configure a provider

@dirkpetersen
Copy link
Owner Author

The default answer is "y/N" so if the user press enter it won't configure any S3 provider. This is what you are expecting. Or am I mistaken?

Regarding default credentials, the AWS still needs to be configured so the user selects the bucket, the archiving dir, etc. While configuring AWS provider user should select the "default" profile from the list of available aws profiles if those credentials ara valid. Did you do that in your example?

In more than 50% of the cases i would assume the user would want to configure a profile ..... now we have seen that people want to sometimes try froster out without actually uploading to cloud ...... but for that to be effective you would have to allow the user to get all the way up to run froster archive, then pick a hotspot to experience that functionality and then tell them they have not configured a profile yet.... but how froster is currently working I would default to configure a profile

@victormachadoperez
Copy link
Collaborator

Froster allows configuration, indexing, and updates to be performed without credentials.
Other commands need credentials for Rclone to run.

I suggest implementing a "--simulation" feature to allow users to use all Froster features without interacting with a real S3 server. However, this feature will be implemented in future Froster implementations.
I'll change the title of this ticket so this suggestion does not get lost

@victormachadoperez victormachadoperez changed the title default S3 behavior Default S3 behavior - "--simulation" feature Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants