Skip to content
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

Added certificate management #71

Merged
merged 27 commits into from
Jun 7, 2024
Merged

Added certificate management #71

merged 27 commits into from
Jun 7, 2024

Conversation

djthorpe
Copy link
Member

@djthorpe djthorpe commented Jun 7, 2024

No description provided.

@djthorpe djthorpe merged commit e9c0269 into main Jun 7, 2024
3 checks passed

// Check for numerical group ID
if gid, err := strconv.ParseUint(c.Group, 0, 32); err == nil {
return int(gid), nil

Check failure

Code scanning / CodeQL

Incorrect conversion between integer types High

Incorrect conversion of an unsigned 32-bit integer from
strconv.ParseUint
to a lower bit size type int without an upper bound check.
} else if gid, err := strconv.ParseUint(group.Gid, 0, 32); err != nil {
return -1, err
} else {
return int(gid), nil

Check failure

Code scanning / CodeQL

Incorrect conversion between integer types High

Incorrect conversion of an unsigned 32-bit integer from
strconv.ParseUint
to a lower bit size type int without an upper bound check.
}

// Open file
fh, err := os.Open(pathForCert)

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
// if the folder exists
func (c *certstore) pathForKey(serial string) (string, error) {
path := filepath.Join(c.dataPath, serial+certExt)
if info, err := os.Stat(path); err != nil {

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant