-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Allow secrets in settings #383
Allow secrets in settings #383
Conversation
Cool! I'll take a look at it this weekend. |
372b966
to
d209aaf
Compare
Sounds good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good! Just a few things here and there I noticed.
f5e732b
to
0cbc3a7
Compare
2301f73
to
e9a0525
Compare
@danecreekphotography I updated the |
8202504
to
d91a01b
Compare
The The Adding another layer of indirection out of the box and having to explain all that in the documentation is probably overkill for the core userbase: people installing this at home on a home computer. |
Gotcha. That makes sense and is an unfortunate reality. I guess my use case is slightly different, I'm pushing my configuration to github (without I guess I'll just reap the benefits of this change; seems like others may not think to use this. I'll look around the docs and try to identify the right spot to add this information. |
Best place to add it to the docs would be as a whole new page called "Managing secrets". Then we can link to it from a bunch of places, like the overview documentation etc. If you do write something up make sure to run markdownlint on the .md and resolve any errors that get thrown. Thanks! |
@danecreekphotography That sounds good to me. I'm not familiar with github's wiki, is that where you're wanting to put it? Is this just something you're able to edit or is there a way for me to fork it and push up a PR? |
d91a01b
to
93244dc
Compare
Sure, if you ever have time and dig into it. I'm not going to look at it any time soon. What's the overall status of this PR? Is there anything else you want to add before you consider it done? |
I've looked the PR over a few times and I can't think of anything else to add. Lmk if you're able to think of anything else. I plan to follow this up with another PR which will handle secrets in |
Actually, it looks like I have something that will break triggers here: https://github.com/TonyBrobston/node-deepstackai-trigger/blob/93244dc5914965a7b49cb211bf961f003913daef/src/TriggerManager.ts#L53 So I need to do some work on that. |
I wonder if we should first put this out as a |
Actually, looking a bit closer, I don't think https://github.com/TonyBrobston/node-deepstackai-trigger/blob/93244dc5914965a7b49cb211bf961f003913daef/src/TriggerManager.ts#L53 is broken. |
When this eventually merges to main it will automatically become a What I've done in the past is produce a separate tagged image for a specific branch. That might be the best thing to do here too: merge this into another branch instead of main, then run it for a bit as that image off Docker Hub before actually merging to main as |
I'm good with a separate tag for a specific branch or going to I was looking into allowing secrets in triggers, it looks super similar to allowing secrets in settings. I think the only thing I'm wondering is, some naming on the object that holds the |
45d73d7
to
ad752c6
Compare
Since IConfiguration isn't really the configuration, it's the paths to the configuration files, maybe do ISettingsFiles? Also why does it have to be a different interface for settings vs triggers? Just call it IConfiguration and have the properties be baseFile and secretsFile? |
ad752c6
to
e5f5879
Compare
Alright, I updated to what you mentioned. |
79ae9f8
to
57f02d0
Compare
Looking into how to handle redacting secrets from logs and I realized I had broken triggers.json hot reloading. I made some changes to hopefully fix that. |
bf013d5
to
e575c46
Compare
I created a new branch called That'll give us a place to merge this and produce the Docker tagged image for testing without having it show up in main until we're confident this is all working and ready to go out. |
@danecreekphotography I swapped the branch that it's merging into. |
e575c46
to
49588bc
Compare
Just got caught about by this. Can a sample secrets.json be included in the sampleConfiguration directory? |
Fixes #371
Description of changes
Adds a
secrets.json
file and use mustache to render those secrets into settings.Checklist
Update sampleConfigurationWrite higher level tests?Settings
andmain