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

Warning for MacOS etc symlink #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sdenham
Copy link
Contributor

@sdenham sdenham commented Apr 9, 2023

Overview

This updates the README with a warning regarding /etc/ being a symlink on MacOS as that can be a pitfall for someone following the tutorial on Mac.

Considered other approaches such as being more prescriptive with the steps of the Vault setup. Happy to redo if another approach is in mind.

Design of Change

It is a one-line addition to the README to warn users.

Related Issues/Pull Requests

Issue #25
Will require a minor update if PR #27 is merged.

Contributor Checklist

README update

@hashicorp-cla
Copy link

hashicorp-cla commented Apr 9, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@tomhjp tomhjp left a comment

Choose a reason for hiding this comment

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

Thanks for the note, one suggestion to improve a bit further if you agree.

@@ -23,6 +23,7 @@ GitHub. Alternatively you can compile the plugin from source.
```sh
$ mv vault-auth-plugin-example /etc/vault/plugins/vault-auth-plugin-example
```
Note that on MacOS, the etc directory is a symlink. Vault does not allow symlink directories for plugins.
Copy link
Contributor

Choose a reason for hiding this comment

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

/etc/ is also kind of a weird recommendation anyway. WDYT about just changing this command (and the SHA256 calculation below) to a user-defined variable? e.g. $ mv vault-auth-plugin-example "$plugin_dir"

Copy link
Contributor

Choose a reason for hiding this comment

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

Although probably worth keeping this note in some form either way, as we can still mention $plugin_dir shouldn't contain any symlinks.

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.

3 participants