Skip to content

Commit

Permalink
Restrict permissions on created netrc
Browse files Browse the repository at this point in the history
  • Loading branch information
jhkennedy committed Dec 19, 2023
1 parent 38eab39 commit f62d1c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/)
and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [0.4.7]
### Fixed
* [617](https://github.com/dbekaert/RAiDER/issues/617) - RAiDER created `.netrc` is too permissive

## [0.4.6]

### Added
Expand Down
2 changes: 1 addition & 1 deletion tools/RAiDER/s1_orbits.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def ensure_orbit_credentials() -> Optional[int]:

# netrc needs a netrc file; if missing create an empty one.
if not netrc_file.exists():
netrc_file.touch()
netrc_file.touch(mode=0o600)

netrc_credentials = netrc.netrc(netrc_file)
if ESA_CDSE_HOST in netrc_credentials.hosts:
Expand Down

0 comments on commit f62d1c0

Please sign in to comment.