Skip to content

minio service: add additional config options #27229

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
Jul 9, 2017

Conversation

bachp
Copy link
Member

@bachp bachp commented Jul 7, 2017

Motivation for this change

Set access and secret key and disable browser.
Tests extended to do real operations against minio.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Fits CONTRIBUTING.md.

Sorry, something went wrong.

@@ -29,6 +29,38 @@ in
description = "The config directory, for the access keys and other settings.";
};

accessKey = mkOption {
default = "";
type = types.string;
Copy link
Contributor

Choose a reason for hiding this comment

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

I expect you want types.str (string has potentially surprising merge semantics & is deprecated).

Copy link
Member Author

@bachp bachp Jul 9, 2017

Choose a reason for hiding this comment

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

Thanks for pointing this out. I wasn't even aware of the difference.

I changed all to types.str now.

@bachp bachp force-pushed the minio-more-config branch from f863869 to 44520c6 Compare July 9, 2017 09:38
type = types.str;
description = ''
Specify the Secret key of 8 to 40 characters in length that clients use to access the server.
If not set the generated key from <literal>configDir</literal> is used.
Copy link
Member

Choose a reason for hiding this comment

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

There should be an option to not store secrets in the nix store. For background: #24288

type = types.str;
description = ''
Access key of 5 to 20 characters in length that clients use to access the server.
If not set the generated key from <literal>configDir</literal> is used.
Copy link
Member

Choose a reason for hiding this comment

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

ok. so this means, when somebody prefer not store secrets in the nix store, the can fall back to this method? (using a generated one)

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes exactly. Do you think I need to clarify this?

Copy link
Contributor

Choose a reason for hiding this comment

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

If I just read the 4 line context visible here, I have no idea where this generated key comes from. Generated by what process and who designed that process? Upstream/you?

Copy link
Member Author

Choose a reason for hiding this comment

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

@Mic92 @0xABAB I tried to rephrase the description to make it more where the generated keys come from.

Set access and secret key and disable browser.
Tests extended to do real operations against minio.
@bachp bachp force-pushed the minio-more-config branch from 44520c6 to 0fb8456 Compare July 9, 2017 13:20
@Mic92 Mic92 merged commit e86a7e4 into NixOS:master Jul 9, 2017
@bachp bachp deleted the minio-more-config branch July 9, 2017 17:16
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.

None yet

4 participants