Skip to content

Add rails secrets:show command - #29695

Merged
matthewd merged 1 commit into
rails:masterfrom
y-yagi:secrets_show
Jul 8, 2017
Merged

matthewd merged 1 commit into
rails:masterfrom
y-yagi:secrets_show

Conversation

@y-yagi

@y-yagi y-yagi commented Jul 6, 2017

Copy link
Copy Markdown
Member

When secrets confirmed with the secrets:edit command, secrets.yml.enc will change without updating the secrets.

Therefore, even if only want to check secrets, the difference will come out. This is a little inconvenient.
In order to solve this problem, added the secrets:show command. If just want to check secrets, no difference will occur use this command.

@rails-bot

Copy link
Copy Markdown

r? @pixeltrix

(@rails-bot has picked a reviewer for you, use r? to override)

@matthewd

matthewd commented Jul 6, 2017

Copy link
Copy Markdown
Member

I think there may be value in this command anyway, but I think it'd also be worthwhile to fix the underlying issue: if the file is unchanged after secrets:edit, we shouldn't rewrite it.

When secrets confirmed with the `secrets:edit` command, `secrets.yml.enc`
will change without updating the secrets.

Therefore, even if only want to check secrets, the difference will come
out. This is a little inconvenient.

In order to solve this problem, added the `secrets:show` command.
If just want to check secrets, no difference will occur use this command.
@y-yagi

y-yagi commented Jul 8, 2017

Copy link
Copy Markdown
Member Author

if the file is unchanged after secrets:edit, we shouldn't rewrite it.

Make sense. I fix it with #29705.

@matthewd
matthewd merged commit 1990c8f into rails:master Jul 8, 2017
@y-yagi
y-yagi deleted the secrets_show branch July 8, 2017 21:38
bogdanvlviv added a commit to bogdanvlviv/rails that referenced this pull request Mar 13, 2018
- Add a description of major features in Rails 5.2.
- Add a reference to Pull Request/Commit to every entry in CHANGELOGs,
  note that some of them combined.
- Add section "Ruby on Rails Guides" with notable changes.
- Note that
  - Skipped this since encrypted secrets are already on the way out.
    ```
    *   Add `rails secrets:show` command.
        ([Pull Request](rails#29695))
    ```
  - Skipped this since it was backported all the way to 5-0-stable.
    ```
    *   Make Rails' test runner work better with minitest plugins.
        ([Pull Request](rails#29572))
    ```

Thanks to everyone who has been working on Rails 5.2! <3
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.

4 participants