saml icon indicating copy to clipboard operation
saml copied to clipboard

Use in-memory FS or buffer instead of /tmp WorkDir

Open VojtechVitek opened this issue 8 years ago • 3 comments

https://github.com/goware/saml/blob/master/files.go#L11

https://github.com/spf13/afero https://github.com/blang/vfs or byte buffer or similar..

VojtechVitek avatar Nov 23 '17 03:11 VojtechVitek

I see, the xmlsec1 actually picks up the certs from the FileSystem..

Hmm.. what can we do to avoid writing into the disk?

VojtechVitek avatar Nov 23 '17 03:11 VojtechVitek

Yeah, this is because we need xmlsec1 to read certain things from disk. In order to not write things to disk an user can mount a small RAM filesystem, such as tmpfs.

xiam avatar Nov 23 '17 17:11 xiam

@xiam I'm really hoping we could replace xmlsec1 binary with a pure Go package one day.

VojtechVitek avatar Nov 23 '17 18:11 VojtechVitek