Comments (3)
Hi,
this is "by design" (see #11). The plugin does not actualy "edit" the secret, it de- and encrypts it.
The way to prevent your issue from happening would be, to configure all these settings in a .sops.yaml
as hinted at here, which IMHO is the correct way anyway 🙃
A real life example:
# creation rules are evaluated sequentially, the first match wins
creation_rules:
# for yaml secret files only encrypt specific part
- path_regex: .*secret.*\.yaml$
encrypted_regex: '^(data|stringData)$'
age: '...'
# for every other file type encrypt everything
- age: '...'
More examples: Github
EDIT: I will adjust the plugin page and add a disclaimer how the plugin operates and that all settings need to be persisted for it to work properly.
from intellij-sops-plugin.
Cool. Thanks for the message.
I tested your way and it works.
Issue can be closed
from intellij-sops-plugin.
Related Issues (16)
- Executing `idea` issue in MacOS HOT 4
- secrets.yaml not detected as SOPS file (again) HOT 3
- All encrypted values are re-generated upon edit, resulting in noisy diffs HOT 4
- Age support HOT 1
- Error when storing changes to encrypted file using AWS SSO and AWS profiles HOT 1
- Got stacktrace probably correlated with unencrypted editor is not properly replaced with encrypted at save. HOT 6
- sops-plugin do not work HOT 2
- Compatibility with sops (and age) via aqua utility HOT 2
- RuntimeException: Could not get document for file
- Can a function key be assigned to the "Edit" link? HOT 2
- Feature Request: Allow customisation of SOPS path HOT 2
- Sops does not recognise encrypted secrets.yaml HOT 4
- It would be nice if a file detected to be SOPS editable was made read-only. HOT 3
- Feature Request: Support for environmental variables HOT 3
- intellij-sops-plugin doesn't respect path_regex and encrypted_regex in config .sops.yaml HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intellij-sops-plugin.