Comments (6)
If anyone comes here from google, an easy way to get around it for helm charts and nginx is to use plain text to store the pw:
auth: {{ (print "apikey:{PLAIN}" (index .Values.apiKey)) | b64enc | quote }}
Not cool to store the PWs like this but it's in a kubernetes secret so i guess it's ok? Suppose for proper auth you wouldn't use basic auth anyway
@technosophos The algorithms are a bit of a mess:
https://httpd.apache.org/docs/2.4/misc/password_encryptions.html
lots of apache specific stuff in C, not sure if anyone want's to port that over. Bcrypt seems to be pretty standard but i'm not sure what this means: https://github.com/abbot/go-http-auth/blob/cb4372376e1e00e9f6ab9ec142e029302c9e7140/basic.go#L27. Might not be relevant for generation.
from sprig.
Would it be possible implement third argument for sprig htpasswd
, so I can provide htpasswd related arguments?
e.g.:
{{ htpasswd .Values.username .Values.password 'nBC 10' }}
from sprig.
@kamshak Nginx indeed seems to support plain text passwords in the passwd file. However, when I create a Kubernetes secret that contains foo:bar
(base64 encoded) the Nginx Controller doesn't accept these credentials. If I use htpasswd
to encrypt bar
it works.
Are you sure that your approach should work for the Nginx Ingress controller?
from sprig.
Can you point me to some documentation? I'm not sure what the hashing algo is that it uses.
from sprig.
Can you explain where it is stored in plain text? because the secret is base64 encoded
from sprig.
from sprig.
Related Issues (20)
- sprig still alive? HOT 1
- support pipe for `omit` and `pick`
- Expose digFromDict function HOT 1
- (feat): Implement PBKDF2 as cryptographic function
- Time Comparison Functions HOT 4
- Parse Seconds from Duration HOT 2
- Map function
- How can I avoid getting a scientific notation in a large multiply? HOT 1
- How to convert "a b c" string to json ["a","b","c"]? HOT 1
- required function
- dateInZone silently fails when it doesn't understand the parameters passed to it
- Feature Request: add "yield" function HOT 5
- Proposal: add toDuration HOT 2
- apostrophes are transformed by printf function HOT 1
- Typo in release 2.10.0 Changelog.
- Derive password documentation broken
- Merging a dict over other types fails silently
- is this still supported? HOT 6
- Change return types of "split" and "splitn" to map[string]interface{} (instead of map[string]string)
- filter complex list
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 sprig.